-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
202 lines (179 loc) · 7.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>I am in shape. Round is a shape.</title>
<meta name="author" content="xming13" />
<meta name="description" content="Random round-shaped superheroes" />
<meta name="language" content="en" />
<meta name="robots" content="index" />
<meta name="viewport" content="width=1000" />
<meta property="og:title" content="I am in shape. Round is a shape." />
<meta property="og:site_name" content="I am in shape. Round is a shape." />
<meta property="og:url" content="http://xming13.github.io/in-shape/" />
<meta property="og:description" content="Christmas-themed random round-shaped superheroes." />
<meta property="og:image" content="http://xming13.github.io/in-shape/images/fb-share.png" />
<meta property="og:type" content="website" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="http://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet" type="text/css">
<link href="css/app.min.css" rel="stylesheet" type="text/css" />
<link href="css/custom.min.css" rel="stylesheet" type="text/css" />
<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-53662868-12', 'auto');
ga('send', 'pageview');
</script>
</head>
<body class="xmas">
<header>
<hgroup>
<h1>
I am in shape <small>Round is a shape</small>
</h1>
</hgroup>
<section class="images-wrapper">
</section>
</header>
<section class="theme">
<a href="#" class="theme-select">
Theme
</a>
<ul>
<li class="theme--basic">Basic</li>
<li class="theme--xmas">Xmas</li>
</ul>
</section>
<section id="element-wrapper">
<div id="element" class="element perspectived">
<a href="#">
<img src="images/basic/spiderman.png" />
<p>
<span class="hero-name">Spiderman</span>
<span class="hero-quote">With great power comes great responsibility</span>
</p>
</a>
</div>
<div id="element2" class="element perspectived">
<a href="#">
<img src="images/basic/superman.png" />
<p>
<span class="hero-name">Superman</span>
<span class="hero-quote">You’re much stronger than you think you are. <br> Trust me.</span>
</p>
</a>
</div>
<div id="element3" class="element perspectived">
<a href="#">
<img src="images/basic/minion.png" />
<p>
<span class="hero-name">Minion</span>
<span class="hero-quote">Hahahahahaha <br> Butt <br> hahahaha </span>
</p>
</a>
</div>
<div id="element4" class="element perspectived">
<a href="#">
<img src="images/basic/batman.png" />
<p>
<span class="hero-name">Batman</span>
<span class="hero-quote">It's not who I am underneath, <br> but what I do that defines me</span>
</p>
</a>
</div>
<div id="element5" class="element perspectived">
<a href="#">
<img src="images/basic/hulk.png" />
<p>
<span class="hero-name">Hulk</span>
<span class="hero-quote">Don't make me angry. <br> You wouldn't like me when I'm angry.</span>
</p>
</a>
</div>
<div id="element6" class="element perspectived">
<a href="#">
<img src="images/basic/ironman.png" />
<p>
<span class="hero-name">Ironman</span>
<span class="hero-quote">Is it better to be feared or respected? <br> I say, is it too much to ask for both?</span>
</p>
</a>
</div>
<div id="element7" class="element perspectived">
<a href="#">
<img src="images/basic/joker.png" />
<p>
<span class="hero-name">Joker</span>
<span class="hero-quote">Why so serious?</span>
</p>
</a>
</div>
<div id="element8" class="element perspectived">
<a href="#">
<img src="images/basic/wolverine.png" />
<p>
<span class="hero-name">Wolverine</span>
<span class="hero-quote">I'm the best there is at what I do. <br> And what I do isn't very nice.</span>
</p>
</a>
</div>
</section>
<footer>
<p>
A tribute to <a href="http://www.is-real.net/" target="_blank">Israel Pastrana</a>
for the <a href="http://www.is-real.net/experiments/css3/wonder-webkit/" target="_blank">wonder wall</a>
and
<a href="http://www.schillmania.com/" target="_blank">Scott Schiller</a>
for the <a href="https://github.com/scottschiller/Snowstorm" target="_blank">snow effect</a>.
</p>
</footer>
<script src="js/snowstorm.min.js"></script>
<script src="js/app.min.js"></script>
<script>
snowStorm.flakesMaxActive = 96;
</script>
<script>
$(document).ready(function() {
$('.theme').hover(function() {
$('.theme ul').stop().animate({top: 0});
}, function() {
$('.theme ul').stop().animate({top: -120});
});
$('.theme ul li').click(function() {
$(this).siblings().removeClass('selected');
$(this).addClass('selected');
var selectedTheme = $(this).html().trim().toLowerCase();
$('.element a img').each(function() {
var imgName = this.src.substring(this.src.lastIndexOf('/') + 1);
this.src = 'images/' + selectedTheme + '/' + imgName;
});
if (!$('body').hasClass(selectedTheme)) {
$('body').removeClass().addClass(selectedTheme);
}
$('.images-wrapper').html('');
switch (selectedTheme) {
case 'xmas':
snowStorm.resume();
var imgReindeer = new Image();
imgReindeer.src = 'images/xmas/reindeer.png';
var imgSanta = new Image();
imgSanta.src = 'images/xmas/santa.png';
var imgSnowman = new Image();
imgSnowman.src = 'images/xmas/snowman.png';
$('.images-wrapper').append(imgReindeer).append(imgSanta).append(imgSnowman);
break;
case 'basic':
default:
snowStorm.stop();
break;
}
$('.theme-select').html('Theme <span class="caret"></span>');
$('.theme').mouseleave();
});
$('.theme--xmas').click();
});
</script>
</body>
</html>