2018-03-13 18:26:12 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
|
2018-03-23 23:13:32 +01:00
|
|
|
{% block head %}
|
|
|
|
{{ super() }}
|
|
|
|
<meta http-equiv="refresh" content="600">
|
2018-10-06 03:09:38 +02:00
|
|
|
<meta name="google" content="notranslate">
|
2018-03-23 23:13:32 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2018-03-13 18:26:12 +01:00
|
|
|
{% block scripts %}
|
2018-03-18 17:24:22 +01:00
|
|
|
{{ super() }}
|
2018-09-08 02:28:28 +02:00
|
|
|
<script src="/static/js/jquery.min.js"></script>
|
|
|
|
<script src="/static/js/bootstrap.min.js"></script>
|
2018-03-18 17:24:22 +01:00
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
$(document).ready(function() {
|
2018-10-17 19:16:37 +02:00
|
|
|
var source = new EventSource('{{ url_for('push')}}');
|
|
|
|
source.onmessage = function(event){
|
|
|
|
console.log("event:" + event.data);
|
|
|
|
try{
|
|
|
|
var data = JSON.parse(event.data);
|
|
|
|
$('#message').html(data.message);
|
|
|
|
led = $('#led');
|
|
|
|
led.attr('src', data.img);
|
|
|
|
} catch(e){console.log(e);}}
|
2018-03-18 17:24:22 +01:00
|
|
|
});
|
|
|
|
</script>
|
2018-03-13 18:26:12 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-09-17 19:54:33 +02:00
|
|
|
<h1 class="text-center display-4">{{ welcome }}</h1>
|
2018-03-18 16:31:01 +01:00
|
|
|
<div class="row">
|
2018-09-10 01:02:29 +02:00
|
|
|
<div class="col">
|
|
|
|
<div class="text-center">
|
2018-09-17 19:54:33 +02:00
|
|
|
<div class="h2">{{ room }}</div>
|
2018-09-10 01:02:29 +02:00
|
|
|
<img id="led" src="">
|
|
|
|
<div class="h2" id="message"></div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div>
|
|
|
|
<h4 class="text">Kontakt</h4>
|
2018-09-10 20:47:51 +02:00
|
|
|
0941 / 37801 - 740
|
2018-09-10 01:02:29 +02:00
|
|
|
<hr>
|
|
|
|
Keine App? Kein Problem! WiFi anschalten und https://lock.binary.kitchen besuchen.
|
|
|
|
</div>
|
2018-03-18 16:31:01 +01:00
|
|
|
</div>
|
2018-09-10 01:02:29 +02:00
|
|
|
<div class="col-6">
|
|
|
|
<a class="twitter-grid" data-partner="tweetdeck" href="https://twitter.com/binary_kitchen/timelines/1038927503446949888?ref_src=twsrc%5Etfw">gallery</a>
|
|
|
|
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
|
|
|
</div>
|
|
|
|
<div class="col text-center">
|
|
|
|
<img src="static/token.svg" height="300">
|
|
|
|
<img width=175 src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png'/>
|
|
|
|
<img width=175 src='https://fdroid.gitlab.io/artwork/badge/get-it-on.png' />
|
2018-03-18 16:31:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-13 18:26:12 +01:00
|
|
|
{{ super() }}
|
|
|
|
{% endblock %}
|