KEXEL commited on
Commit
8be2201
·
verified ·
1 Parent(s): d9cf945
Files changed (1) hide show
  1. play-midi.html +49 -47
play-midi.html CHANGED
@@ -149,7 +149,54 @@
149
  </div>
150
 
151
 
152
- <div class="b-example-divider" style="width: 100%; height: 3rem; background-color: rgba(0, 0, 0, .1); border: solid rgba(0, 0, 0, .15); border-width: 1px 0; box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
 
154
  <div class="container my-5">
155
 
@@ -199,53 +246,8 @@
199
  </footer>
200
 
201
  </div>
202
-
203
-
204
- <!-- note the type="module" -->
205
- <script src='./advanced_demo.js' type='module'></script>
206
-
207
-
208
- <script>
209
- fetch("https://dav7.pages.dev/api/serve.json")
210
- .then((response) => response.json())
211
- .then((data) => {
212
- const sites = data.sites;
213
- const mySelects = document.getElementById("mySelects");
214
-
215
- sites.forEach((sites) => {
216
- const preElement = document.createElement("option");
217
- preElement.value = `${sites.properties.links}`;
218
- preElement.textContent = `${sites.properties.title}`;
219
- mySelects.appendChild(preElement);
220
- });
221
- })
222
- .catch((error) => {
223
- console.log("ERROR", error);
224
- });
225
 
226
- const select = document.getElementById("mySelects");
227
- select.addEventListener("change", function () {
228
- const url = this.value;
229
- if (url) {
230
- window.location = url;
231
- }
232
- });
233
-
234
- /*shared*/
235
- function sharesbutton() {
236
- navigator.share({
237
- title: document.title,
238
- text: "COMPARTILHAR " + document.title + " \n",
239
- url: window.location.href
240
- });
241
- }
242
-
243
- var creditsyear = new Date();
244
- document.getElementById("datacedencer").innerHTML = creditsyear.getFullYear();
245
-
246
- </script>
247
-
248
- </div>
249
  </body>
250
 
251
  </html>
 
149
  </div>
150
 
151
 
152
+ <!-- note the type="module" -->
153
+ <script src='./advanced_demo.js' type='module'></script>
154
+
155
+
156
+ <script>
157
+ fetch("https://dav7.pages.dev/api/serve.json")
158
+ .then((response) => response.json())
159
+ .then((data) => {
160
+ const sites = data.sites;
161
+ const mySelects = document.getElementById("mySelects");
162
+
163
+ sites.forEach((sites) => {
164
+ const preElement = document.createElement("option");
165
+ preElement.value = `${sites.properties.links}`;
166
+ preElement.textContent = `${sites.properties.title}`;
167
+ mySelects.appendChild(preElement);
168
+ });
169
+ })
170
+ .catch((error) => {
171
+ console.log("ERROR", error);
172
+ });
173
+
174
+ const select = document.getElementById("mySelects");
175
+ select.addEventListener("change", function () {
176
+ const url = this.value;
177
+ if (url) {
178
+ window.location = url;
179
+ }
180
+ });
181
+
182
+ /*shared*/
183
+ function sharesbutton() {
184
+ navigator.share({
185
+ title: document.title,
186
+ text: "COMPARTILHAR " + document.title + " \n",
187
+ url: window.location.href
188
+ });
189
+ }
190
+
191
+ var creditsyear = new Date();
192
+ document.getElementById("datacedencer").innerHTML = creditsyear.getFullYear();
193
+
194
+ </script>
195
+
196
+ </div>
197
+
198
+
199
+ <div class="b-example-divider" style="width: 100%; height: 3rem; background-color: rgba(0, 0, 0, .1); border: solid rgba(0, 0, 0, .15); border-width: 1px 0; box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);"></div>
200
 
201
  <div class="container my-5">
202
 
 
246
  </footer>
247
 
248
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
 
250
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  </body>
252
 
253
  </html>