forked from shaidavis/spacebook-c2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (57 loc) · 2.56 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
<!DOCTYPE html>
<html>
<head>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
<title></title>
</head>
<<<<<<< HEAD
<body>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="page-header">
<h1>Spacebook</h1>
</div>
<div class="posts"></div>
<form class="beer-form" onsubmit="event.preventDefault();">
<h3>Add a New Post</h3>
<div class="form-group">
<input class="form-control" type="text" id="post-name" placeholder="Post Text">
</input>
</div>
<button type="button" onclick="post(this)" class="btn btn-primary add-post">Post</button>
</form>
=======
<div class="posts">
</div>
<form>
<h3>Add a New Post</h3>
<div class="form-group">
<input type="text" id="post-name" class="form-control" placeholder="Post Text">
</input>
>>>>>>> 94bbb049470be46ca9698bb9f508dabad78f5f37
</div>
</div>
<script id="post-template" type="text/x-handlebars-template">
<div class="post" data-id={{id}}> {{text}} <a class="toggle-comments" href="#"> {{comments.length}} comments </a>
<button type="button" class="btn btn-danger remove-post">Remove Post</button>
<div class="comments-container">
<ul class=comments-list></ul>
<input class="form-control name" type="text" placeholder="Name">
<input class="form-control comment" type="text" placeholder="Comment">
<button type="button" class="btn btn-sm btn-primary add-comment">Post Comment</button>
<!--<button type="button" class="btn btn-sm btn-primary view-comments">View Comments</button>
<button type="button" class="btn btn-sm btn-primary hide-comments hidden">Hide Comments</button> -->
</div>
</div>
</script>
<script id="comment-template" type="text/x-handlebars-template">
<li class="comment">{{text}} - {{user}}
<button type="button" class="btn btn-sm btn-danger remove-comment">Remove Comment</button>
</li>
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.js" type="text/javascript"></script>
<script src="main.js"></script>
</body>
</html>