forked from intermine/intermine-list-widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (55 loc) · 2.15 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Widget Client</title>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="css/bootstrap.css" rel="stylesheet">
<style>
.widget { margin:20px 10px; }
</style>
<!-- local lib cache -->
<script src="js/lib/jquery.js"></script>
<script src="js/lib/underscore.js"></script>
<script src="js/lib/backbone.js"></script>
<!-- widget.js -->
<script src="js/widgets.js"></script>
</head>
<body>
<!-- menu -->
<div class="navbar">
<div class="navbar-inner">
<div class="container" style="width: auto;">
<a class="brand" href="#">Widget Client</a>
<ul class="nav pull-right">
<li class="divider-vertical"></li>
<li><a href="https://github.com/radekstepan/intermine-widget-client">Fork me on GitHub</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<h2>Example Widgets</h2>
<p>BDGP expression patterns loaded from <span class="label">ws_widgets</span> FlyMine branch.</p>
</div>
<div id="widgets-genes" class="row"></div>
<div id="widgets-proteins" class="row"></div>
<script type="text/javascript">
(function() {
/* A test of having $ not be jQuery. */
window.$ = "I am an evil library!";
/* InterMine root URL. */
var mine = "http://aragorn:8080/flymine";
/* New Widgets client. */
var widgets = new Widgets(mine + "/service/");
/* Give us all available widgets. */
widgets.all('Gene', 'demo-genes', '#widgets-genes');
widgets.all('Protein', 'demo-proteins', '#widgets-proteins');
})();
</script>
</div>
</body>
</html>