-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclock.html
More file actions
87 lines (78 loc) · 2.83 KB
/
clock.html
File metadata and controls
87 lines (78 loc) · 2.83 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Clock: Experiment with Prototypo-canvas + plumin.js during the Mirage Festival Workshop</title>
<link rel="stylesheet" href="clock/css/clock.css"></link>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
</head>
<body class="">
<div id="clock" class="row grotesk text-center"><span style="font-size: 16px;">Wait a few seconds…</span></div>
</body>
<canvas id="canvas" style="display:none;"></canvas>
<script src="clock/prototypo.js"></script>
<script src="clock/prototypo-canvas.js"></script>
<script src="clock/src/lib-clock.js"></script>
<script src="clock/src/clock.js"></script>
<footer>
<style media="screen">
footer {
position: absolute;
bottom: 10px;
right: 10px;
width: 100px;
text-align: right;
}
</style>
<div id="facebook" class="fb-share-button" data-href="" data-layout="button" style="margin-bottom: 5px;"></div>
<a id="twitter"
class="twitter-share-button"
href="clock.html"
data-size="large">
Tweet</a>
<script>
document.getElementById("twitter").setAttribute("href", "https://twitter.com/intent/tweet?text=" + document.title + " — via @prototypoApp" );
window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));
</script>
<div id="fb-root"></div>
<script>
document.getElementById("facebook").setAttribute("href", window.location.href );
(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/fr_FR/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script type="text/javascript">
var ua = navigator.userAgent.toLowerCase();
console.log(ua);
if (ua.indexOf('chrome') === -1 && ua.indexOf('firefox') === -1 ) {
alert('Your browser does not support technologies we use in our lab. Please use Chrome or Firefox latest versions.');
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41962243-1', 'prototypo.io');
ga('send', 'pageview');
</script>
</footer>
</html>