Created
December 3, 2015 18:49
-
-
Save syavorsky/2b2ea91b36e7b40a34d5 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
<script src="http://bgpatterns.com/widget.js" data-bgpatterns></script> | |
<script> | |
BGPatterns | |
.on('update', function(url) { document.body.style.backgroundImage = 'url(' + url + ')'; }) | |
.on('open', function() { console.log('Open' );}) | |
.on('close', function() { console.log('Closed' );}) | |
.open(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment