From e139768dc3cc464e32827dd93691c6dd95f4b3ec Mon Sep 17 00:00:00 2001 From: Alexander Roidl Date: Sat, 19 Nov 2022 14:58:23 +0100 Subject: [PATCH] updates --- app/static/css/style.css | 2 +- app/templates/addaudio.html | 43 +------------------------------------ app/templates/addtext.html | 4 ++-- app/templates/home.html | 2 +- 4 files changed, 5 insertions(+), 46 deletions(-) diff --git a/app/static/css/style.css b/app/static/css/style.css index 685de6a..2ebbee7 100755 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -250,7 +250,6 @@ margin: 4em 0; position: fixed; display: inline-block; bottom: 0; - font-size: 1em; padding: 1em; box-sizing: border-box; } @@ -258,6 +257,7 @@ margin: 4em 0; #button_group button, #button_group select{ background-color: black; color: white; + font-size: 1em; border: 1px solid white; border-radius: 2em; padding: 0.8em; diff --git a/app/templates/addaudio.html b/app/templates/addaudio.html index 631eb88..28ecb02 100755 --- a/app/templates/addaudio.html +++ b/app/templates/addaudio.html @@ -20,18 +20,14 @@ {{ form.csrf_token }} - - +
-
-

@@ -41,9 +37,6 @@ - - - @@ -67,33 +60,6 @@ const audioChunks = []; function record_audio(){ if(state == "empty"){ - // navigator.mediaDevices.getUserMedia({ audio: true }) - // .then(stream => { - // mediaRecorder = new MediaRecorder(stream, {mimeType: 'audio/webm;codecs=opus'}); // , {mimeType:"audio/ogg"} - // mediaRecorder.start(); - - // state = "recording"; - // document.getElementById('stop_btn').style.display = 'block' - - // seconds_int = setInterval( - // function () { - // document.getElementById("record_btn").innerHTML = seconds_rec + " s"; - // seconds_rec += 1; - // }, 1000); - - - // mediaRecorder.addEventListener("dataavailable", event => { - - // audioChunks.push(event.data); - // if(mediaRecorder.state == 'inactive') makeLink(); - // }); - - // setTimeout(() => { - // stop_audio() - // }, 1000 * 60); - // }); - - recorder.start().then(() => { state = "recording"; @@ -169,10 +135,6 @@ function stop_audio(){ const li = document.createElement('li'); var audioUrl = URL.createObjectURL(file) - // const player = new Audio(audioUrl); - // player.controls = true; - // li.appendChild(player); - // document.querySelector('#playlist').appendChild(li); let container = new DataTransfer(); container.items.add(file); @@ -222,9 +184,6 @@ function play_audio(){ } } - - - {% endblock js%} diff --git a/app/templates/addtext.html b/app/templates/addtext.html index 90af30a..6f3d508 100755 --- a/app/templates/addtext.html +++ b/app/templates/addtext.html @@ -19,8 +19,8 @@ {{ form.csrf_token }} -
- message: {{ form.message(cols="45", rows="10", class="form-control") }} +
+ message: {{ form.message(class="form-control") }}
diff --git a/app/templates/home.html b/app/templates/home.html index b461b53..e678435 100755 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -151,7 +151,7 @@ x.innerHTML = "Latitude: " + crd.latitude + "
Longitude: " + crd.longitude + - "
Distance: " + distance(target.longitude, target.latitude, crd.longitude, crd.latitude); + "
Distance to tent: " + distance(target.longitude, target.latitude, crd.longitude, crd.latitude); // if we want to clear the watch // if (target.latitude === crd.latitude && target.longitude === crd.longitude) {