Created
September 23, 2021 07:22
-
-
Save ream88/2826570503b1d118aea8a5a9fef2d2ec to your computer and use it in GitHub Desktop.
Drop this into any website to play around with #Safari15 themed tabs!
This file contains 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
<meta name="theme-color" content="#29B8FF" /> | |
<input type="color" value="#29B8FF" id="colorPicker" /> | |
<script> | |
const colorPicker = document.getElementById("colorPicker") | |
colorPicker.addEventListener("change", function() { | |
document | |
.querySelector("meta[name=theme-color]") | |
.setAttribute("content", colorPicker.value) | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment