Created
October 12, 2021 14:09
-
-
Save Efrat19/2147985a62acd8f68ed1b04f0fe74de9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
</head> | |
<link rel="stylesheet" type="text/css" | |
href="https://demos.aarafacademy.com/fireworks-using-javascript/css/fireworks.css" media="screen" /> | |
<script type="text/javascript" | |
src="https://demos.aarafacademy.com/fireworks-using-javascript/js/soundmanager2-nodebug-jsmin.js"></script> | |
<script type="text/javascript" src="https://demos.aarafacademy.com/fireworks-using-javascript/js/fireworks.js"></script> | |
<div id="fireworks-template"> | |
<div id="fw" class="firework"></div> | |
<div id="fp" class="fireworkParticle"><img | |
src="https://demos.aarafacademy.com/fireworks-using-javascript/image/particles.gif" alt="" /></div> | |
</div> | |
<div id="fireContainer"></div> | |
<script> | |
var c = 0; | |
var t; | |
var poping = 0; | |
function displayFireworks() { | |
createFirework(25, 187, 7, 1, null, null, null, null, false, true); | |
t = setTimeout(function () { displayFireworks() }, 500); | |
} | |
function doTimer() { | |
if (!poping) { | |
poping = 1; | |
displayFireworks(); | |
} | |
} | |
function stopCount() { | |
clearTimeout(t); | |
poping = 0; | |
} | |
$(window).on('load', function () { | |
var el = document.querySelector(".elro8wh1.css-m11wyc"); | |
el.addEventListener('DOMAttrModified', function () { | |
console.log('fffffffff') | |
displayFireworks(); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment