

InterviewSolution
Saved Bookmarks
1. |
1 ban day pura hua? |
Answer» <style>html,body {\tmargin: 0;\tpadding: 0;\twidth: 100wh;\theight: 100vh;\tbackground: black;\tfont-weight: 100;\tfont-family: sans-serif;}body {\tdisplay: flex;\talign-items: flex-end;\tjustify-content: center;}button {\tposition: relative;\tbottom: 20%;\tfont-size: 24pt;\tletter-spacing: 3px;\tbackground: #9b1c2c;\tborder: none; border-radius: 5px;\tcolor: white;\tcursor: pointer;\ttransition: all 0.4s;\tpadding: 10px 20px;}button:hover {\tcolor: #041e42;}button:focus {\toutline: none;}</style><script>import confetti from "https://cdn.skypack.dev/canvas-confetti";const doItNow = (evt, hard) => {\tconst direction = Math.sign(lastX - evt.clientX);\tlastX = evt.clientX;\tconst particleCount = hard ? r(122, 245) : r(2, 15);\tconfetti({ particleCount, angle: r(90, 90 + direction * 30), spread: r(45, 80), origin: { x: evt.clientX / window.innerWidth, y: evt.clientY / window.innerHeight }\t});};const doIt = (evt) => {\tdoItNow(evt, false);};const doItHard = (evt) => {\tdoItNow(evt, true);};let lastX = 0;const butt = document.querySelector("button");butt.addEventListener("mousemove", doIt);butt.addEventListener("click", doItHard);function r(mi, ma) {\treturn parseInt(Math.random() * (ma - mi) + mi);}<script><br>sach me? | |