-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex-bb-github-api.html
71 lines (52 loc) · 1.74 KB
/
index-bb-github-api.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
<!DOCTYPE HTML PUBLIC>
<html>
<head>
<title>github</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
.container {
position : absolute;
display : block;
}
.left {
float : left;
left : 0px;
width : 30%;
}
.right {
float : right;
left : 30%;
width : 70%;
}
</style>
</head>
<body>
<script type="text/template" id="posts-collection-template">
<ol>
<% _.each(posts, function(post) { %>
<li>
<a href="#post/<%= post.id %>"><b><%= post.id %></b></a>
<br><%= post.message %>
</li>
<% }); %>
</ol>
</script>
<script type="text/template" id="post-details-template">
<h3><%= id %> :</h3> <h4><%= message %></h4> By <%= author %>
<br/> Created : <%= dateCreate %>
<br/> Updated : <%= dateUpdate %>
<hr/>
<p><%= converter.makeHtml(text) %></p>
</script>
<div class="container left" id="posts-collection-container"></div>
<div class="container right" id="post-details-container"></div>
</body>
<script src="js/vendor/showdown.js"></script>
<script src="js/vendor/github.js"></script>
<script src="js/vendor/zepto.min.js"></script>
<script src="js/vendor/underscore-min.js"></script>
<script src="js/vendor/backbone-min.js"></script>
<script src="js/backbone.sync/backbone-sync-github.js"></script>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="bb-github-api.js"></script>
</html>