/
index.html
69 lines (61 loc) · 2.06 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
69
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Birds of Paradise</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/howler/2.0.0/howler.min.js"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script type="text/javascript" src="/src/js/audio-handler.js"></script>
<script type="text/javascript" src="/src/js/graphics-handler.js"></script>
<script>
var socket = io.connect('192.168.1.24:8080');
jQuery(function ($) {
CanvasArea.initCanvas();
var tweetList = $('ul.tweets');
socket.on('tweet', function (data) {
CanvasArea.newTweet(data);
AudioHandler.playBird();
CanvasArea.limitTweets();
});
});
</script>
<style>
@import url('https://fonts.googleapis.com/css?family=Montserrat');
html,
body,
section,
div,
svg{
margin: 0;
padding: 0;
}
text.header-label, text.sub-label{
font-family: 'Montserrat', sans-serif;
font-weight: bold;
opacity: 1;
}
text.article-label{
font-family: 'Montserrat', sans-serif;
font-weight: bolder;
opacity: 1;
}
text.article-label{
visibility: hidden;
}
.bird:hover ~ .article-label, .header-label:hover ~ .article-label{
visibility: visible;
pointer-events: all;
}
</style>
</head>
<body>
<div id="area" style="overflow-x: hidden;">
</div>
<section id="about">
</section>
<footer>
</footer>
</body>
</html>