-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
179 lines (164 loc) · 10.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Musicians' Helper - Repeater</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="styles.css"> <!-- Link to your updated CSS file -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bs-custom-file-input/dist/bs-custom-file-input.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
</head>
<body>
<nav>
<div class="nav nav-tabs justify-content-end" role="tablist">
<button class="nav-link active" data-bs-toggle="tab" data-bs-target="#repeater" type="button" role="tab">Repeater</button>
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#editor" type="button" role="tab">Editor</button>
</div>
</nav>
<div class="tab-content">
<div class="tab-pane fade show active" id="repeater">
<div class="container-fluid">
<div class="text-center py-3">
<h2>Musicians' Helper - Repeater</h2>
<p>Insert a YouTube URL and set loop points to repeat sections of a song.</p>
</div>
<div class="row">
<!-- Video URL and Controls Column -->
<div class="col-md-6 col-sm-12">
<form>
<div class="form-group row">
<label class="col-md-4 col-form-label" for="chords-file">Chords File <span class="text-muted">(.srt)</span></label>
<div class="col-md-8">
<div class="custom-file">
<input type="file" class="custom-file-input" id="chords-file">
<label class="custom-file-label" for="chords-file">Choose File</label>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-md-4 col-form-label" for="video-url">Video URL</label>
<div class="col-md-8 col-sm-12">
<input id="video-url" class="form-control" name="video-url" type="text" placeholder="https://...">
<div id="url-invalid" class="invalid-feedback">
Invalid URL. Insert a valid YouTube URL.
</div>
</div>
</div>
<!-- Loop Start Control -->
<div class="form-group row">
<label class="col-md-4 col-form-label" for="start">Start <span class="text-muted">(s)</span></label>
<div class="col-md-8">
<div class="input-group">
<div class="input-group-prepend">
<button class="btn btn-outline-secondary subtract" data-amount="10" type="button">-10</button>
<button class="btn btn-outline-secondary subtract" data-amount="1" type="button">-1</button>
<button class="btn btn-outline-secondary subtract" data-amount="0.1" type="button">-0.1</button>
</div>
<input id="start" class="form-control" name="start" type="number" min="0" step=".1" placeholder="16.2">
<div class="input-group-append">
<button class="btn btn-outline-secondary sum" data-amount="0.1" type="button">+0.1</button>
<button class="btn btn-outline-secondary sum" data-amount="1" type="button">+1</button>
<button class="btn btn-outline-secondary sum" data-amount="10" type="button">+10</button>
</div>
</div>
</div>
</div>
<!-- Loop Duration Control -->
<div class="form-group row">
<label class="col-md-4 col-form-label" for="duration">Duration <span class="text-muted">(s)</span></label>
<div class="col-md-8">
<div class="input-group">
<div class="input-group-prepend">
<button class="btn btn-outline-secondary subtract" data-amount="10" type="button">-10</button>
<button class="btn btn-outline-secondary subtract" data-amount="1" type="button">-1</button>
<button class="btn btn-outline-secondary subtract" data-amount="0.1" type="button">-0.1</button>
</div>
<input id="duration" class="form-control" name="duration" type="number" min="0" step=".1" placeholder="42.8">
<div class="input-group-append">
<button class="btn btn-outline-secondary sum" data-amount="0.1" type="button">+0.1</button>
<button class="btn btn-outline-secondary sum" data-amount="1" type="button">+1</button>
<button class="btn btn-outline-secondary sum" data-amount="10" type="button">+10</button>
</div>
</div>
</div>
</div>
<!-- Loop End Control -->
<div class="form-group row">
<label class="col-md-4 col-form-label" for="end">End <span class="text-muted">(s)</span></label>
<div class="col-md-8">
<div class="input-group">
<div class="input-group-prepend">
<button class="btn btn-outline-secondary subtract" data-amount="10" type="button">-10</button>
<button class="btn btn-outline-secondary subtract" data-amount="1" type="button">-1</button>
<button class="btn btn-outline-secondary subtract" data-amount="0.1" type="button">-0.1</button>
</div>
<input id="end" class="form-control" name="end" type="number" min="0" step=".1" placeholder="42.8">
<div class="input-group-append">
<button class="btn btn-outline-secondary sum" data-amount="0.1" type="button">+0.1</button>
<button class="btn btn-outline-secondary sum" data-amount="1" type="button">+1</button>
<button class="btn btn-outline-secondary sum" data-amount="10" type="button">+10</button>
</div>
</div>
</div>
</div>
</form>
<!-- Mobile Video Player -->
<div class="sticky text-center">
<div id="mobile-player" style="display:none"></div>
</div>
<div id="chords"></div>
</div>
<!-- Desktop Video Player Column -->
<div class="col-md-6 col-sm-12 text-center">
<div class="sticky">
<div id="desktop-player" style="display:none"></div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="editor">
<div class="container-fluid">
<div class="text-center py-3">
<h2>Musicians' Helper - Editor</h2>
<p>Upload your SRT file and add a line at any position, shifting the next lines.</p>
</div>
<div class="row">
<div class="col-md-8 offset-md-2">
<form>
<div class="form-group row">
<label class="col-md-4 col-form-label" for="chords-file-editor">Chords File <span class="text-muted">(.srt)</span></label>
<div class="col-md-8">
<div class="custom-file">
<input type="file" class="custom-file-input" id="chords-file-editor">
<label class="custom-file-label" for="chords-file-editor">Choose File</label>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-md-4 col-form-label" for="line-number">Line Number</label>
<div class="col-md-8">
<input id="line-number" class="form-control" name="line-number" type="number" min="1" step="1" placeholder="30">
</div>
</div>
<div class="form-group row">
<div class="col-md-12 text-center">
<button id="add-empty-line-button" type="button" class="btn btn-success">Add Empty Line</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="scripts.js"></script>
<script src="editor.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>