mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
Compare commits
2 Commits
44948a6e9f
...
doot
| Author | SHA1 | Date | |
|---|---|---|---|
| b1bd11a5c5 | |||
| 252aee0ff0 |
@@ -48,6 +48,9 @@ for i in pages:
|
|||||||
# 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}'])")
|
# 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")
|
||||||
@app.route("/Resume.pdf")
|
@app.route("/Resume.pdf")
|
||||||
|
|||||||
BIN
src/static/photos/moving-pictures/doot.mp4
Normal file
BIN
src/static/photos/moving-pictures/doot.mp4
Normal file
Binary file not shown.
27
src/templates/huge.html
Normal file
27
src/templates/huge.html
Normal 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>
|
||||||
Reference in New Issue
Block a user