Skip to content

Commit

Permalink
win gif cmmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-hrr-harry committed Mar 29, 2023
1 parent 26376ae commit 768b5a6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
13 changes: 10 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ function xORo(event){
}

function setFinalRes(){

const winGif = document.createElement("IMG");
winGif.id ="gifImg";
winGif.setAttribute("src","winner_popper.gif");
document.getElementById("main").prepend(winGif);

new Audio("winning_trumpets.mpeg").play();
new Audio("winning_applasue.mpeg").play();

notor.onclick = reload;
notor.setAttribute("style",
"font: 800;"+
Expand All @@ -127,9 +136,7 @@ function setFinalRes(){
"animation-name: zoomIn"+
"animation-duration: 10s"+
"animation-iteration-count: infinite");

new Audio("winning_trumpets.mpeg").play();
new Audio("winning_applasue.mpeg").play();

win=1;
return;
}
Expand Down
9 changes: 9 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ body > *{
rotate: 90deg;
}

#gifImg{
height: 500px;
width: auto;
position: absolute;
top: 0;
left: 30%;
z-index: 1000;
display: inline-block;
}

/* Footer */
#ftr{
Expand Down
Binary file added winner_popper.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 768b5a6

Please sign in to comment.