Created
May 6, 2018 16:33
-
-
Save LouLeGrain/070ccaa2978618e25d1faf74f270ac35 to your computer and use it in GitHub Desktop.
[Background fixed JS] Mettre un background sur le fond (Bootstrap) trigger par une classe dédiée #JS
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
$(document).ready(function () { | |
if ($("#content").hasClass("displayBg")) { | |
$("body").css('background', 'url(bg.jpg) fixed no-repeat'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment