-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
140 lines (113 loc) · 5.82 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
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-105724494-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-105724494-2');
</script>
<title>spray.training</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<!-- main page -->
<div id="main-page" style="position: absolute; width: 500px; height: 300px; top: 32%; left: 50%; transform: translate(-50%, -50%); text-align: center;">
<div style="width:100%; font-family: 'Inconsolata', monospace; font-size: 48px; letter-spacing: -1px;">
<a href="http://spray.training/">spray.training</a>
</div>
<div style="position: absolute; top: 50px; left: 400px; font-weight: 300; font-size: 14px;">v1.2</div>
<div style="width: 375px; margin: 25px auto;">
<p>Instructions</p>
<ul style="text-align: left; font-size: 14px;">
<li>Use the WASD keys to move and your mouse to aim.</li>
<li>Hold down the primary mouse button to spray.</li>
<li>Spray the entire clip continuously to determine your accuracy.</li>
<li>Enable full screen mode for the most game-accurate experience.</li>
<li>Make sure that your OS sensitivity is on the default value.</li>
<li>If you are experiencing FPS issues, try:
<ul>
<li>disabling viewmodels</li>
<li>reloading the page</li>
<li>opening the page in a new window</li>
<li>setting the priority of your browser to high</li>
<li>turning on browser hardware acceleration</li>
<li>closing any other tabs or external processes</li>
</ul>
</li>
</ul>
</div>
<div id="icons">
<div class="icon">
<a href="https://github.com/15/spray.training">
<img src="img/icons/github.svg" height="50" width="50">
</a>
<span class="tooltip">Source</span>
</div>
<div class="icon">
<a href="/donate.html">
<img src="img/icons/bitcoin.svg" height="50" width="50">
</a>
<span class="tooltip">Support</span>
</div>
<div class="icon">
<a href="mailto:[email protected]">
<img src="img/icons/email.svg" height="50" width="50">
</a>
<span class="tooltip">Contact</span>
</div>
</div>
<div style="width: 300px; margin: 25px auto;">
<p>Mouse sensitivity (CS:GO)</p>
<div id="sens-slider" style="width: 60%; display: inline-block; margin-left: 5%; margin-right: 5%;"></div>
<input type="number" min="0" max="8" step="0.1" id="sens-input" style="margin-top: 10px; width: 15%; padding: 7px; margin: 15px 5px 5px; vertical-align: 20%; font-family: 'Helvetica Neue', 'Source Sans Pro', Arial, sans-serif; font-weight: 300; font-size: 14px;">
<div style="font-size: 14px; margin-top: 10px;">
<input type="checkbox" id="inverted"></input>Use inverted mouse controls
</div>
</div>
<div style="margin-top: 40px">
<a id="main-button-link">
<button id="main-button">
Start
</button>
</a>
</div>
</div>
<!-- game page -->
<div id="game-page" style="position: absolute; width: 100%; height: 100%; visibility: hidden;">
<div id="player-xhair" class="player-hud" style="width: 30px; height: 30px; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2;">
<canvas id="xhair" style="width: 30; height: 30; z-index: 2; border: 0px;"></canvas>
</div>
<div id="player-position" class="player-hud" style="width: 300px; height: 25px; top: 25px; left: 25px; text-align: left;">
</div>
<div id="player-fov" class="player-hud" style="width: 300px; height: 25px; top: 60px; left: 25px; text-align: left;">
</div>
<div id="player-fps" class="player-hud" style="width: 300px; height: 25px; top: 95px; left: 25px; text-align: left;">
</div>
<div id="player-highscore" class="player-hud" style="width: 450px; height: 25px; top: 25px; right: 25px; text-align: right; z-index: 2;">
</div>
<div id="player-highscore-new" class="player-hud" style="width: 450px; height: 25px; top: 25px; right: 25px; text-align: right; z-index: 2; color: #ffff00; display: none;">
</div>
<div id="player-score" class="player-hud" style="width: 450px; height: 25px; top: 60px; right: 25px; text-align: right; z-index: 2";>
</div>
<div id="player-ammo" class="player-hud" style="width: 300px; height: 25px; bottom: 25px; right: 25px; text-align: right; z-index: 2;">
</div>
<div id="player-weapon" class="player-hud" style="display: block; position: absolute; width: 100%; height: 100%; overflow: hidden; bottom: 0px;">
<video id="video" style="display: block; position: absolute; width: 100%; z-index: 1; right: 0px; bottom: 0px;" src="img/weapons/ak47/ak47-tap.webm" preload="auto">
</video>
<!-- <canvas id="buffer" style="z-index: 1; display: none;"></canvas>
<canvas id="output" style="position: absolute; z-index: 1; right: 0px; bottom: 0px;"></canvas> -->
</div>
</div>
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/10.1.0/nouislider.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/10.1.0/nouislider.min.js"></script>
<script src="lib/threex.windowresize.js"></script>
<script src="lib/threex.keyboardstate.js"></script>
<script src="build/bundle.min.js"></script>
</body>
</html>