MCPcopy Create free account
hub / github.com/codemistic/Web-Development / displayFortune

Function displayFortune

Fortune Cookie Generator/script.js:50–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48var cookieRight = document.querySelector(".cookieRight");
49var count = 0;
50function displayFortune() {
51 paper.classList.remove("animatePaper");
52 cookieLeft.classList.remove("animateCookieLeft");
53 cookieRight.classList.remove("animateCookieRight");
54 paper.innerHTML = "";
55
56 setTimeout(function () {
57 paper.classList.add("animatePaper");
58 cookieLeft.classList.add("animateCookieLeft");
59 cookieRight.classList.add("animateCookieRight");
60 }, 1000);
61
62 var num = Math.floor(Math.random() * 42);
63
64 setTimeout(function () {
65 paper.innerHTML = fortunes[num];
66 }, 2000);
67}

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected