-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
137 lines (121 loc) · 3.06 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
<!doctype html>
<html>
<head>
<title>ssj.js - it's over 9000!!!!!</title>
<style>
@font-face {
font-family: 'Oxygene';
src: url('oxygene/OXYGENE1-webfont.eot');
src: url('oxygene/OXYGENE1-webfont.eot?#iefix') format('embedded-opentype'),
url('oxygene/OXYGENE1-webfont.woff') format('woff'),
url('oxygene/OXYGENE1-webfont.ttf') format('truetype'),
url('oxygene/OXYGENE1-webfont.svg#Oxygene1Regular') format('svg');
font-weight: normal;
font-style: normal;
}
body {
background: #333;
/*Safari 5.1+, Chrome 10+*/
background: -webkit-radial-gradient(center center, ellipse contain, #676767, #333) #333 no-repeat;
/* Firefox 3.6+ */
background: -moz-radial-gradient(center center, ellipse contain, #676767, #333) #333 no-repeat;
/* IE 10 */
background: -ms-radial-gradient(center center, ellipse contain, #676767, #333) #333 no-repeat;
padding-top:100px;
min-height: 600px;
}
.robot {
font-family: 'Oxygene', Arial, sans-serif;
font-size:70px;
text-align:center;
margin-top:50px;
margin-left:auto;
margin-right:auto;
text-shadow:2px 3px 3px black;
cursor:pointer;
}
.hands-up {
color:#3D85C6;
}
.hands-down {
color:#B94A48;
}
.robot:active {
text-shadow:0px 1px 0px black;
}
h1, h2 {
text-align: center;
font-family:helvetica,arial,sans-serif;
color:#1f1f1f;
text-shadow:0px 1px 1px #777;
}
h1 { font-size: 48px; }
h2 { font-size:24px; }
</style>
</head>
<body>
<a href="https://github.com/llenodo/ssj.js"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
<h1>SSJ.js</h1>
<h2>Try clicking the robots</h2>
<div class="robot hands-down">j</div>
<div class="robot hands-up">i</div>
</body>
<script src="jquery-1.7.2.js"></script>
<script src="ssj.js"></script>
<script>
//default options
$('h1').ssj();
$('.robot.hands-down').ssj({
immediate:false,
grow:true,
powerLevelStyleRanges: [
{
maxClicks: 5, //max clicks before moving to next style range
blurRadiusMax: 16, //max text blur
blurRadiusMin: 12, //min text blur
blurColor: '#3D85C6', //blueish color
incrementSize: 6 //amount you want to increment the size on each click
},
//SSJ!!
{
incrementSize: 20,
blurRadiusMin: 18,
blurRadiusMax: 27,
blurColor: 'yellow',
color: 'orange'
}
]
});
//a little more variation
$('.robot.hands-up').ssj({
grow:true,
powerLevelStyleRanges: [
{
maxClicks: 5,
blurRadiusMax: 12,
blurRadiusMin: 15,
blurColor: 'red',
incrementSize: 7
},
{
maxClicks: 15,
blurRadiusMin: 21,
blurRadiusMax: 26,
incrementSize: 10,
blurColor: 'lightgreen'
},
{
maxClicks: 20,
incrementSize: 15
},
{
incrementSize: 30,
blurRadiusMin: 33,
blurRadiusMax: 40,
blurColor: 'yellow',
color: 'orange'
}
]
});
</script>
</html>