-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmeatspin.html
More file actions
143 lines (129 loc) · 3.97 KB
/
meatspin.html
File metadata and controls
143 lines (129 loc) · 3.97 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
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
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="icon" href="pelement.png">
<link href="https://fonts.googleapis.com/css?family=Roboto:700,900" rel="stylesheet" type="text/css">
<style>
body{
background-color:#3597ff;
margin:0;
}
#headertext{
position: fixed;
width: 100%;
text-align: center;
font-family: Roboto,Arial,sans-serif;
font-weight: bold;
color: white;
font-size: 1.3vw;
top: calc(50vh - 18vw);
}
#container{
display: block;
position: fixed;
width: 44vw;
height: 31vw;
background-color: white;
left: 28vw;
top: 50%;
margin-top: -15.5vw;
font-family: Roboto,Arial,sans-serif;
font-weight: 700;
text-align: center;
font-size: 2vw;
line-height: 58vw;
}
#rollin{
display: none;
position: absolute;
width: 40vw;
height: 25vw;
background-color: red;
background-image:url("images/roll.gif");
background-size:contain;
top: 2vw;
left: 2vw;
}
.gboob{
display: block;
position: absolute;
width: 40vw;
height: 25vw;
background-color: red;
background-image:url("images/GBback.png");
background-size:40vw 25vw;
top: 2vw;
left: 2vw;
transition:left 15s;
transition-timing-function:linear;
}
#pizza{
display: block;
position: absolute;
width: 7.5vw;
height: 7.5vw;
background-image: url("images/pizza.png");
background-size: contain;
top: 18vw;
left: 18vw;
animation: spin 2s linear infinite;
cursor:pointer;
}
@keyframes spin{
to{transform:rotate(360deg);}
}
@keyframes scare{
50%{margin-left:1vw;}
100%{margin-left:-1vw;}
}
</style>
<script>
var count=0,counting=true;
function init(){
setInterval(increment,2000);
}
window.onfocus = function () {
counting=true;
};
window.onblur = function () {
counting=false;
};
function roll(){
//window.location.href="https://www.youtube.com/watch?v=dQw4w9WgXcQ";
document.getElementById("roll").play();
document.getElementById("rollin").style.display="block";
var rolls=document.getElementsByClassName("gboob");
rolls[1].style.width="20vw";
rolls[0].style.left="42vw";
rolls[1].style.left="-18vw";
}
function scream(){
document.getElementById("scream").currentTime=0;
document.getElementById("scream").play();
document.getElementById("pizza").style.animation="scare 20ms alternate 100";
setTimeout(resetAni,1000);
}
function resetAni(){
document.getElementById("pizza").style.animation="spin 2s linear infinite";
}
function increment(){
if (counting){count++;}
document.getElementsByTagName("count")[0].innerHTML=""+count+" spins";
if (count==1){document.getElementsByTagName("count")[0].innerHTML="1 spin";}
}
</script>
</head>
<body onload=init()>
<audio loop preload=auto id="roll" src="images/nggyu.mp3" type="audio/mp3"></audio>
<audio preload=auto id="scream" src="images/scream.wav" type="audio/wav"></audio>
<div id="headertext">If you're under the age of 18 or find this too arousing please <lnk style="color:#009; font-weight:900; cursor:pointer" onclick=roll()>LEAVE NOW</lnk></div>
<div id="container">
<div id="rollin"></div>
<div class="gboob" style="width:20vw; left:22vw; background-position:-20vw 0;"></div>
<div class="gboob"></div>
<div id="pizza" onclick=scream()></div>
You have sat through <count>0 spins</count>!
</div>
</body>
</html>