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>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta content="ie=edge" http-equiv="X-UA-Compatible"/>
<title>Trhlina - infoshop </title>
<style type="text/css">
body {
@ -93,25 +94,20 @@
</head>
<body>
<div class="container text-center">
<div class="row">
<div class="col">
<div>
<img src="/trhlina.svg" style="width: 300px">
</div>
<div class="description-text">
<h3>Samosprávné komunitní centrum</h3>
<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>
<div class="row">
<div class="col">
<div>
<img src="/trhlina.svg" style="width: 300px"/>
</div>
<div class="description-text">
<h3>Samosprávné komunitní centrum</h3>
<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>
<strong><p id="otviracka"></p> </strong>
<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>
<br>
<div data-darujme-widget-token="08ubowlx18gc3dah">&nbsp;</div>
<gancio-events baseurl="https://akce.nolog.cz" maxlength="3" places="2" show_recurrent="true" sidebar="true" theme="light" title="Události"></gancio-events>
<br/>
<div data-darujme-widget-token="08ubowlx18gc3dah"> </div>
<script type="text/javascript">
+function(w, d, s, u, a, b) {
w['DarujmeObject'] = u;
@ -122,9 +118,27 @@
}(window, document, 'script', 'Darujme');
Darujme(1, "08ubowlx18gc3dah", 'render', "https:\/\/www.darujme.cz\/widget?token=08ubowlx18gc3dah", "270px");
</script>
</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>
</html>
</html>