This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
119 lines (116 loc) · 4.41 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
<!DOCTYPE html>
<html manifest="webstorage.manifest">
<head>
<title>RTA Timer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- Mobile Support kinda, prevents zooming -->
<meta name="viewport" content="height = 400, width = 215, user-scalable = no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="WebSplit" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<link rel="stylesheet" type="text/css" href="css/timer.css" />
<!--[if gte IE 9]>
<style type="text/css">
.gradient {
filter: none;
}
</style>
<![endif]-->
<script type="application/javascript" src="js/FileSaver.min.js"></script>
<script type="application/javascript" src="js/fastclick-min.js"></script>
<script type="application/javascript" src="js/performance-now-polyfill.js"></script>
<script type="text/javascript" src="js/timer.js"></script>
<script type="application/javascript">
window.addEventListener('load', function() {
var attachFastClick = Origami.fastclick;
attachFastClick(document.body);
}, false);
</script>
</head>
<body>
<!--[if lt IE 10]>
<div class="alertBox">Sorry, IE9 and below are not supported. Please use IE10+ or Chrome/Firefox</div>
<![endif]-->
<nav id="menu" class="menu slideout-menu">
<section class="menu-section">
<input type="button" class="menu-btn" value="Save Splits" onclick="t.saveSplits()"/>
<!-- <input type="button" value="Load" onclick="t.loadSplits()"/><br> -->
<input type="button" value="Choose Splits" onclick="t.splitSelector();slideout.toggle();"/>
<input type="button" value="Editor" onclick="openEditor();slideout.toggle();"/>
<input type="button" value="Export as Wsplit" onclick="t.wsplitExport();slideout.toggle();"/>
</section>
<section class="menu-section">
<h3 class="menu-section-title">WebSplit</h3>
<ul class="menu-section-list">
<li><a href="https://github.com/iotku/websplit" target="_blank">View on Github</a></li>
<li><a href="https://github.com/iotku/websplit/issues/new" target="_blank">Create an issue</a></li>
</ul>
</section>
<section class="menu-section">
<h3 class="menu-section-title">Docs</h3>
<ul class="menu-section-list">
<li><a href="https://github.com/iotku/websplit/wiki/Usage" target="_blank">Usage</a></li>
</ul>
</section>
</nav>
<div id="container">
<div id="split-selector"></div>
<button class="toggle-button">Menu</button>
<div id="splits-header">
<div id="splits-game-name">No Title.</div>
<div id="splits-goal-name">No Game.</div>
<div id="attempt-counter">0</div>
</div>
<div id="splits">
<div id="splits-table">
</div>
</div>
<div id="splits-editor">
<div id="splits-editor-table">
</div>
</div>
<div id="editor-controls"></div>
<div id="timer">
<svg height="55" width="215">
<defs>
<linearGradient id="text-gradient" x1="0%" x2="0%" y1="0%" y2="100%">
<stop class="stop1" offset="0%"/>
<stop class="stop2" offset="100%"/>
</linearGradient>
</defs>
<text style="fill: url(#text-gradient); font-size: 42px;" id="timer_realtime" text-anchor="end" x="210px" y="1.2em">0.0</text>
</svg>
</div>
<div class="statusbar">
<span><div id="prevtext"></div><div id="prevsplit">Not Loaded.</div></span>
</div>
<span><div class="statusbar" id="websock-status">Not Connected.</div></span>
<div id="controls">
<input type="button" value="Start / Split" onclick="t.split()"/><br>
<input type="button" value="Unsplit" onclick="t.unsplit()"/>
<input type="button" value="Skip Split" onclick="t.skipSplit()"/>
<input type="button" value="Reset" onclick="t.reset()"/>
<input type="button" value="Pause" onclick="t.pause()"/><br>
</div>
<div id="websock-controls">
<input type="button" value="Close Conn" onclick="websock.closeSocket()"/><br>
<input type="button" value="Debug Window" onclick="document.getElementById('debug-output').style.display = 'inline-block'" />
</div>
</div>
<script src="js/slideout.min.js"></script>
<script>
var slideout = new Slideout({
'panel': document.getElementById('container'),
'menu': document.getElementById('menu'),
'padding': 125,
'tolerance': 70
});
// Toggle button
document.querySelector('.toggle-button').addEventListener('click', function() {
slideout.toggle();
});
</script>
<div id="debug-output"></div>
</body>
</html>