diff options
-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() { |