PageSourceSearch

https://www.oldtownschool.org/lib/js/tabs.js

js oldtownschool.org collected 2026-09-24 09:00:39 UTC 749 bytes, 31 lines download raw bytes

1/*
2* Skeleton V1.1
3* Copyright 2011, Dave Gamache
4* www.getskeleton.com
5* Free to use under the MIT license.
6* http://www.opensource.org/licenses/mit-license.php
7* 8/17/2011
8*/
9
10
11(function ($) {
12  // hash change handler
13  function hashchange () {
14    var hash = window.location.hash
15      , el = $('ul.tabs [href*="' + hash + '"]')
16      , content = $(hash)
17
18    if (el.length && !el.hasClass('active') && content.length) {
19      el.closest('.tabs').find('.active').removeClass('active');
20      el.addClass('active');
21      content.show().addClass('active').siblings().hide().removeClass('active');
22
23    }
24 
25  }
26
27  // listen on event and fire right away
28  $(window).on('hashchange.skeleton', hashchange);
29  hashchange();
30  $(hashchange);
31})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.