forked from hakimel/Sphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
91 lines (74 loc) · 3.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="HTML5 Canvas Math Doodle" />
<meta name="author" content="Hakim El Hattab" />
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Sphere</title>
<link href="css/reset.css" rel="stylesheet" media="screen" />
<link href="css/main.css" rel="stylesheet" media="screen" />
<link href='http://fonts.googleapis.com/css?family=Molengo' rel='stylesheet' type='text/css'>
</head>
<body>
<header>
<h1>Sphere</h1>
<span class="header-instruction">Expand for more info.</span>
<!-- The extra content that can be expanded -->
<div class="extra">
<!-- Description of the experiment -->
<section id="about">
<h3>About</h3>
<p>
When bored, I sometimes open a blank JavaScript<br>
file and start writing without any clear objective<br>
of where I want to take it. This is the result of one<br>
such coding session.
</p>
<p class="credits">
Created by <a href="http://hakim.se/">Hakim El Hattab</a> | <a href="http://twitter.com/hakimel">@hakimel</a>
</p>
</section>
<section>
<h3>Source</h3>
<p>
After some fiddling and minification I was able to <br>
squeeze the JavaScript source into 372 bytes.<br>
You can find the source on <a href="http://github.com/hakimel/Sphere">GitHub</a>.
</p>
</section>
<!-- Social sharing -->
<section id="share">
<h3>Share</h3>
<iframe id="facebook-button" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fhakim.se%2Fexperiments%2Fhtml5%2Fsphere%2F&layout=box_count&show_faces=false&width=55&action=like&font=arial&colorscheme=light&height=60" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:55px; height:60px;" allowTransparency="true"></iframe>
<div id="retweet-button">
<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://hakim.se/experiments/html5/sphere/" data-text="Sphere - a doodle with math and canvas by @hakimel" data-count="vertical" data-related="hakimel">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</div>
</section>
</div>
</header>
<script src="js/header.js"></script>
<script src="js/sphere.js"></script>
<!-- Third party tracking and sharing code below -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15240703-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>
<script src="http://www.w3counter.com/tracker.js"></script>
<script>
w3counter(49720);
var ps = document.createElement('script');
ps.type = 'text/javascript';
ps.async = true;
ps.src = '//pulse.w3counter.com/pulse.js?id=49720';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(ps);
</script>
</body>
</html>