-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
117 lines (109 loc) · 3.6 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="browserconfig.xml">
<meta name="theme-color" content="#f5deb3">
<title>ChiRP 🎶🐦 iReal Pro to MusicXML / MuseScore / MIDI</title>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="saxon-js/SaxonJS2.rt.js"></script>
<style>
body {
background-color: #f5deb3;
overflow-x: none;
}
.hide {
display: none;
}
#error {
background-color: brown;
color: lightgray;
}
#github {
position: absolute;
top: 5px;
right: 5px;
}
#help {
padding-bottom: 5px;
}
#status-bar {
position: relative;
width: 100%;
height: 20px;
background-color: wheat;
}
#progress-bar {
position: absolute;
width: 0%;
height: 20px;
background-color: #25F;
color: white;
}
kbd {
border: 2px solid black;
box-shadow: 2px 2px black;
font-size: .85em;
line-height: .85em;
display: inline-block;
font-weight: 600;
letter-spacing: .05em;
padding: 3px 5px;
white-space: nowrap;
}
</style>
<script type="module" src="chirp.mjs"></script>
</head>
<body>
<code id="version"></code>
<h1>ChiRP 🎶🐦 iReal Pro to MusicXML / MuseScore / MIDI</h1>
<div id="github">
<a class="github-button" href="https://github.com/infojunkie/chirp" data-size="large" aria-label="Star infojunkie/chirp on GitHub">Star on GitHub</a>
</div>
<div>
<label for="samples">Choose a sample from the list here</label>
<select id="samples">
<option value="">-- Choose --</option>
<option value="data/jazz1460.txt">Jazz 1460</option>
<option value="data/brazilian220.txt">Brazilian 220</option>
<option value="data/latin50.txt">Latin 50</option>
<option value="data/blues50.txt">Blues 50</option>
<option value="data/pop400.txt">Pop 400</option>
<option value="data/country50.txt">Country 50</option>
</select>
</div>
<div>
<label for="upload">Or upload an iReal Pro playlist</label>
<input type="file" id="upload" name="upload"/>
<span id="error"></span>
</div>
<div>
<label for="ireal">Or paste an iReal Pro URI directly</label>
<input type="text" size="50" id="ireal" name="ireal" placeholder="irealb://... or irealbook://..."/>
</div>
<div id="help">
Press <kbd>Esc</kbd> or click <button id="stop">Stop</button> to stop the conversion.
</div>
<div id="status-bar">
<div id="progress-bar"></div>
</div>
<table id="sheets">
<tbody></tbody>
</table>
<template id="sheets-template">
<tr class="sheet-item">
<td class="sheet-title"></td>
<td class="sheet-musicxml">⏳</td>
<td class="sheet-musescore">⏳</td>
<td class="sheet-midi">⏳</td>
</tr>
</template>
</body>
</html>