Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hash_set = false
- if (window.location.hash) {
- var theTabAnchor = window.location.hash;
- alert(theTabAnchor);
- if (theTabAnchor == '#description' || theTabAnchor == '#calculator') {
- var newTabLocation = theTabAnchor;
- tabContainers.hide().filter(theTabAnchor).show();
- tabLinks.filter('[href*='+ theTabAnchor +']').addClass('current');
- location.href = newTabLocation;
- var hash_set = true;
- }
- }
- if (hash_set == false)
- {
- tabContainers.hide().filter(':first').show();
- tabLinks.filter(':first').addClass('current');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement