2 Commits
master ... doot

Author SHA1 Message Date
b1bd11a5c5 oops 2024-05-05 21:17:00 -05:00
252aee0ff0 doot 2024-05-05 21:03:57 -05:00
3 changed files with 30 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ for i in pages:
# for i in pages:
# exec(f"@app.route(pages['{i}']['canonical'])\ndef {i}(): return flask.render_template('header.html', var=pages['{i}'])")
@app.route("/huge")
def huge():
return flask.render_template('huge.html')
@app.route("/resume")
@app.route("/Resume.pdf")

Binary file not shown.

27
src/templates/huge.html Normal file
View File

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<title>incredibly important</title>
<body>
<button type="button" style="height:4em; width:10em;" onclick="playme()" id="trigger">
doot button
</button>
<video id="myVideo" style="display: none">
<source src="{{ url_for('static',
filename="photos/moving-pictures/doot.mp4")}}" type="video/mp4"> Your
browser does not support the video tag.
</video>
<script>
const video = document.getElementById("myVideo");
const trigger = document.getElementById("trigger");
async function playme() {
trigger.style.display = "none";
video.style.display = "";
await video.play();
setTimeout(function () {
video.style.display = "none";
trigger.style.display = "";
}, 1300);
video.muted = false;
}
</script>
</body>