From 32afb970e6ac87c4dc71b5b5fe698a2892d7b1d8 Mon Sep 17 00:00:00 2001 From: christian Date: Thu, 4 Aug 2016 16:54:54 +0200 Subject: Add function for creating a basic BD browser --- .../wqflask/static/new/javascript/biodalliance.js | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 wqflask/wqflask/static/new/javascript/biodalliance.js 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; +}; -- cgit v1.2.3