-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
343 lines (283 loc) · 15.3 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>inknote</title>
<link href='http://fonts.googleapis.com/css?family=Josefin+Sans:300,400' rel='stylesheet' type='text/css'>
<link href="styles/styles.min.css" rel="stylesheet" />
<meta name="viewport" content="width=420, user-scalable=no">
<link rel="icon" href="favicon.ico" />
</head>
<body>
<div class="header">
<h1 style="cursor: url('assets/pointer.png'), pointer;" id="title-text" onclick="Inknote.Action(Inknote.ActionType.ToPage, Inknote.Managers.Page.Score)">inknote</h1>
<span class="page-item-Score">
<div class="button" onclick="Inknote.Action(Inknote.ActionType.OpenProject)">Projects</div>
</span>
<span class="page-item-File">
<div class="button" onclick="FrontEnd.showElement(document.getElementById('search-bar'))">Search</div>
</span>
<div class="button" onclick="Inknote.Action(Inknote.ActionType.NewProject)">New</div>
<div class="button" onclick="Inknote.Action(Inknote.ActionType.SaveProject)">Save</div>
<div class="button" id="play" onclick="Inknote.Audio.AudioService.Instance.play()">Play</div>
<div class="menu-button" onclick="Menu.toggle()">
<div class="menu-line"></div>
<div class="menu-line"></div>
<div class="menu-line"></div>
</div>
</div>
<div id="log"></div>
<div class="menu" onclick="Menu.toggle();" id="main-menu">
<div class="menu-item" onclick="Menu.openSubMenu('project-menu')">project</div>
<span class="score-item sm-inline">
<span class="menu-item" onclick="Menu.openSubMenu('edit-menu')">edit</span>
<span class="menu-item" onclick="Menu.openSubMenu('music-menu')">music</span>
<span class="menu-item" onclick="Menu.openSubMenu('audio-menu')">audio</span>
</span>
<div class="menu-item" onclick="Menu.openSubMenu('tools-menu')">tools</div>
<div class="menu-item" onclick="Menu.openSubMenu('help-menu')">help</div>
<!--<svg width="100px" viewbox="0 0 30 42">
<path fill="black" stroke="transparent" stroke-width="1" d="M15 3 Q16.5 6.8 25 18 A12.8 12.8 0 1 1 5 18 Q13.5 6.8 15 3z" />
</svg>-->
</div>
<div class="sub-menu menu" id="music-menu" onclick="function a(e){Menu.closeAllSubMenus(e);}">
<div class="menu-item" onclick="Menu.closeAllSubMenus();Menu.openSubMenu('instrument-menu');">instrument</div>
<div class="menu-item" onclick="Menu.closeAllSubMenus();Menu.openSubMenu('bar-menu');">bar</div>
</div>
<div class="sub-menu menu" id="audio-menu" onclick="Menu.closeAllSubMenus()">
<div class="menu-item" onclick="Modal.toggle('synth')">synths</div>
</div>
<div class="sub-menu menu" id="project-menu" onclick="Menu.closeAllSubMenus()">
<div class="menu-item" onclick="Inknote.Action(Inknote.ActionType.NewProject)">new project</div>
<div class="menu-item" onclick="Inknote.Action(Inknote.ActionType.SaveProject)">save</div>
<span class="score-item">
<span class="menu-item" onclick="{var project = Inknote.Managers.ProjectManager.Instance.currentProject; Inknote.ProjectOptionsService.Instance.open(project);}">project details</span>
</span>
<span class="score-item">
<span class="desktop-item">
<span class="menu-item" onclick="Inknote.PrintService.Instance.print()">print</span>
</span>
</span>
</div>
<div class="sub-menu menu" id="edit-menu" onclick="Menu.closeAllSubMenus()">
<div class="menu-item" onclick="Inknote.ClipboardService.Instance.copy()">copy</div>
<div class="menu-item" onclick="Inknote.ClipboardService.Instance.cut()">cut</div>
<div class="menu-item" onclick="Inknote.ClipboardService.Instance.paste()">paste</div>
<div class="menu-item" onclick="Inknote.UndoService.Instance.undo()">undo</div>
</div>
<div class="sub-menu menu" id="instrument-menu" onclick="Menu.closeAllSubMenus()">
<div class="menu-item" onclick="Inknote.InstrumentService.Instance.addInstrument()">add instrument</div>
<div class="menu-item" onclick="Inknote.InstrumentService.Instance.openInstrumentEditor()">edit instruments</div>
</div>
<div class="sub-menu menu" id="bar-menu" onclick="Menu.closeAllSubMenus()">
<div class="menu-item" onclick="{ Inknote.NoteControlService.Instance.addBar(); Inknote.ScoringService.Instance.refresh(); }">add bar</div>
<div class="menu-item" onclick="Inknote.BarService.Instance.changeBarTimeSignature();">time signature</div>
<div class="menu-item" onclick="Inknote.BarService.Instance.addClef();">add clef</div>
</div>
<div class="sub-menu menu" id="tools-menu" onclick="Menu.closeAllSubMenus()">
<div class="menu-item" onclick="Modal.toggle('plugins');">plugins</div>
<div class="menu-item" onclick="Modal.toggle('temp-data');">settings</div>
<div class="menu-item" onclick="FrontEnd.SmartSearch.openSearch()">smart search</div>
</div>
<div class="sub-menu menu" id="help-menu" onclick="Menu.closeAllSubMenus()">
<div class="menu-item" onclick="window.open('http://www.michalpaszkiewicz.co.uk/inknote/developer/')">developer forum</div>
<div class="menu-item" onclick="Modal.toggle('report')">report bug</div>
<div class="menu-item" onclick="Modal.toggle('about')">about</div>
</div>
<div id="main" class="main-container">
<div id="confirm-box" class="hidden">
<div id="confirm-text">Are you sure?</div>
<button id="confirm-ok" class="button">ok</button>
<button id="confirm-cancel" class="button">cancel</button>
</div>
<div class="header-push"></div>
<div class="mouse-control" id="mouse-control">
<div class="mouse-option select" id="normal-mouse" data-val="0"></div>
<div class="mouse-option" id="pencil-mouse" data-val="1"></div>
<div class="mouse-option" id="text-mouse" data-val="2"></div>
</div>
<div class="page-item-File">
<div class="hidden" id="search-bar">
<input type="text" id="file-search" placeholder="search files" />
</div>
</div>
<div class="hidden" id="smart-search">
<div class="x" onclick="FrontEnd.SmartSearch.closeSearch()">x</div>
<h2 id="smart-search-title">smart search</h2>
<canvas id="smart-search-canvas"></canvas>
<input type="text" id="smart-search-text" placeholder="search project for text" />
<div id="smart-search-button" class="button" onclick="FrontEnd.SmartSearch.search();">search</div>
<div class="button" onclick="FrontEnd.SmartSearch.clearSearch();">clear</div>
<div id="smart-search-output">
</div>
</div>
<canvas id="my-canvas"></canvas>
<!--<div class="footer-push"></div>-->
</div>
<!--<div class="footer"></div>-->
<div id="modal-cover" class="hidden" onclick="Modal.hideAllModals()"></div>
<div id="confirm-cover" class="hidden"></div>
<div id="report" class="hidden modal">
<div class="x" onclick="Modal.cancelReport()">x</div>
<div class="overflower">
<h2>Bug report</h2>
<textarea id="report-text" placeholder="Please describe your issue here"></textarea>
<div class="line"><input id="report-checkbox" type="checkbox" />I am a human</div>
<div class="button" onclick="Modal.cancelReport()">Cancel</div>
<div class="button" onclick="Modal.submitReport()">Send</div>
</div>
</div>
<div id="instruments" class="hidden modal">
<div class="x" onclick="Modal.toggle('instruments')">x</div>
<div class="overflower">
<h2>Instruments</h2>
<div id="instrument-list">
</div>
<div class="button" onclick="Modal.toggle('instruments')">Close</div>
<div class="button" onclick="Modal.toggle('instruments');Modal.toggle('synth')">synths</div>
</div>
</div>
<div id="about" class="hidden modal">
<div class="x" onclick="Modal.toggle('about')">x</div>
<div class="overflower">
<h2>About</h2>
<div>
This is an <a href="https://github.com/MichalPaszkiewicz/inknote" target="_blank">open source music scoring program</a> made with loving care by
<a href="http://www.michalpaszkiewicz.co.uk" target="_blank">Michal Paszkiewicz</a>
<table><tr><td><iframe src="http://ghbtns.com/github-btn.html?user=MichalPaszkiewicz&repo=inknote&type=watch&count=true" height="30" width="80" frameborder="0" scrolling="0" style="width:80px; height: 30px;" allowtransparency="true"></iframe></td><td><iframe src="http://ghbtns.com/github-btn.html?user=MichalPaszkiewicz&repo=inknote&type=fork&count=true" height="30" width="80" frameborder="0" scrolling="0" style="width:80px; height: 30px;" allowtransparency="true"></iframe></td><td><iframe src="http://ghbtns.com/github-btn.html?user=MichalPaszkiewicz&type=follow&count=true" height="30" width="220" frameborder="0" scrolling="0" style="width:220px; height: 30px;" allowtransparency="true"></iframe></td></tr></table>
</div>
</div>
</div>
<div id="plugins" class="hidden modal">
<div class="x" onclick="Modal.toggle('plugins')">x</div>
<div class="overflower">
<h2>Plugins</h2>
<div class="modal-menu">
<div class="modal-menu-item plugin-menu-item select" onclick="Actions.Plugins.PluginMenuClick(this, 'plugin-list')">Plugin list</div>
<div class="modal-menu-item plugin-menu-item" onclick="Actions.Plugins.PluginMenuClick(this, 'plugin-event-list')">Event list</div>
<div class="modal-menu-item plugin-menu-item" onclick="Actions.Plugins.PluginMenuClick(this, 'plugin-advanced')">Advanced</div>
</div>
<div id="plugin-list">
<h3>List</h3>
<!-- List of plugin names goes in here. -->
<div id="plugin-list-items"></div>
<div class="button">Add external plugin</div>
</div>
<div id="plugin-event-list" class="hidden">
<h3>Events</h3>
<!-- List of events in plugin manager and plugins affecting them goes here -->
</div>
<div id="plugin-advanced" class="hidden">
<h3>Advanced</h3>
<!-- List of plugins with advanced options goes here -->
</div>
<div class="button" onclick="Modal.toggle('plugins')">Close</div>
</div>
</div>
<div id="synth" class="hidden modal">
<div class="x" onclick="Modal.toggle('synth')">x</div>
<div class="overflower">
<h2>Synths</h2>
<div class="button" onclick="SynthBindings.loadSynthData()">refresh</div>
<div class="form-row" style="color:darkorange;">
<span class="list-column">ID</span>
<span class="list-column">name</span>
</div>
<div id="synth-list"></div>
<div class="button" onclick="SynthBindings.addSynth()">add synth</div>
<div class="button" onclick="Modal.toggle('synth')">Close</div>
<div class="button" onclick="Modal.toggle('synth');Modal.toggle('instruments')">instruments</div>
</div>
</div>
<div id="synth-edit" class="hidden modal">
<div class="x" onclick="Modal.toggle('synth-edit')">x</div>
<div class="overflower">
<h2>Synth edit</h2>
<div class="form-row">
<span class="label">wave shape</span>
<select id="synth-wave-shape">
<option value="sine">sine</option>
<option value="sawtooth">sawtooth</option>
<option value="triangle">triangular</option>
<option value="square">square</option>
</select>
</div>
<div class="form-row">
<span class="label">gain</span>
<input type="range" name="gain" min="0" max="1" step="0.01" id="synth-gain" />
</div>
<div class="form-row">
<span class="label">delay</span>
<input type="range" name="delay" min="0.1" max="2" step="0.05" id="synth-delay" />
</div>
<div class="button" onclick="Modal.toggle('synth-edit');Modal.toggle('synth')">Back</div>
<div class="button" onclick="Modal.toggle('synth-edit')">Close</div>
</div>
</div>
<div id="project-options" class="hidden modal">
<div class="x" onclick="Modal.toggle('project-options')">x</div>
<div class="overflower">
<div id="project-options-details">
</div>
<div class="button" onclick="Modal.toggle('project-options')">Close</div>
</div>
</div>
<div id="project-report" class="hidden modal">
<div class="x" onclick="Modal.toggle('project-report')">x</div>
<div class="overflower">
<div id="project-report-details">
</div>
<div class="button" onclick="Modal.toggle('project-report')">Close</div>
</div>
</div>
<div id="temp-data" class="hidden modal">
<div class="x" onclick="Modal.toggle('temp-data')">x</div>
<div class="overflower">
<h2>Settings</h2>
<div id="temp-data-details">
<h3>level of logging</h3>
<div class="form-row">
<div class="label">0: display only errors</div>
<input type="radio" name="logLevel" value="0" />
</div>
<div class="form-row">
<div class="label">1: display errors</div>
<input type="radio" name="logLevel" value="1" />
</div>
<div class="form-row">
<div class="label">2: display errors and warnings</div>
<input type="radio" name="logLevel" value="2" />
</div>
<div class="form-row">
<div class="label">3: display all log entries</div>
<input type="radio" name="logLevel" value="3" />
</div>
<h3>composing style settings</h3>
<div class="form-row">
<div class="label">allow bar overflow</div>
<input type="checkbox" id="allowBarOverflow" />
</div>
</div>
<div class="button" onclick="Modal.toggle('temp-data')">Close</div>
</div>
</div>
<div id="landing" class="cover" onclick="Inknote.Landing.Landing.Instance.hide()">
<canvas id="landing-canvas"></canvas>
<div class="central">
<div class="cover-text">
<h1>inknote</h1>
<p>click anywhere to start</p>
</div>
</div>
</div>
<div id="drag-drop" class="hidden cover">
<canvas id="drag-drop-canvas"></canvas>
<div class="dashed-border">
<div id="drag-drop-text" class="cover-text">
drop your file(s) here!
</div>
</div>
</div>
<script src="@script.js"></script>
</body>
</html>