Created
January 5, 2018 10:05
-
-
Save ankedsgn/09a4ffe3c5bed052cfa36588fc64cde7 to your computer and use it in GitHub Desktop.
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
/* sauce: https://www.paulirish.com/2009/random-hex-color-code-snippets/ */ | |
<script> | |
bgcolor = ''; | |
bgcolor = '#'+Math.floor(Math.random()*16777215).toString(16); | |
coverimg += 'background-color:' + bgcolor; | |
$('.background').removeAttr('style').attr('style', coverimg); | |
</script> | |
<div class="background"></div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment