mirror of
https://github.com/darksaid98/Finger-Print-Hacking-Game.git
synced 2026-12-04 06:28:47 +00:00
thank me later
This commit is contained in:
46 files changed
+1017
No files matched your search
@@ -0,0 +1,34 @@
|
||||
$('document').ready(function(){
|
||||
$gif = $('img').first();
|
||||
});
|
||||
|
||||
window.addEventListener("message", (event) => {
|
||||
if (event.data.type === "intro") {
|
||||
intro();
|
||||
} else if (event.data.type === "success") {
|
||||
success();
|
||||
} else if (event.data.type == "fail") {
|
||||
fail();
|
||||
}
|
||||
});
|
||||
|
||||
function intro() {
|
||||
$gif.attr("src", "intro.gif");
|
||||
setTimeout(function() {
|
||||
$gif.attr('src', "blank.png");
|
||||
}, 3500)
|
||||
};
|
||||
|
||||
function success() {
|
||||
$gif.attr("src", "success.gif");
|
||||
setTimeout(function() {
|
||||
$gif.attr('src', "blank.png");
|
||||
}, 3000)
|
||||
};
|
||||
|
||||
function fail() {
|
||||
$gif.attr("src", "fail.gif");
|
||||
setTimeout(function() {
|
||||
$gif.attr('src', "blank.png");
|
||||
}, 3000)
|
||||
};
|
||||
Reference in new issue
Block a user