adds Opening/closing text field

This commit is contained in:
Pták 2024-04-18 17:29:52 +02:00
parent 79c6befb7c
commit 59abc586ba

View file

@ -1,9 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta content="ie=edge" http-equiv="X-UA-Compatible"/>
<title>Trhlina - infoshop </title> <title>Trhlina - infoshop </title>
<style type="text/css"> <style type="text/css">
body { body {
@ -93,25 +94,20 @@
</head> </head>
<body> <body>
<div class="container text-center"> <div class="container text-center">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div> <div>
<img src="/trhlina.svg" style="width: 300px"> <img src="/trhlina.svg" style="width: 300px"/>
</div> </div>
<div class="description-text"> <div class="description-text">
<h3>Samosprávné komunitní centrum</h3> <h3>Samosprávné komunitní centrum</h3>
<p>ahoj@trhlina.org</p> <p>ahoj@trhlina.org</p>
<p><a href="https://www.facebook.com/infoshoptrhlina">Facebook</a> / <a href="https://instagram.com/trhlina_nusle">Instagram</a> / <a href="https://twitter.com/trhlina">Twitter</a> / <a href="https://radar.squat.net/en/node/429153">Radar</a></p> <p><a href="https://www.facebook.com/infoshoptrhlina">Facebook</a> / <a href="https://instagram.com/trhlina_nusle">Instagram</a> / <a href="https://twitter.com/trhlina">Twitter</a> / <a href="https://radar.squat.net/en/node/429153">Radar</a></p>
<strong><p id="otviracka"></p> </strong>
<script src="https://akce.nolog.cz/gancio-events.es.js"></script> <script src="https://akce.nolog.cz/gancio-events.es.js"></script>
<gancio-events baseurl="https://akce.nolog.cz" title="Události" places="2" show_recurrent="true" maxlength=3 sidebar="true" theme="light"></gancio-events> <gancio-events baseurl="https://akce.nolog.cz" maxlength="3" places="2" show_recurrent="true" sidebar="true" theme="light" title="Události"></gancio-events>
<br/>
<br> <div data-darujme-widget-token="08ubowlx18gc3dah"> </div>
<div data-darujme-widget-token="08ubowlx18gc3dah">&nbsp;</div>
<script type="text/javascript"> <script type="text/javascript">
+function(w, d, s, u, a, b) { +function(w, d, s, u, a, b) {
w['DarujmeObject'] = u; w['DarujmeObject'] = u;
@ -122,9 +118,27 @@
}(window, document, 'script', 'Darujme'); }(window, document, 'script', 'Darujme');
Darujme(1, "08ubowlx18gc3dah", 'render', "https:\/\/www.darujme.cz\/widget?token=08ubowlx18gc3dah", "270px"); Darujme(1, "08ubowlx18gc3dah", 'render', "https:\/\/www.darujme.cz\/widget?token=08ubowlx18gc3dah", "270px");
</script> </script>
</div>
</div>
</div>
</div> </div>
</div>
</div>
</div>
<script>
const premiseKocourovodata = fetch("https://work.kocourovo.eu/trhlina/status.txt").then(r=>r.json()).then(data => {
return data;
});
window.onload = async () => {
let data = await premiseKocourovodata;
let otviracka = document.getElementById("otviracka")
if (data == 1) {
otviracka.textContent="Otevřeno";
otviracka.style.color="#5aba47"
}
else{
otviracka.textContent="Zavřeno";
otviracka.style.color="#FF2C08"
}
};
</script>
</body> </body>
</html> </html>