-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmobile-index.html
83 lines (83 loc) · 4.42 KB
/
mobile-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
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="sambabot.js"></script>
<script src="sheet.js"></script>
<script src="web-audio-api-player.js"></script>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
</head>
<body onload="onLoad()">
<div class="flexDiv">
<div id="mainSheetContainer" class="scrollDiv">
<div id="mainSheet" class="sheetArea"></div>
</div>
<ul id="noteTypeList" class="buttonList noteTypeList"></ul>
</div>
<div>
<button onclick="mainSheet.zoomIn()"><i class="fa fa-search-plus"></i></button>
<button onclick="mainSheet.zoomOut()"><i class="fa fa-search-minus"></i></button>
<button onclick="mainSheet.resetZoom()"><i class="fa fa-search"></i></button>
</div>
<div>
<button onclick="mainSheet.resetSelectedNotes()"><i class="fa fa-volume-up"></i></button>
<button onclick="mainSheet.ghostSelectedNotes()"><i class="fa fa-volume-down"></i></button>
<button onclick="mainSheet.muteSelectedNotes()"><i class="fa fa-volume-off"></i></button>
</div>
<div>
<button id="playButton" onclick="play()"><i class="fa fa-play"></i></button>
<input id="startInput" type="number" min="1" style="width: 4em" />
<input id="endInput" type="number" min="0" style="width: 4em" />
<button id="loopButton" onclick="play(true)"><i class="fa fa-refresh"></i></button>
<button id="stopButton" onclick="stop()"><i class="fa fa-stop"></i></button>
<button id="recordButton" onclick="record()"><i class="fa fa-circle"></i></button>
</div>
<div>
<button id="addNoteButton" onclick="toggleMode(ADD_NOTE)" class="modeButton"><i class="fa fa-plus"></i></button>
<button id="removeNoteButton" onclick="toggleMode(REMOVE_NOTE)" class="modeButton"><i class="fa fa-minus"></i></button>
<button id="resizeButton" onclick="toggleMode(RESIZE)" class="modeButton"><i class="fa fa-arrows-h"></i></button>
</div>
<div>
Beats: <input id="beatsInput" type="number" min="1" style="width: 4em" />
BPM: <input id="bpmInput" type="number" min="1" style="width: 4em" />
</div>
<div>
<button onclick="showImportDialogue()"><i class="fa fa-download"></i></button>
</div>
<div>
<textarea id="jsonRepresentation" cols="50" rows="20"></textarea>
<button id="loadJsonButton" onclick="loadJsonFromRepresentation()">Load</button>
</div>
Uses Font Awesome by Dave Gandy - <a href="http://fontawesome.io" target="_blank">http://fontawesome.io</a>
<div id="overlay" class="overlay"></div>
<div id="importDialogue" class="popup">
<h1>Import</h1>
<div class="scrollDiv">
<div id="importSheet" class="sheetArea"></div>
</div>
<h2>Select score to import from</h2>
URL: <input id="importScoreUrlInput" type="text" /><button onclick="loadImportScoreFromUrl()">Load</button>
<ul id="dialogueScoreList" class="buttonList"></ul>
<br />
<button onclick="importScore()" title="Import entire score, replacing the current one."><i class="fa fa-download"></i> Import score</button>
<button onclick="importNotes()" title="Import notes selected in the sheet above. After the dialogue closes, select where in the score you want to place the imported notes."><i class="fa fa-square-o"></i> Import selected notes</button>
<button onclick="closeDialogue()" title="Close dialogue without importing anything."><i class="fa fa-close"></i> Cancel</button>
</div>
<div id="editNoteTypeDialogue" class="popup">
<h1>Edit Note Type</h1>
<h2 id="editNoteTypeName"></h2>
URL: <input id="editNoteTypeUrl" type="text" /><button onclick="loadNoteTypeFromUrl()">Load</button>
<ul id="editNoteTypeList" class="buttonList"></ul>
<br />
<button onclick="closeDialogue()" title="Close dialogue without changing anything."><i class="fa fa-close"></i> Cancel</button>
</div>
<div id="addNoteTypeDialogue" class="popup">
<h1>Add Note Type</h1>
URL: <input id="addNoteTypeUrl" type="text" /><button onclick="loadNoteTypeFromUrl()">Load</button>
<ul id="addNoteTypeList" class="buttonList"></ul>
<br />
<button onclick="closeDialogue()"><i class="fa fa-close"></i> Close</button>
</div>
</body>
</html>