forked from nko2/replicants
/
index.ejs
142 lines (129 loc) · 6.69 KB
/
index.ejs
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
<html>
<head>
<title>heatwave</title>
<link rel="stylesheet" href="/index.css">
<script type="text/javascript" src="/index.js"></script>
</head>
<body>
<div id="wrapper">
<div id="header">
<a href="/"><img src="/img/logo.png"></a>
</div>
<div id="body">
<div id="examples">
<div style='position:relative;' class="whatsthis">
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:200px;position:absolute;left:0;top:0;"></div>
<div style="background:url(img/hashLeftIndent.png) no-repeat; height:72px; width:52px;position:absolute;left:200px;top:0;"></div>
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:200px;position:absolute;right:0;top:0;"></div>
<div style="background:url(img/hashRightIndent.png) no-repeat; height:72px; width:52px;position:absolute;right:195px;top:0;"></div>
Try this example!
</div>
<iframe src='/empty_frame.html' allowtransparency='true' class='heatmap' style='display:none;' scrolling='no' id='myIframe'>
</iframe>
<div id="example0" class="example">
<textarea id="source"><%= examples[2] %></textarea>
<div style='text-align:center;'>
<input type="button" id="run" class="run" value="run">
<div style='font-family:sans-serif; font-size:11px;'>(You can also edit the text in the box!)</div>
</div>
</div>
</div>
<div class="or"><img src="/img/or.png"></div>
<div id="upload">
<div style='position:relative;' class="whatsthis">
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:190px;position:absolute;left:0;top:0;"></div>
<div style="background:url(img/hashLeftIndent.png) no-repeat; height:72px; width:52px;position:absolute;left:190px;top:0;"></div>
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:190px;position:absolute;right:0;top:0;"></div>
<div style="background:url(img/hashRightIndent.png) no-repeat; height:72px; width:52px;position:absolute;right:185px;top:0;"></div>
Upload your own code!
</div>
<form id='uploadform' method="post" enctype="multipart/form-data" action="/upload">
<input id='choosebtn' type="file" name="file">
<input id='uploadbtn' type="submit" value="upload!">
</form>
</div>
<div class="or"><img src="/img/or.png"></div>
<div id="curl">
<div style='position:relative;' class="whatsthis">
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:90px;position:absolute;left:0;top:0;"></div>
<div style="background:url(img/hashLeftIndent.png) no-repeat; height:72px; width:52px;position:absolute;left:90px;top:0;"></div>
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:90px;position:absolute;right:0;top:0;"></div>
<div style="background:url(img/hashRightIndent.png) no-repeat; height:72px; width:52px;position:absolute;right:85px;top:0;"></div>
Use the <code>curl</code> command to upload code!
</div>
<div>
<p>
Upload your code in <code>file.js</code> via:
<pre>curl -sNT file.js <%= host %></pre>
</p>
</div>
</div>
<div class="or"><img src="/img/or.png"></div>
<div id="recent">
<div style='position:relative;' class="whatsthis">
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:41px;position:absolute;left:0;top:0;"></div>
<div style="background:url(img/hashLeftIndent.png) no-repeat; height:72px; width:52px;position:absolute;left:41px;top:0;"></div>
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:41px;position:absolute;right:0;top:0;"></div>
<div style="background:url(img/hashRightIndent.png) no-repeat; height:72px; width:52px;position:absolute;right:36px;top:0;"></div>
Look at what people have uploaded recently!
</div>
<table id="files">
<% recent.slice(0,10).forEach(function (r) { %>
<tr>
<td>
<a href="/id/<%= r.id %>"><%= r.id %></a>
</td>
<td class="mtime">
<span class="time">
<%= strftime('%T', r.mtime) %>
</span>
<span class="date">
<%= strftime('%b %d %Y', r.mtime) %>
</span>
</td>
</tr>
<% }) %>
</table>
</div>
<div class="or"><img src="/img/and.png"></div>
<div id="voteforus">
<div style='position:relative;' class="whatsthis">
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:200px;position:absolute;left:0;top:0;"></div>
<div style="background:url(img/hashLeftIndent.png) no-repeat; height:72px; width:52px;position:absolute;left:200px;top:0;"></div>
<div style="background:url(img/hashBg.png) repeat-x; height:72px; width:200px;position:absolute;right:0;top:0;"></div>
<div style="background:url(img/hashRightIndent.png) no-repeat; height:72px; width:52px;position:absolute;right:195px;top:0;"></div>
Vote for us!
</div>
<div>
<iframe src="http://nodeknockout.com/iframe/replicants" frameborder=0 scrolling=no allowtransparency=true width=115 height=25></iframe>
</div>
</div>
</div>
<div id="footer">
<p>
<a href="http://catonmat.net">Peteris Krumins</a>,
<a href="http://substack.net">James Halliday</a>,
<a href="http://rook2pawn.com">David Wee</a>,
<a href="http://jesusabdullah.github.com/">Josh Holbrook</a>.
</p>
<p>
<a href="http://nodeknockout.com/teams/replicants"><img src="/img/nko.png" title="VOTE FOR US!"></a>
</p>
</div>
</div>
<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project=7174476;
var sc_invisible=1;
var sc_security="b7d28675";
</script>
<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script>
<noscript><div class="statcounter"><a title="tumblr
tracker" href="http://statcounter.com/tumblr/"
target="_blank"><img class="statcounter"
src="http://c.statcounter.com/7174476/0/b7d28675/1/"
alt="tumblr tracker"></a></div></noscript>
<!-- End of StatCounter Code for Default Guide -->
</body>
</html>