forked from kylelau93/NUS-tul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cool.html
158 lines (131 loc) · 6.63 KB
/
cool.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="http://getbootstrap.com/favicon.ico">
<title>WO API Examples</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/cover.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="./Cover Template for Bootstrap_files/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="thumbimg"></div>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
<div class="masthead clearfix">
<div class="inner">
<h3 class="masthead-brand">Web Observatory</h3>
<nav>
<ul class="nav masthead-nav">
<li class="active"><a href="http://webobservatory.soton.ac.uk">Web Observatory</a>
</li>
<li><a href="https://github.com/xgfd/NUS-tul">Github Entry</a>
</li>
<li><a href="http://webobservatory.soton.ac.uk/wo/visualisation#5489d93e5d38cda3271d843d">More info</a>
</li>
</ul>
</nav>
</div>
</div>
<div class="inner cover">
<p class="lead">Click to connect</p>
<p class="lead">
<a href="#" class="btn btn-lg btn-default connect">Connect</a>
<p class="lead" id="collageContainer"></p>
</div>
<div class="mastfoot">
<div class="inner">
<p>Cover template for <a href="http://getbootstrap.com/">Bootstrap</a>, by <a href="https://twitter.com/mdo">@mdo</a>.</p>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./Cover Template for Bootstrap_files/jquery.min.js"></script>
<!-- External Resources-->
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<script src="js/d3.v3.js"></script>
<script src="js/wolib.js"></script>
<script src="js/index.js"></script>
<script type="text/javascript" charset="utf-8">
$(function()
{
//an example
var options = {
//things you'd like to do AFTER having the access token
after: function(token)
{
alert('Your access token is ' + token); // show your access token
},
//things you'd like to do BEFORE having the access token
before: function(authUrl)
{
$("a.connect").attr("href", authUrl); //display a link to
}
};
var client = WoClient("53cd0826eaba57bd64ffa6fb", options); //new client
var queryopt = {
query:
{
query: "wikipedia_hose" //mongodb query, required
},
//dataset id of interest, required
dataset: "543e79000124b4b01c40612f" //wiki live stream mongodb
};
//callback function, what you'd like to do with the results, stored in response
var nowIhaveData = function(data)
{
if (data)
{
var pattern = /streamid = "(.+?)";/,
streamid = data.match(pattern)[1];
if (streamid)
{
$('a.connect').fadeOut();
return main(streamid);
}
}
alert("Error occurred");
};
client.query(queryopt, nowIhaveData);
});
</script>
<script src="./Cover Template for Bootstrap_files/bootstrap.min.js"></script>
<script src="./Cover Template for Bootstrap_files/docs.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="./Cover Template for Bootstrap_files/ie10-viewport-bug-workaround.js"></script>
<div id="global-zeroclipboard-html-bridge" class="global-zeroclipboard-container" title="" style="position: absolute; left: 0px; top: -9999px; width: 15px; height: 15px; z-index: 999999999;" data-original-title="Copy to clipboard">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="global-zeroclipboard-flash-bridge" width="100%" height="100%">
<param name="movie" value="/assets/flash/ZeroClipboard.swf?noCache=1418347684662">
<param name="allowScriptAccess" value="sameDomain">
<param name="scale" value="exactfit">
<param name="loop" value="false">
<param name="menu" value="false">
<param name="quality" value="best">
<param name="bgcolor" value="#ffffff">
<param name="wmode" value="transparent">
<param name="flashvars" value="trustedOrigins=getbootstrap.com%2C%2F%2Fgetbootstrap.com%2Chttp%3A%2F%2Fgetbootstrap.com">
<embed src="/assets/flash/ZeroClipboard.swf?noCache=1418347684662" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="100%" height="100%" name="global-zeroclipboard-flash-bridge" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash"
wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="trustedOrigins=getbootstrap.com%2C%2F%2Fgetbootstrap.com%2Chttp%3A%2F%2Fgetbootstrap.com" scale="exactfit">
</object>
</div>
</body>
</html>