Created
July 20, 2021 14:14
-
-
Save NoCtrlZ1110/ca5a19c0c617cb52e17c0b090bfb37c6 to your computer and use it in GitHub Desktop.
snow on your browser. try pasting these code into console
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
const body = document.getElementsByTagName("body"); | |
const snowflakesContainer = document.createElement("div"); | |
snowflakesContainer.className = "snowflakes"; | |
snowflakesContainer.setAttribute("aria-hidden", "true"); | |
const snowflake = document.createElement("div"); | |
snowflake.className = "snowflake"; | |
snowflake.innerHTML = "❆"; | |
for (let i = 0; i < 12; i++) { | |
snowflakesContainer.appendChild(snowflake.cloneNode(true)); | |
} | |
body[0]?.prepend(snowflakesContainer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment