Skip to content

Commit

Permalink
Create temporary submit page
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDavis05 committed Mar 12, 2024
1 parent 92f3d59 commit 5ba484a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hackstoga/embed/countdown/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h1 id="countdown">Loading</h1>
</div>
<div class="pure-u-1-2 pure-g" style="height: 100%">
<div style="display: flex; justify-content: center; align-items: center; height: 100vh">
<img id="img" src="/media/misc/spinner.svg" />
<img id="img" src="/media/misc/spinner.svg" style="height: 60vh; width: auto" />
</div>
</div>
</div>
Expand Down
45 changes: 45 additions & 0 deletions hackstoga/submit/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Redirecting...</title>
<meta name="description" content="Submit your hackStoga project here!" />
<meta name="theme-color" content="#eaaded" />
<script src="/scripts/utils.js"></script>
</head>
<html>
<body>
<p
>Redirecting to
<a id="link" class="link" href="./troll.mp4">https://hackstoga24.devpost.com/</a></p
>
</body>

<style>
/* just throwing everything in here because this page is getting trashed soon anyways :) */
.link {
word-wrap: break-word;
}
</style>

<script>
const link = document.getElementById('link');

function addQuestionMark() {
link.innerText = link.innerText + '?'.repeat(Math.min(link.innerText.length + 1, 750));
}

setTimeout(() => {
document.title = `You can't leave.`;
link.innerText = '?';
setInterval(() => {
addQuestionMark();
}, 2000);
const video = document.createElement('video');
video.src = './troll.mp4';
video.controls = true;
video.autoplay = true;
video.loop = true;
document.body.appendChild(video);
}, 1300);
</script>
</html>
Binary file added hackstoga/submit/troll.mp4
Binary file not shown.

0 comments on commit 5ba484a

Please sign in to comment.