-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
53 lines (50 loc) · 2.3 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Music Associations</title>
<link rel="stylesheet" href="./style.css">
<link href='http://fonts.googleapis.com/css?family=Raleway:500,300' rel='stylesheet' type='text/css'>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="jquery-1.9.0.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37874293-2']);
_gaq.push(['_setDomainName', 'kevinshen.net']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="popup" id="artistTooltip"></div>
<div class="popup" id="storyTooltip"></div>
<div id="title">
<h1>The Musical Nostalgia Machine</h1>
</div>
<div id="chart"></div>
<div class="axis" id="month-axis"></div>
<div class="axis" id="year-axis"></div>
<div id="info">
<!--<div class="popup" id="about-caption">-->
<div id="about-caption">
<p>Visualizing my listening habits for the last 4 years, and how they relate to events in my life.</p>
<p>My top 40 artists are represented in a streamgraph. Each stream represents one artist. Hover over a stream to see the number of plays for that artist in that month. Click a stream to hide other artists.</p>
</div>
<div id="aboutbox">
<img id="aboutbutton" src="./img/help.png" onclick="toggleAbout()"></img>
<img id="soundbutton" src="./img/nosound.png" onclick="toggleSound()"></img>
<a id="lastfm-link" href="http://www.last.fm/user/yellowJumpsuit"><img src="./img/logo.png"></img>
</a>
</div>
<p>Inspired by Lee Byron's <a href="http://www.leebyron.com/what/lastfm/">Streamgraph</a></p>
<p>Built with <a href="http://d3js.org/">d3.js</a></p>
</div>
<audio id="audioplayer1" class="player" autoplay="autoplay" preload="none">
</audio>
<script src="./createchart.js"></script>
</body>
</html>