Created
October 8, 2017 19:00
-
-
Save damiencarbery/0e067587053a1424e54565ca879412be 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 type="text/javascript"> | |
jQuery(document).ready(function($) { | |
// Get 'body' background image and stretch it. | |
bg = $(document.body).css('background-image'); | |
// Change: url("/path/to/background") to: /path/to/background | |
bg = bg.replace('url(','').replace(')','').replace(/"/g, ''); | |
$(document.body).backstretch(bg); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment