-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathindex.html
More file actions
101 lines (94 loc) · 5.19 KB
/
index.html
File metadata and controls
101 lines (94 loc) · 5.19 KB
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
<html>
<title>The Button Monitor</title>
<meta name="keywords" content="thebutton, button, reddit button, redguard">
<meta name="description" content="Monitor the button. A simple chart for /r/thebutton">
<meta name="author" content="James Romeril">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<!-- Suppress browser request for favicon.ico -->
<link id="favicon" rel="shortcut icon" href="#">
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<body>
<div id="notice" style="background:#f8f8f8;border:1px solid #ddd;padding:16px 24px;margin:24px auto;max-width:700px;font-family:sans-serif;font-size:15px;color:#333;border-radius:4px;">
<strong>Reddit's The Button event has ended.</strong>
This page was a real-time monitor for <a href="https://www.reddit.com/r/thebutton">/r/thebutton</a>, a social experiment that ran on Reddit in 2015.
The event is long over and this page no longer does anything useful.
</div>
<div id="loading-indicator" style="display:none">
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Connecting...
</div>
<div class="container-fluid">
<div id="chart" class="col-md-12"></div>
<div id="stats">
<div>Started: <span class="start"></span></div>
<div>Time Difference: <span class="lag"></span>ms</div>
<div>Participants: <span class="participants"></span></div>
<div>Clicks: <span class="clicks"></span></div>
<div>Resets: <span class="resets"></span></div>
<div>Ticks: <span class="ticks"></span></div>
<div>Lowest time: <span class="lowest_time"></span></div>
<div>Average time: <span class="average_time"></span></div>
<div>Median time: <span class="median_click_time"></span></div>
<div>Resets/min: <span class="resets_per_minute"></span></div>
<div>Purple clicks: <span id="purple-stats"><span class="total_purples"></span> <span class="purple_percentage"></span></span></div>
<div>Blue clicks: <span id="blue-stats"><span class="total_blues"></span> <span class="blue_percentage"></span></span></div>
<div>Green clicks: <span id="green-stats"><span class="total_greens"></span> <span class="green_percentage"></span></span></div>
<div>Yellow clicks: <span id="yellow-stats"><span class="total_yellows"></span> <span class="yellow_percentage"></span></span></div>
<div>Orange clicks: <span id="orange-stats"><span class="total_oranges"></span> <span class="orange_percentage"></span></span></div>
<div>Red clicks: <span id="red-stats"><span class="total_reds"></span> <span class="red_percentage"></span></span></div>
</div>
<div id="timer">
??.?
</div>
<div id="settings">
<div id="collapse-settings">
<!-- Settings Cog, from iconic -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 8 8">
<path d="M3.5 0l-.5 1.19c-.1.03-.19.08-.28.13l-1.19-.5-.72.72.5 1.19c-.05.1-.09.18-.13.28l-1.19.5v1l1.19.5c.04.1.08.18.13.28l-.5 1.19.72.72 1.19-.5c.09.04.18.09.28.13l.5 1.19h1l.5-1.19c.09-.04.19-.08.28-.13l1.19.5.72-.72-.5-1.19c.04-.09.09-.19.13-.28l1.19-.5v-1l-1.19-.5c-.03-.09-.08-.19-.13-.28l.5-1.19-.72-.72-1.19.5c-.09-.04-.19-.09-.28-.13l-.5-1.19h-1zm.5 2.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"/>
</svg>
</div>
<div id="settings-menu">
<div>
<label> Sort by seconds: <input type="checkbox" id="sorted"></label>
</div>
<div><input type="button" value="Clear data" onclick="Settings.clear()"></div>
</div>
</div>
<div class="footer twitter">
Follow <a href="https://twitter.com/jamesrom">@jamesrom</a>
</div>
<div class="footer email">
Fork on <a href="https://github.com/jamesrom/jamesrom.github.io/">GitHub</a>. Thanks to <a href="https://github.com/jamesrom/jamesrom.github.io/graphs/contributors">contributors</a>.
</div>
<div class="footer web">
Visit <a href="http://jamesromeril.com/">jamesromeril.com</a>
</div>
</div>
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/3.6.0/lodash.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js"></script>
<!-- Used to get valid "mousewheel" events in Firefox -->
<script src="jQuery_mousewheel_3_1_12.js"></script>
<script src="d3-tip.js"></script>
<script src="app.js"></script>
<script src="comms.js"></script>
<script src="chart.js"></script>
<script src="timer.js"></script>
<script src="stats.js"></script>
<script src="settings.js"></script>
<script>
$(init);
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61555837-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>