-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (64 loc) · 1.61 KB
/
index.html
File metadata and controls
66 lines (64 loc) · 1.61 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>/usr/lib/python2.7/dist-packages/python-hn/__init__.py</title>
<link rel="stylesheet" href="css/googlecode.css">
<style>
* {
margin: 0;
padding: 0;
}
body {
margin: 10px;
padding: 0;
}
a {
color: inherit;
}
pre {
white-space: pre-wrap
}
.hljs {
padding: 0;
}
ul, li {
list-style-type: none
}
li.comment > ul li.comment {
padding-left: 50px;
}
</style>
</head>
<body>
<div id="app"></div>
<script id="story-template" type="text/x-handlebars-template">
<li class="node story">
<pre>
@by("{{by}}", "{{timeago time}}")
class Story_{{id}}(object):
def __init__(<a href="#story/{{id}}">self</a>):
self.title = <a href="{{url}}">"{{title}}"</a>
self.score = {{score}}
self.comments = <a href="#story/{{id}}">{{descendants}}</a>
</pre>
</li>
</script>
<script id="comment-template" type="text/x-handlebars-template">
<li class="node comment" data-id="{{id}}">
<pre>
@by("{{by}}", "{{timeago time}}")
def comment_{{id}}(children={{#if kids}}<a href="javascript:void(0);" class="expand">{{kids.length}}</a>{{else}}0{{/if}})):
return """{{htmlize text}}"""
</pre>
</li>
</script>
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/underscore.js"></script>
<script src="js/backbone.js"></script>
<script src="js/handlebars-v3.0.0.js"></script>
<script src="js/highlight.pack.js"></script>
<script src="js/moment.js"></script>
<script src="js/app.js"></script>
</body>
</html>