-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
141 lines (119 loc) · 5.33 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
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
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<title>hacker~trends</title>
<link href="/css/screen.css" rel="stylesheet" type="text/css" media="screen, projection"/>
<link href='http://fonts.googleapis.com/css?family=Allerta' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="nav">
<a id="hacker-trends" href="/">hacker~trends</a>
<a id="by-typeish" href="http://typeish.net"><img src="http://typestatic.net/sabe_us/images/by-typeish.png"></a>
<a name="word-graph" class="tab" href="#word-graph">Word Graphs</a>
<a name="post-graph" class="tab" href="#post-graph">Post Graphs</a>
<a name="post-table" class="tab" href="#post-table">Post Table</a>
<a name="about" class="tab" href="#about">About</a>
<button id="refresh">REFRESH DATA <span id="refresh-counter">( ~ )</span></button>
<span id="post-count"></span>
<span id="word-count"></span>
</div>
<div name="word-graph" class="box">
<h2>Word Frequency</h2>
<div id="word-frequency-queries">
<input type="text" id="q"/>
<button id="search">Search</button>
<ul id="query-list">
</ul>
<div id="legend"></div>
</div>
<div id="wordfrequency" class="graph"></div>
</div>
<div name="post-graph" class="box">
<h2>Count per Rank</h2>
<div id="countvsrank" class="graph"></div>
<h2>Hours In Top 30 vs Rank</h2>
<div id="top30vsrank" class="graph"></div>
<h2># Comments vs Rank</h2>
<div id="commentsvsrank" class="graph"></div>
<h2># Comments vs Hours In Top 30</h2>
<div id="commentsvstop30" class="graph"></div>
<h2>Count per Hours To Max Rank</h2>
<div id="countvstimemaxrank" class="graph"></div>
</div>
<div name="post-table" class="box">
<h2>Posts by Rank</h2>
<table id="post-table-table">
</table>
</div>
<div name="about" class="box">
<h2>About hacker~trends</h2>
<p>hacker~trends blah blah blah</p>
<h2>API</h2>
<p>You can access the raw data using the API, which is used by this interface, itself.</p>
<table>
<tr>
<th>Method</th><th>URL</th><th>Params</th><th>Format</th></tr>
</tr>
<tr>
<td colspan=4>List Posts</td>
</tr>
<tr>
<td>GET</td>
<td>/posts/</td>
<td>-</td>
<td>JSON</td>
</tr>
<tr>
<td colspan=4>Description</td>
</tr>
<tr>
<td colspan=4>Response...</td>
</tr>
<tr>
<td colspan=4>Get Word Frequencies</td>
</tr>
<tr>
<td>GET</td>
<td>/word/</td>
<td>word</td>
<td>JSON</td>
</tr>
<tr>
<td colspan=4>Description</td>
</tr>
<tr>
<td colspan=4>Response</td>
</tr>
<tr>
<td colspan=4>List Words</td>
</tr>
<tr>
<td>GET</td><td>/words/</td><td>-</td><td>JSON</td>
</tr>
<tr>
<td colspan=4>Description</td>
</tr>
<tr>
<td colspan=4>Response...</td>
</tr>
</table>
<h2>Technical</h2>
<p>
The backend uses <a href="http://www.mongodb.org/">MongoDB</a>, <a href="http://nodejs.org/">Node.js</a>, and <a href="http://expressjs.com/">Express</a>, on an <a href="http://www.ubuntu.com/">Ubuntu</a> <a href="http://www.linode.com/?r=5f045f057e3d1c0cc0d82ca1697690e03dc0dff9">Linode</a>.
The front-end uses <a href="http://jquery.com/">jQuery</a> and <a href="http://code.google.com/p/flot/">flot</a>. The typeface is Allerta, provided by the <a href="http://code.google.com/webfonts">Google Font Directory</a>.
</p>
<p>
The source is <a href="https://github.com/typeish/hackertrends">available on GitHub »</a>
</p>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.flot.min.js"></script>
<script type="text/javascript" src="/js/models.js"></script>
<script type="text/javascript" src="/js/utils.js"></script>
<script type="text/javascript" src="/js/views.js"></script>
<script type="text/javascript" src="/js/managers.js"></script>
<script type="text/javascript" src="/js/init.js"></script>
</body>
</html>