Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var G_PagePath = window.location.pathname.toLowerCase ( ); G_PagePath = G_PagePath.replace( 'index.html', '' );
- if ( G_PagePath.length > 1 ) { if ( G_PagePath.substring( G_PagePath.length - 1, G_PagePath.length ) == '/' ) { G_PagePath = G_PagePath.substring( 0, G_PagePath.length - 1 ); } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement