Compare commits
No commits in common. "e5bdad65df4509a5170e9b9cd0ebf783031762e7" and "cfafd0e148b86a61a35db2f6f1b01e2b179b9821" have entirely different histories.
e5bdad65df
...
cfafd0e148
4 changed files with 1 additions and 22 deletions
|
@ -57,10 +57,6 @@ def create_app(test_config=None):
|
||||||
def socketiojs():
|
def socketiojs():
|
||||||
return send_file('../static/socket.io.js')
|
return send_file('../static/socket.io.js')
|
||||||
|
|
||||||
@app.route('/ka-ching.wav')
|
|
||||||
def kaching():
|
|
||||||
return send_file('../static/ka-ching.wav')
|
|
||||||
|
|
||||||
@app.route('/new.css')
|
@app.route('/new.css')
|
||||||
def newcss():
|
def newcss():
|
||||||
return send_file('../static/new.min.css')
|
return send_file('../static/new.min.css')
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
></script>
|
></script>
|
||||||
<link rel="stylesheet" href="/new.css">
|
<link rel="stylesheet" href="/new.css">
|
||||||
|
|
||||||
<link rel="prefetch" href="/ka-ching.wav" />
|
|
||||||
<link rel="shortcut icon" type="Logo/png" href="/ccc_logo.png"/>
|
<link rel="shortcut icon" type="Logo/png" href="/ccc_logo.png"/>
|
||||||
{% block customscript %}{% endblock %}
|
{% block customscript %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -4,21 +4,6 @@ Strichliste
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block customscript %}
|
{% block customscript %}
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
function play() {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
var audio = new Audio('/ka-ching.wav');
|
|
||||||
audio.play();
|
|
||||||
|
|
||||||
audio.addEventListener("ended", function(){
|
|
||||||
resolve()
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async function ka_ching(element) {
|
|
||||||
await play();
|
|
||||||
element.parentElement.submit();
|
|
||||||
}
|
|
||||||
var socket = io();
|
var socket = io();
|
||||||
socket.on("update", function () {
|
socket.on("update", function () {
|
||||||
window.location = "http://matekasse.server.c3h/list"
|
window.location = "http://matekasse.server.c3h/list"
|
||||||
|
@ -43,8 +28,7 @@ Strichliste
|
||||||
</form>
|
</form>
|
||||||
<form action="/change" method="post" style="display: inline">
|
<form action="/change" method="post" style="display: inline">
|
||||||
<input name="id" type="hidden" value="{{user[0]}}">
|
<input name="id" type="hidden" value="{{user[0]}}">
|
||||||
<input name="change" value={{preis}} type="hidden">
|
<button type="submit" name="change" value={{preis}}>{{preis}}€</button>
|
||||||
<button onclick="ka_ching(this)" type="button">{{preis}}€</button>
|
|
||||||
</form>
|
</form>
|
||||||
<br style="line-height: 50%;"></br>
|
<br style="line-height: 50%;"></br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue