diff options
author | sy <sy> | 2024-07-03 16:17:03 -0400 |
---|---|---|
committer | sy <sy> | 2024-07-03 16:17:03 -0400 |
commit | 53bdc365e6b27ebf8d2292e41921a7980e1dfed1 (patch) | |
tree | 970bee8c7eed50d156c3623dbd9f56946e6195ad | |
parent | ab932e985ff2e7d7dbd6cc87e10d639aa85f33a8 (diff) |
fix
-rw-r--r-- | index.html | 1 | ||||
-rw-r--r-- | static/aseem.js | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -6,6 +6,7 @@ <meta id="viewport" name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> </head> <body> + <button id="legit" style="width: 100px; height: 100px;">TOO LEGIT?</button> <a href="/tears.html"> <img id="aseem" src="/static/aseem.jpg" height="320" style="position:absolute;"> </a> diff --git a/static/aseem.js b/static/aseem.js index 4f7735a..e110742 100644 --- a/static/aseem.js +++ b/static/aseem.js @@ -48,7 +48,9 @@ function rotate(text) { return text.substring(1) + text[0]; } -document.getElementsByTagName('audio')[0].play() +document.getElementById('legit').addEventListener('click', function() { + document.getElementsByTagName('audio')[0].play(); +}) var titleText = document.title + ' ' // buffer setInterval(function() { |