Commit 4219b44a43839fd6926401a5398152e26e8ad23e

  • avatar
  • arvind
  • Mon Mar 03 16:50:07 IST 2014
Adding index.html.
  • index.html 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  • Diff rendering mode:
  • inline
  • side by side

index.html

1<html>
2 <head>
3 <link rel="stylesheet"
4 href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"
5 type="text/css" media="screen" />
6 </head>
7 <body class="container">
8 <p>Comment below</p>
9 <div id="comments">
10
11 </div>
12
13 <div id="commented">
14
15 </div>
16 <script type="text/template" id="commented-template">
17 <div class="comment">
18 <div id=<%= id %> replyTo=<%= how.replyTo %>><%= how.comment %></div>
19 <button class="btn btn-primary" for=<%= id %>>Reply</button>
20 </div>
21 </script>
22 <script type="text/template" id="comment-template">
23 <div class="new-comment">
24 <textarea class="form-control"><%= how.comment %></textarea>
25 <button class="btn btn-primary btn-danger cancel">Cancel</button>
26 <button class="btn btn-primary save">Save</button>
27 </div>
28 </script>
29 <div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true">
30 <div class="modal-dialog">
31 <div class="modal-content">
32 <div class="modal-header">
33 <h4 class="modal-title" id="ModalLabel">Sign in!</h4>
34 </div>
35 <div class="modal-body">
36 <div class="form-group">
37 <label class="sr-only" for="username">Username</label>
38 <input type="text" class="form-control" id="username" placeholder="Enter username">
39 </div>
40 <div class="form-group">
41 <label class="sr-only" for="password">Password</label>
42 <input type="password" class="form-control" id="password" placeholder="Password">
43 </div>
44 </div>
45 <div class="modal-footer">
46 <button type="button" class="btn btn-default"
47 data-dismiss="modal">Close</button>
48 <button type="button" id="saveButton" class="btn btn-primary"
49 data-dismiss="modal">Login</button>
50 </div>
51 </div>
52 </div>
53 <script type="text/javascript"
54 src="//code.jquery.com/jquery-1.11.0.min.js"></script>
55 <script type="text/javascript"
56 src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
57 <script type="text/javascript">
58 window.C = window.C || {};
59 window.onload = function(){
60 C.what = "swaracomment";
61 C.url = "http://127.0.0.1:5001";
62 C.sweet= "/sweets";
63 C.get = "/sweets/q";
64 C.init(); }
65 </script>
66 <script type="text/javascript" src="underscore-min.js"></script>
67 <script type="text/javascript" src="backbone-min.js"></script>
68 <script type="text/javascript" src="app.js"></script>
69
70 </body>
71</html>