-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
582b6b6
commit a85f48f
Showing
9 changed files
with
209 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
{% extends "_base.html" %} | ||
|
||
<head> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" | ||
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" | ||
crossorigin="anonymous"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" | ||
integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='coffeebuddy.css') }}"> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='matrix.css') }}"> | ||
{% block header %} | ||
<style> | ||
button[name='undo'] { | ||
background: transparent; | ||
color: var(--color-fg); | ||
} | ||
|
||
#btn-coffee-icon { | ||
font-size: 4rem; | ||
} | ||
|
||
#btn-coffee-text { | ||
font-size: 2rem; | ||
} | ||
|
||
<script src="{{ url_for('static', filename='matrix-0.0.1.js') }}" defer></script> | ||
#timeout-bar { | ||
height: 5px; | ||
border-radius: 10px; | ||
background-color: var(--color-fg); | ||
} | ||
</style> | ||
<script> | ||
$(() => { | ||
const timeout = 5; | ||
setTimeout(() => { | ||
$.post(window.location, data = { "coffee": "" }); | ||
$.post(window.location, data = { | ||
"coffee": "" | ||
}); | ||
window.location.href = '../'; | ||
}, timeout * 1000); | ||
setInterval(() => { | ||
|
@@ -29,37 +36,16 @@ | |
}, 10); | ||
}); | ||
</script> | ||
<style> | ||
#timeout-bar-container { | ||
width: 400px; | ||
align-self: center; | ||
} | ||
{% endblock header %} | ||
|
||
#timeout-bar { | ||
width: 100%; | ||
height: 10px; | ||
border-radius: 3px; | ||
background: var(--color-engineering-dark); | ||
} | ||
|
||
</style> | ||
</head> | ||
{% block main_nav_items %} | ||
{% endblock main_nav_items %} | ||
|
||
<body> | ||
<div class="text-left m-5"> | ||
<h1 id="user-name">{{ user.prename }} {{ user.name }}</h1> | ||
<code class="h5">{{ hexstr(user.tag) }}</code> | ||
<div class="mt-4">Your bill: | ||
<div class="h2"> {{ "%.2f €" | format(user.unpayed) }}</div> | ||
</div> | ||
</div> | ||
<canvas id="matrix"></canvas> | ||
|
||
<div class="position-absolute w-100 h-100 mt-4 d-flex flex-row align-items-center justify-content-center" | ||
style="top: 0; left: 0;"> | ||
{% block main_content %} | ||
<div class="w-100 h-100 d-flex flex-row align-items-center justify-content-center self-align-center"> | ||
<div class="d-flex flex-column text-center"> | ||
<form method="post"> | ||
<button class="p-3" type="submit" name=""> | ||
<button class="p-3" type="submit" name="undo"> | ||
<div id="btn-coffee-icon" class="display-1 fas fa-undo-alt"></div> | ||
<div id="btn-coffee-text" class="h3">Undo</div> | ||
</button> | ||
|
@@ -69,6 +55,4 @@ <h1 id="user-name">{{ user.prename }} {{ user.name }}</h1> | |
</div> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> | ||
{% endblock main_content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.