PageSourceSearch

https://www.lochken.co.uk/js/jquery-tabSwitcher.1.6.min.js

js lochken.co.uk collected 2026-09-26 08:57:25 UTC 2,348 bytes, 7 lines download raw bytes

1/*
2	Function for showing a div with id of href target
3	Copyright 25/04/14 Jake Nicholson (www.eskdale.net)
4	Licensed under The :) License
5	http://licence.visualidiot.com/
6*/
7(function(){$.fn.fullHeight=function(o,bIncludeMargin){bIncludeMargin=typeof(bIncludeMargin)==='undefined'?false:!!bIncludeMargin;var iHeight;iHeight=parseInt($(o).height());if(!!$(o).css('padding-top')){iHeight+=parseInt($(o).css('padding-top'));}if(!!$(o).css('padding-bottom')){iHeight+=parseInt($(o).css('padding-bottom'));}if(!!$(o).css('border-top-width')){iHeight+=parseInt($(o).css('border-top-width'));}if(!!$(o).css('border-bottom-width')){iHeight+=parseInt($(o).css('border-bottom-width'));}if(bIncludeMargin){if(!!$(o).css('margin-top')){iHeight+=parseInt($(o).css('margin-top'));}if(!!$(o).css('padding-bottom')){iHeight+=parseInt($(o).css('margin-bottom'));}}};$.fn.tabTHIS=function(u){var t,o,a,d,s;d={selectedClass:'selected',tabClass:'tabs',switchClass:'toSwitch',ignoreClass:'clear',downTime:300,upTime:300};o=$.extend(d,u);t=$(this);a=t.find('.'+o.tabClass+' a').not('.'+o.ignoreClass);s=t.find('.'+o.switchClass).children().not('.'+o.ignoreClass);function doSwitch(x){a.removeClass(o.selectedClass);$(x).addClass(o.selectedClass);s.removeClass(o.selectedClass);s.slideUp(o.upTime);var h;h=$(x).attr('href');$(h).addClass('selected').slideDown(o.downTime,function(){var h,i;h=this;i=$(h).fullHeight();t.find('.'+o.switchClass).animate({height:i},o.downTime);});}function setDimensions(){s.show();var e,w;e=s.parent();w=$(window).width();s.css({'max-width':w+'px'});e.css({'max-width':w+'px'});t.css({'max-width':w+'px'});e.css({'height':t.find('.'+o.switchClass+' .'+o.selectedClass).fullHeight()+'px'});s.not('.selected').hide();}function init(){a.first().addClass(o.selectedClass);s.first().addClass(o.selectedClass);setDimensions();s.each(function(){if($(this).text()===''||$(this).children().text()===''){var sRemove;sRemove=$(this).attr('id');$(a).filter(function(){return $(this).attr('href')==='#'+sRemove;}).hide();}});a.on('click tap',function(event){event.stopImmediatePropagation();event.preventDefault();if(!$(this).hasClass(o.selectedClass)){doSwitch(this);}});}if(a.length>0){init();}var f;$(window).resize(function(){clearTimeout(f);f=setTimeout(setDimensions,100);});$(window).on('orientationchange',$(window).resize());};})(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.