• forked:LocusSelect
Import an externally hosted application
Check style

  • JavaScript
  • CSS
  • HTML
  • Images
  • Input Data
  • ReadMe
  • forked:LocusSelect
  • jquery-1.7.1.min.js  
  • http://code.highcharts.com/highcharts.js  
  • http://code.highcharts.com/modules/exporting.js  
  •  
  • history

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
 
LocusSelect = function(containerId, options) {
    new Application.highChart(containerId, options);
};
 
if (Application === "undefined" || !Application) {
    var Application = {};
}
 
Application.highChart = function() {
    this._init.apply(this, arguments);
};
 
Application.highChart.prototype = {
    
    _containerId : null,
    _options : null,
    _workId : null,
    _fileName : null,
    _highChartContainerId : null,
    _appProperty : null,
    
    _default : {
        appName : "LocusSelect",
        filterNamespace : "http://linkdata.org/",
        subjectUriPhrase : "http://atted.jp/data/locus/",
        subjectPPDBUriPhrase : "http://ppdb.agr.gifu-u.ac.jp/ppdb/cgi-bin/display.cgi?organism=At&gene=",
        selectSubjectClass : "selectSubject",
        drawArea : "drawArea",
        loadingImageContainer : "loadingImageContainer",
        acceptPropLabelPrefix : "label:",
        loadingImageUrl : "http://app.linkdata.org/asset/67556085.gif",
        databaseInfoClass : "databaseInfo",
        dbInfoLinkClass : "dbInfoLink",
        geneInfoLinkClass : "geneInfoLink",
        geneInfoAttedLinkClass : "geneInfoAttedLink",
        geneInfoPpdbLinkClass : "geneInfoPpdbLink",
        geneInfoEfpLinkClass : "geneInfoEfpLink",
        geneInfoHannaDbLinkClass : "geneInfoHannaDbLink",
        serverUrl : "http://linkdata.org/",
        yAxisLabel : "Gene Expression Level"
    },
    
    _tooltipName : {
        selectProperty : "selectproperty",
        atted2 : "atted-ii",
        hanaDb : "hanadb",
        efp : "efp",
        ppdb : "ppdb",
        replace : "replace",
        manuallyInputMotif : "userinputmotif",
        locusSelect : "locusSelect"
    },
    
    _init : function(containerId, options) {
        this._containerId = containerId;
        this._options = $.extend({}, this._default, options);
        this._workId = this._options.workId;
        this._fileName = this._options.fileName;
        var date = new Date();
        this._highChartContainerId = "high_chart_" + date.getTime();
        this._initToolTip();
        this._initAppProperty(this._options);
        this._initView();
    },
    
    _initToolTip : function() {
        var self = this;
        self._tooltip = (self._options.tooltip) ? self._options.tooltip : new Application.tooltip();
    },
    
    _initAppProperty : function(opts) {
        var obj = {
            workId : opts.workId,
            fileName : opts.fileName
        };
        this._appProperty = new Application.motifProperty(obj);
    },
    
    _initView : function() {
        var self = this;
        var initView = function(subjectList) {
            var sb = [];
            sb[sb.length] = "<div class='row'>";
            sb[sb.length] = "<div class='label left'>Select Locus</div>";
            sb[sb.length] = "<div class='left'>";
            sb[sb.length] = "<select class='" + self._default.selectSubjectClass + "'>";
            sb[sb.length] = "<option value='" + -1 + "'>-- Select Locus --</option>";
            $.each(subjectList, function(subKey, subValue) {
                var label = self._getLabel(subValue);
                sb[sb.length] = "<option value='" + subValue + "'>" + label + "</option>";
            });
            sb[sb.length] = "</select>";
            sb[sb.length] = "</div>";
            sb[sb.length] = "</div>";
            sb[sb.length] = "<div class='" + self._options.databaseInfoClass + " hidden'></div>";
            sb[sb.length] = "<div id='" + self._highChartContainerId + "'></div>";
            sb[sb.length] = "<div class='" + self._options.loadingImageContainer + " hidden' align='center'>";
            sb[sb.length] = "<img src='" + self._options.loadingImageUrl + "'/>";
            sb[sb.length] = "</div>";
            $("#" + self._containerId).html(sb.join(""));
jquery-1.7.1.min.js
http://code.highcharts.com/highcharts.js
http://code.highcharts.com/modules/exporting.js
Playing...

jquery-1.7.1.min.js
http://code.highcharts.com/highcharts.js
http://code.highcharts.com/modules/exporting.js