-
Notifications
You must be signed in to change notification settings - Fork 80
/
index.html
208 lines (186 loc) · 6.8 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="en">
<head>
<!-- meta -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="description" content="A memory game, built for fun with HTML, CSS, and JavaScript.">
<meta name="author" content="Nick Salloum">
<!-- title -->
<title>Memory Game!</title>
<!-- css -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto+Slab">
<link rel="stylesheet" href="css/memory.min.css">
<!-- og -->
<meta property="og:title" content="Memory Game!">
<meta property="og:url" content="http://callmenick.com/memory/">
<meta property="og:image" content="http://callmenick.com/memory/img/og-image.png">
</head>
<body>
<div class="wrapper">
<div class="header clearfix">
<div class="header__logo">
<a href="http://callmenick.com">
<img src="img/logo.png" alt="Call Me Nick - Tutorials, Snippets, Resources, and Articles for Web Design and Web Development">
</a>
</div>
<h1 class="header__title">Memory Game!</h1>
</div><!-- /.header -->
<div class="content">
<div class="container">
<div id="my-memory-game"></div>
</div>
</div><!-- /.content -->
<div class="footer clearfix">
<div class="footer__left">
<h2 class="footer__title">Memory Game!</h2>
<div class="footer__social">
<h3 class="footer__social--heading">Star or fork on GitHub:</h3>
<div id="footer__social--icons-github" class="footer__social--icons"></div>
</div>
<div class="footer__social">
<h3 class="footer__social--heading">Share / Tweet:</h3>
<div class="footer__social--icons">
<div class="fb-like" data-href="http://callmenick.com/memory/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://callmenick.com/memory/" data-via="nicksalloum_">Tweet</a>
</div>
</div>
<div class="footer__copyright">
<small>
Made for fun by:<br>
<a href="http://callmenick.com">callmenick.com</a>
</small>
</div>
</div>
<div class="footer__right">
<div id="footer__ad--container"></div>
</div>
</div><!-- /.footer -->
</div><!-- /.wrapper -->
<!-- js -->
<script src="js/classList.min.js"></script>
<script src="js/memory.js"></script>
<!-- start memory! -->
<script>
(function(){
var myMem = new Memory({
wrapperID : "my-memory-game",
cards : [
{
id : 1,
img: "img/default/monsters-01.png"
},
{
id : 2,
img: "img/default/monsters-02.png"
},
{
id : 3,
img: "img/default/monsters-03.png"
},
{
id : 4,
img: "img/default/monsters-04.png"
},
{
id : 5,
img: "img/default/monsters-05.png"
},
{
id : 6,
img: "img/default/monsters-06.png"
},
{
id : 7,
img: "img/default/monsters-07.png"
},
{
id : 8,
img: "img/default/monsters-08.png"
},
{
id : 9,
img: "img/default/monsters-09.png"
},
{
id : 10,
img: "img/default/monsters-10.png"
},
{
id : 11,
img: "img/default/monsters-11.png"
},
{
id : 12,
img: "img/default/monsters-12.png"
},
{
id : 13,
img: "img/default/monsters-13.png"
},
{
id : 14,
img: "img/default/monsters-14.png"
},
{
id : 15,
img: "img/default/monsters-15.png"
},
{
id : 16,
img: "img/default/monsters-16.png"
}
],
onGameStart : function() { return false; },
onGameEnd : function() { return false; }
});
})();
</script>
<!-- ads, fb, twitter, github, analytics -->
<script>
(function(){
var fusoionad_script = document.createElement("script");
fusoionad_script.type = "text/javascript";
fusoionad_script.async = true;
fusoionad_script.id = "_fusionads_js";
fusoionad_script.src = "http://cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=callmenickcom";
document.getElementById("footer__ad--container").appendChild(fusoionad_script);
})();
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=222982931164932&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
(function(){
var gitFork = document.createElement("iframe");
gitFork.setAttribute( "src", "http://ghbtns.com/github-btn.html?user=callmenick&repo=Memory&type=fork&count=true" );
gitFork.setAttribute( "allowtransparency", "true" );
gitFork.setAttribute( "frameborder", "0" );
gitFork.setAttribute( "scrolling", "0" );
gitFork.style.width = "95px";
gitFork.style.height = "20px";
document.getElementById("footer__social--icons-github").appendChild(gitFork);
var gitWatch = document.createElement("iframe");
gitWatch.setAttribute( "src", "http://ghbtns.com/github-btn.html?user=callmenick&repo=Memory&type=watch&count=true" );
gitWatch.setAttribute( "allowtransparency", "true" );
gitWatch.setAttribute( "frameborder", "0" );
gitWatch.setAttribute( "scrolling", "0" );
gitWatch.style.width = "110px";
gitWatch.style.height = "20px";
document.getElementById("footer__social--icons-github").appendChild(gitWatch);
})();
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34160351-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<div id="fb-root"></div>
</body>
</html>