Created
June 5, 2013 17:45
-
-
Save adesignl/5715763 to your computer and use it in GitHub Desktop.
JQuery Do Something Based On URL String
This file contains hidden or 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
// Change Body Class Based On URL String | |
var url = location.pathname; | |
if (url.indexOf('INSERT STRING HERE') > -1) { //Does It Contain This String? | |
// Do Somthing Here Like Change Body Class | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment