-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (61 loc) · 2.42 KB
/
index.html
File metadata and controls
80 lines (61 loc) · 2.42 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
<html>
<head>
<meta charset="utf-8">
<title>Loading..</title>
<link rel="stylesheet" type="text/css" href="index.css?3" />
<script type="text/javascript" src="js/thirdparty/jquery.js"></script>
<script type="text/javascript" src="js/thirdparty/jquery-color.js"></script>
</head>
<body>
<div id="container">
<img src='img/gmod_logo_brave.png' class="bounce"/>
<center>
<br />
<div id="smiley">:)</div>
<br />
<br />
<div id="label">дыщ</div>
</center>
</div>
<script type="text/javascript">
var faces = ["=)","=(","=0","=3","=/","=*","=v","=D","xD",":^)"]
var labels = ["вычесленя там","погоди ща","зогружаемся","зборка информаци","серёзны оналис","почти","ээээээээээммм","УНУНУНУУНУНунунуну"]
var smiley = document.getElementById("smiley")
var label = document.getElementById("label")
function ReplayAnimation(){
//Animation is 2 seconds long. In case to synchronise animation, it's is being reset every 2 seconds.
//Otherwise animation is desynchronised when tab is unfocused or browser is minimised
smiley.className = "";
window.requestAnimationFrame(function(time) {
window.requestAnimationFrame(function(time) {
smiley.className = "smiley-animation";
});
});
}
function ChangeFace(){
smiley.innerHTML = faces[Math.floor(Math.random() * faces.length)]
smiley.style.backgroundColor = $.Color().hsla(Math.random()*359,1,0.8,255)
}
function ChangeLabel(){
label.innerHTML = labels[Math.floor(Math.random() * labels.length)]+"..."
}
ChangeFace()
ChangeLabel()
ReplayAnimation()
setInterval(ChangeLabel,5000)
setInterval(ChangeFace,1000)
setInterval(ReplayAnimation,2000)
function GameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode )
{
// Do with these what you will :)
// this function gets called only when joining a multiplayer server
//$("#spambox").append("serverurl: " + serverurl + "<br>");
//$("#spambox").append("servername: " + servername + "<br>");
//$("#spambox").append("maxplayers: " + maxplayers + "<br>");
//$("#spambox").append("steamid: " + steamid + "<br>");
//$("#spambox").append("gamemode: " + gamemode + "<br>");
//$("#spambox").append("mapname: " + mapname + "<br>");
}
</script>
</body>
</html>