Add 1 files
Browse files- index.html +41 -19
index.html
CHANGED
|
@@ -1,19 +1,41 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<html><head><link href="https://cdn.jsdelivr.net/npm/daisyui@3.1.6/dist/full.css" rel="stylesheet" type="text/css" /><script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script><script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio"></script><script defer src="https://cdnjs.cloudflare.com/ajax/libs/three.js/0.156.1/three.min.js"></script><script type="module" src="main.js"></script><title>Wavesurfer</title></head><body style="min-height: 100vh; font-family: sans-serif;padding: 20px; background-color: #f7f7f7;">
|
| 2 |
+
|
| 3 |
+
<div>
|
| 4 |
+
<div x-data="{ activeTrack: null }">
|
| 5 |
+
<div>
|
| 6 |
+
<h1>Wavesurfer</h1>
|
| 7 |
+
<div class="mt-4">
|
| 8 |
+
<button class="btn">Add track</button>
|
| 9 |
+
</div>
|
| 10 |
+
<div class="mt-4">
|
| 11 |
+
<button class="btn" @click="play">
|
| 12 |
+
<svg class="h-5 w-5 fill-current" viewBox="0 0 20 20" fill="currentColor">
|
| 13 |
+
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" />
|
| 14 |
+
</svg>
|
| 15 |
+
</button>
|
| 16 |
+
<button class="btn ml-2" @click="stop">
|
| 17 |
+
<svg class="h-5 w-5 fill-current" viewBox="0 0 20 20" fill="currentColor">
|
| 18 |
+
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8 7a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1H8zM4 5a2 2 0 012-2h4a2 2 0 012 2v6H4V5z" clip-rule="evenodd" />
|
| 19 |
+
</svg>
|
| 20 |
+
</button>
|
| 21 |
+
</div>
|
| 22 |
+
<div class="mt-6 flex flex-wrap justify-around">
|
| 23 |
+
<div v-for="(track, key) in tracks" :class="[key == activeTrack ? 'bg-gray-200' : '']">
|
| 24 |
+
<button class="btn w-1/2 text-left pr-2" @click="activeTrack = key">{{ track.name }}</button>
|
| 25 |
+
<div class="mt-4 -mx-2 flex justify-between items-center">
|
| 26 |
+
<label>Solo</label>
|
| 27 |
+
<input class="ml-2 mr-4" type="checkbox" :checked="track.solo" @input="track.solo = !track.solo" />
|
| 28 |
+
<label>Mute</label>
|
| 29 |
+
<input class="ml-2 mr-4" type="checkbox" :checked="track.mute" @input="track.mute = !track.mute" />
|
| 30 |
+
<label>Pan</label>
|
| 31 |
+
<input class="ml-2 mr-4" type="range" min="0" max="1" step="0.05" :value="track.pan" @input="track.pan = (event.target.value)" />
|
| 32 |
+
<label>Volume</label>
|
| 33 |
+
<input class="ml-2 mr-4" type="range" min="0" max="1" step="0.05" :value="track.gain" @input="track.gain = (event.target.value)" />
|
| 34 |
+
</div>
|
| 35 |
+
</div>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
</div>
|
| 39 |
+
</div>
|
| 40 |
+
|
| 41 |
+
</body></html>
|