Sha256: 8ca3dc083fcd0c7dcb69e8844d2c3cb8547b88daf5cd7ed6aed70e4c8f4012f5
Contents?: true
Size: 755 Bytes
Versions: 24
Compression:
Stored size: 755 Bytes
Contents
/** * Skeleton V1.1 * Copyright 2011, Dave Gamache * www.getskeleton.com * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php * 8/17/2011 */ (function ($) { // hash change handler function hashchange () { var hash = window.location.hash , el = $('ul.tabs [href*="' + hash + '"]') , content = $(hash) if (el.length && !el.hasClass('active') && content.length) { el.closest('.tabs').find('.active').removeClass('active'); el.addClass('active'); content.show().addClass('active').siblings().hide().removeClass('active'); } } // listen on event and fire right away $(window).on('hashchange.skeleton', hashchange); hashchange(); $(hashchange); })(jQuery);
Version data entries
24 entries across 24 versions & 4 rubygems