-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (116 loc) · 6.38 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
<!DOCTYPE html>
<html>
<head>
<title>Hariawan | Snakeweet</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en-US" />
<meta charset=utf-8>
<meta name="description" content="Kuis anak SD, seharusnya. Masih inget? Cobain!" />
<meta name="author" content="Hariawan Bangun Safutra" />
<meta name="keywords" content="Hariawan, hariawanapp, Hariawan App, Ide, Idea, Creative, Creativity, Be Creative, IbuKotaKita, ibukotakita" />
<meta name="revised" content="IbuKotaKita, 09/07/2012" />
<!-- <link rel="Shortcut Icon" href="../../img/MK_icon.ico"> -->
<link rel=stylesheet href="http://fonts.googleapis.com/css?family=Istok+Web:400,700">
<link rel=stylesheet href="http://fonts.googleapis.com/css?family=Droid+Sans+Mono">
<link rel=stylesheet href='http://fonts.googleapis.com/css?family=Boogaloo'>
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link href='http://fonts.googleapis.com/css?family=Cookie|Aldrich' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$.getJSON("https://search.twitter.com/search.json?callback=?&q=Woohoo!%20I%20just%20reached%2030%20point%20in%20%23Snakeweet&callback=?",
function(data) {
for (i=0; i<5; i++) {
var created_date = data.results[i].created_at;
var date_formatted = "";
/* COPIED FROM http://twitter.com/javascripts/widgets/widget.js */
var rightNow = new Date();
var then = new Date(created_date);
var diff = rightNow - then;
var second = 1000,
minute = second * 60,
hour = minute * 60,
day = hour * 24,
week = day * 7;
if (isNaN(diff) || diff < 0) {
date_formatted = ""; // return blank string if unknown
} else if (diff < second * 2) {
// within 2 seconds
date_formatted = "right now";
} else if (diff < minute) {
date_formatted = Math.floor(diff / second) + " seconds ago";
} else if (diff < minute * 2) {
date_formatted = "about 1 minute ago";
} else if (diff < hour) {
date_formatted = Math.floor(diff / minute) + " minutes ago";
} else if (diff < hour * 2) {
date_formatted = "about 1 hour ago";
} else if (diff < day) {
date_formatted = Math.floor(diff / hour) + " hours ago";
} else if (diff > day && diff < day * 2) {
date_formatted = "yesterday";
} else if (diff < day * 365) {
date_formatted = Math.floor(diff / day) + " days ago";
} else {
date_formatted = "over a year ago";
}
/* END COPIED FROM http://twitter.com/javascripts/widgets/widget.js */
$("#participants").append("<a href=\"https://twitter.com/"+data.results[i].from_user+"/status/"+data.results[i].id_str+"\" title=\""+date_formatted+" \" target=\"_blank\"><img id=\"img-participants\" src=\"https://api.twitter.com/1/users/profile_image/"+data.results[i].from_user+"?size=mini\" /></a> ");
if (i === 4) {
$("#participants").append("<a href=\"https://twitter.com/#!/search/Woohoo!%20I%20just%20reached%2030%20point%20in%20%23Snakeweet\" target=\"_blank\"> more </a>");
}
}
});
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21754707-12']);
_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>
</head>
<body>
<header id="header">
<h1>Snakeweet</h1>
</header>
<section>
<section id="game_rules">
<h2>Just a simply rule</h2>
<li>Click start button</li>
<li>Get the score until 30</li>
<li>Post it into your Twitter</li>
<br>
<p>★ Once you've done, your twitter in our footer ★</p>
</section>
<section id="snake_container">
</section>
</section>
<footer>
<div class=clearfix>
<a href="mailto:[email protected]?subject=Snakeweet Sponsorship" style="float: left; margin-left: 20px; text-align: left;">Your logo here</a>
<small>Inspired by <a href="http://thecodeplayer.com/walkthrough/html5-game-tutorial-make-a-snake-game-using-html5-canvas-jquery" target="_blank">The Code Player</a></small>
<abbr id="participants" title="Snakeweet players" style="text-align: center;"></abbr>
</div>
</footer>
<script src="js/rollinglinks.js"></script>
<script type="text/javascript" src="js/snake.js"></script>
<script type="text/javascript">
var GoSquared = {acct: "GSN-952278-I"};
(function(w){
function gs(){
w._gstc_lt = +new Date;
var d = document, g = d.createElement("script");
g.type = "text/javascript";
g.src = "//d1l6p2sc9645hc.cloudfront.net/tracker.js";
var s = d.getElementsByTagName("script")[0];
s.parentNode.insertBefore(g, s);
}
w.addEventListener ? w.addEventListener("load", gs, false) : w.attachEvent("onload", gs);
})(window);
</script>
</body>
</html>