diff options
author | christian | 2016-08-04 16:54:54 +0200 |
---|---|---|
committer | christian | 2016-08-04 16:54:54 +0200 |
commit | 32afb970e6ac87c4dc71b5b5fe698a2892d7b1d8 (patch) | |
tree | 89eb4a67f12e24e950096944423841f0a402810f | |
parent | b8e9edd94fcd1f2630915b888993ee39e8f4e53b (diff) | |
download | genenetwork2-32afb970e6ac87c4dc71b5b5fe698a2892d7b1d8.tar.gz |
Add function for creating a basic BD browser
-rw-r--r-- | wqflask/wqflask/static/new/javascript/biodalliance.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/biodalliance.js b/wqflask/wqflask/static/new/javascript/biodalliance.js new file mode 100644 index 00000000..6b082fbb --- /dev/null +++ b/wqflask/wqflask/static/new/javascript/biodalliance.js @@ -0,0 +1,24 @@ +"use strict"; + +var createBDBrowser = function(chr, start, end, sources) { + console.log("creating BD browser"); + var b = new Browser({ + chr: chr, + viewStart: start, + viewEnd: end, + + coordSystem: { + speciesName: 'Mouse' + }, + + sources: sources, + + setDocumentTitle: false, + prefix: '/dalliance/', + noPersist: true, + pageName: 'bd_container' + }); + + console.log("created BD browser"); + return b; +}; |