Browse Source

Stack buttons vertically and show above map

main
Luke Murphy 5 years ago
parent
commit
b19c17b390
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 9
      voicegardens/static/styles.css
  2. 8
      voicegardens/static/voicegardens.js

9
voicegardens/static/styles.css

@ -1,10 +1,9 @@
/* Custom CSS styles */
html * {
border: 1px black solid; /* TODO: experimenting for now */
body {
margin: 0px;
}
canvas {
opacity: 0;
z-index: 10000000000;
button {
z-index: 50;
}

8
voicegardens/static/voicegardens.js

@ -89,19 +89,19 @@ function setupRecording() {
recording = new p5.SoundFile();
recordButton = createButton("record");
recordButton.position(10, 90);
recordButton.position(50, 10);
recordButton.mousePressed(record);
stopButton = createButton("stop");
stopButton.position(120, 90);
stopButton.position(50, 40);
stopButton.mousePressed(stop);
playButton = createButton("play");
playButton.position(210, 90);
playButton.position(50, 70);
playButton.mousePressed(play);
playButton = createButton("archive");
playButton.position(300, 90);
playButton.position(50, 100);
playButton.mousePressed(archive);
}

Loading…
Cancel
Save