-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (48 loc) · 1.88 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
<!DOCTYPE html>
<html>
<head>
<title>Blobs</title>
<link rel="stylesheet" href="style.css" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
</head>
<body>
<div id="blobs-container">
<div class="popup" id="settings-popup">
<h2>Settings</h2>
<div class="json" contenteditable="true" spellcheck="false"></div>
<h2>Macros</h2>
<label>Current macro:
<select id="macro-dropdown">
<!-- Options are inserted here by JS -->
</select>
</label>
<br />
<button onclick="showNewMacroDiv()" id="new-macro-button">Add macro</button>
<div id="new-macro-div">
<input type="text" placeholder="Name"/> :
<input type="text" placeholder="Macro"/>
<button onclick="addNewMacro()">Add new macro</button>
</div>
<div class="buttons">
<button onclick="saveSettings()">Save</button>
<button style="float:right" onclick="resetSettings()">Reset</button>
</div>
</div>
<div class="popup" id="help-popup">
<h2>Help</h2>
<p>Welcome to blobs!</p>
<p>Move the blobs around the screen by clicking or using the keyboard
(see the table below)</p>
<p>Press <span class="key">O</span> to change settings</p>
<p>Press <span class="key">H</span> to close this help</p>
<p>Press <span class="key">F</span> to toggle fullscreen</p>
<h3>Keybindings</h3>
<table id="key-table">
<!-- Keybindings are inserted here by JS -->
</table>
</div>
<canvas id="main-canvas"></canvas>
</div>
<script type="text/javascript" src="blobs.js"></script>
</body>
</html>