Created
January 23, 2019 06:43
-
-
Save blubbll/f8a9399046da84aa0b0addbed2344d4c to your computer and use it in GitHub Desktop.
url stuff
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
| var url = location.href.toLowerCase().replace("/default.aspx","").split('/').pop(); | |
| if(url === "") url = location.href.toLowerCase().slice(0, -1).split('/').pop(); | |
| if(url===location.hostname)url="/"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment