| title | dark-mode.js |
|---|---|
| permalink | /dark-mode.md |
Usage:
<!DOCTYPE html>
<html lang="en">
<head>
...
<script src="https://cdn.jsdelivr.net/gh/wackyblackie/js-scripts/window.ready.js" integrity="sha384-LWbkDP2CQx5K69wJwI3pFq0CT6X9SNyuvVRg+vlm/ffmY3UpOuEPNwwOVLv4c6P8" crossorigin="anonymous"></script>
</head>
<body>
...
<script>
window.ready(function() {
// Do whatever you want now that DOM
// content has been loaded and parsed
// and the document is ready. This is
// a VanillaJS fillin for jQuery's
// jQuery(window).ready(function(){})
});
</script>
</body>
</html>Production ready!