forked from londonacademyofit/like-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (83 loc) · 4.89 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
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
<!DOCTYPE html>
<html>
<head>
<title>Easy 'Like' Button with Firebase | a JavaScript Tutorial by the London Academy of IT</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/foundation.css">
<link rel="stylesheet" href="css/custom.css">
</head>
<body>
<nav class="top-bar" data-topbar role="navigation">
<ul class="title-area">
<li class="name">
<h1><a href="/">Example: Blogpost 'Like' Buttons</a></h1>
</li>
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<section class="top-bar-section">
<!-- Right Nav Section -->
<ul class="right">
<li class="active"><a href="/">Home</a></li>
</ul>
</section>
</nav>
<div class="hero">
<h1>Example Blog Site</h1>
</div>
<div class="row">
<div class="small-12 columns">
<p>This site is an example, built to accompany the <a href="http://www.londonacademyofit.co.uk/learning-blog/javascript/add-like-button-blogposts-simple-javascript/">Easy 'Like' Button tutorial</a> by the London Academy of IT. It uses the <a href="https://foundation.zurb.com/" target="_blank">Foundation framework by Zurb</a> for its grid system, typography, menu bar, etc.</p>
</div>
</div><!--.row-->
<div class="row">
<div class="small-12 columns">
<div class="row post" id="p001">
<div class="small-5 medium-3 columns">
<img src="https://placehold.it/500x400">
</div>
<div class="small-7 medium-9 columns">
<h2>Lorem Ipsum Dolor Sit Amet</h2>
<button class="tiny button radius" onclick="likePost('p001')">Like</button> <span class="like-count"></span>
<p>Cupcake ipsum dolor sit amet chupa chups gummies liquorice sugar plum. Fruitcake cake topping pudding icing sweet croissant. <a href="#">Sweet souffle jelly. »</a></p>
</div>
</div><!--.row .post-->
<div class="row post" id="p002">
<div class="small-5 medium-3 columns">
<img src="https://placehold.it/500x400">
</div>
<div class="small-7 medium-9 columns">
<h2>Lorem Ipsum Dolor Sit Amet</h2>
<button class="tiny button radius" onclick="likePost('p002')">Like</button> <span class="like-count"></span>
<p>Cupcake ipsum dolor sit amet chupa chups gummies liquorice sugar plum. Fruitcake cake topping pudding icing sweet croissant. <a href="#">Sweet souffle jelly. »</a></p>
</div>
</div><!--.row .post-->
<div class="row post" id="p003">
<div class="small-5 medium-3 columns">
<img src="https://placehold.it/500x400">
</div>
<div class="small-7 medium-9 columns">
<h2>Lorem Ipsum Dolor Sit Amet</h2>
<button class="tiny button radius" onclick="likePost('p003')">Like</button> <span class="like-count"></span>
<p>Cupcake ipsum dolor sit amet chupa chups gummies liquorice sugar plum. Fruitcake cake topping pudding icing sweet croissant. <a href="#">Sweet souffle jelly. »</a></p>
</div>
</div><!--.row .post-->
<div class="row post" id="p004">
<div class="small-5 medium-3 columns">
<img src="https://placehold.it/500x400">
</div>
<div class="small-7 medium-9 columns">
<h2>Lorem Ipsum Dolor Sit Amet</h2>
<button class="tiny button radius" onclick="likePost('p004')">Like</button> <span class="like-count"></span>
<p>Cupcake ipsum dolor sit amet chupa chups gummies liquorice sugar plum. Fruitcake cake topping pudding icing sweet croissant. <a href="#">Sweet souffle jelly. »</a></p>
</div>
</div><!--.row .post-->
</div>
</div><!--.row-->
<footer>
<p>© <a href="">The London Academy of IT</a>
</footer>
<script src="https://cdn.firebase.com/js/client/2.2.7/firebase.js"></script>
<script src="js/like-button.js"></script>
</body>
</html>