PageSourceSearch

https://www.pisek.eu/inc/inc___tpw-design_piseckoo/html/js/scripts__typ_webu.js

js pisek.eu collected 2026-10-02 16:15:37 UTC 22,880 bytes, 553 lines download raw bytes

1var burgerPoint = window.matchMedia("(max-width: 768px)");
2
3
4
5function resrc() {
6  $("img[data-src]").each(function(){
7  $path = $(this).attr("src").split("/");
8  $img = $path.pop();
9  $wxh = $path.pop();
10  $path = $path.join("/");
11  $resp = $(this).attr("data-src").split(",");
12  $wx=$wxh.split("x")[0];
13  i=0;while(i<$resp.length && $(this).width()>$wx) {$wxh = $resp[i]; $wx=$wxh.split("x")[0]; i++;}
14  $src = $path + "/" + $wxh + "/" + $img;
15/*  alert($src);*/
16  $(this).attr("src",$src);
17  });
18}
19
20function onresize() {
21    if(/*window.innerWidth<=768*/ burgerPoint.matches) {  //Tento paramater treba zmenit i v \inc\html\css\css-front___typ-webu.css
22    
23    ///////////////////
24	//$("#menu nav").css({left:"100%","right":"-100%","position":"fixed"});
25
26      
27    if( $('#menu nav li.more .open-submenu').length == 0) {
28      $('#menu nav li.more').append('<span class="open-submenu sign-open qrs-icon">&#xe805;</span>');
29      
30      $('.open-submenu').on('click', function (e) {
31        e.preventDefault();
32        
33        if ($(this).prev('ul').css('display') == 'none') {
34          $(this).prev('ul').show();
35          $(this).removeClass('sign-open');
36          $(this).html('&#xe803;');
37        } else {
38          $(this).prev('ul').hide();
39          $(this).addClass('sign-open');
40          $(this).html('&#xe805;');
41        }
42      });
43    
44    }
45    } else { 
46        //$("#menu").removeClass("hamburger");  
47        //$("#switchMenu").removeClass("hamburger");  
48          $("#switchMenu").removeClass("active"); 
49            ///////////////////$("#menu nav").show(0);
50            ///////////////////$("#menu nav").css({"right":"0px","left":"auto"});
51			$("#menu nav").css({"right":"auto","left":"auto","position":"relative"});
52            $("#menu nav li.more").find(".open-submenu").remove();
53            //$("#menu nav ul ul").hide();
54			$("#menu nav ul ul").attr('style','');
55    }
56
57  if($("body").hasClass("sekce_uvod")) {
58//    $("#home div").css({top:aha0r+"%"},500);
59    aha0 = $("#home div").offset().top;
60    aha = aha0 - Math.round($(window).scrollTop()/0.66);
61    $("#home div").css({top:aha+"px"});
62  } else {
63//     if($(document).height()>($(window).height()+$("#above").height()+$submenu.height())) $("#above").scrollToFixed({dontSetWidth:true,spacerClass:"fixer"});
64//     else {$('#above').trigger('detach.ScrollToFixed');$(".fixer").remove();}
65  }
66
67/*
68  if($("#menu").length) menuOffset = Math.round($("#menu").offset().top);
69  menuHeight = $("#menu").height();
70  $(".fix").css({height:menuHeight+"px"});
71*/
72$("#menu ul ul li").hover(function(){
73    $sublevel = $(this).children("ul");
74
75    if ($sublevel.length > 0) {
76
77
78        var levelBorders = $sublevel.get(0).getBoundingClientRect();
79        if (levelBorders.right > (window.innerWidth || document.documentElement.clientWidth)) {
80            console.log("jake hodnoty jsou ted: ");
81            console.log("left: " + $sublevel.css("left"));
82            console.log("right: " + $sublevel.css("right"));    
83            //$(this).css("background","rgba(255,255,255,1)");
84            //$(this).find("li").css("background","rgba(255,255,255,1)");
85            //to sam u mus런latit automaticky i pro vsechny dalsi nasledujici potomky (zachovat smer)
86
87            /*----------------------------------------------------------------------------------*/
88            //Kdyz jdu doleva (a nevejdu se):
89            $sublevel.css({"left":"auto","right":"97%","width":"250px"});
90            $sublevel.find("ul").css({"left":"auto","right":"97%","width":"250px"});
91            /*----------------------------------------------------------------------------------*/
92            /* !!!!! --- nutno upravit jete i jinde v tomto souboru, hledat pozn. "Kdyz jdu doleva"  
93            + i v souboru \inc\html\css\css_front____qrs.css ...  hledat pozn.: "Akce pri najeti na jakekoliv menu 2 urovne a vyse" */
94                       
95			if ($(this).parent().parent().parent().attr("id") == "menu")
96			$sublevel.css({"left":"auto","right":"15%","width":"210px"});            
97			
98        }
99
100        if (levelBorders.left < 0) {
101            $sublevel.css({"right":"auto","left":"92%","width":"250px"});
102            //to sam u mus런latit automaticky i pro vsechny dalsi nasledujici potomky (zachovat smer)
103            $sublevel.find("ul").css({"right":"auto","left":"92%","width":"250px"});
104        }
105            
106
107    }
108
109  }, function(){
110    //pripadna funkce, kdyz jdu ven
111  });
112
113  resrc();
114}
115
116var hash = "";
117var menuOffset = 0;
118var menuHeight = 0;
119var $w = 0;
120var $submenu = 0;
121
122var mwh = false;
123var maxblur = 10;
124var maxbrg = 100;
125var aha0 = 0;
126// var aha0r = 0;
127
128$(document).ready(function(){
129						   
130						   
131						   
132	// FaceBook start
133	if ($(".obsah-fb-widget").length>0)
134	{
135			htt = $(".obsah-fb-text").outerHeight();
136			isMobileDeviceFB = window.matchMedia($("body").data("nav-breakpoint"));
137			if ($(".obsah-fb-widget").data("autoheight")) $(".fb-page").attr("data-height",htt);
138			if (htt<$(".obsah-fb-widget").data("height-default") || !$(".obsah-fb-widget").data("autoheight"))  $(".fb-page").attr("data-height",$(".obsah-fb-widget").data("height-default"));
139			if (isMobileDeviceFB.matches) $(".fb-page").attr("data-height",$(".obsah-fb-widget").data("height-mobil-default"));
140			(function(d, s, id) {
141			  var js, fjs = d.getElementsByTagName(s)[0];
142			  if (d.getElementById(id)) return;
143			  js = d.createElement(s); js.id = id;
144			  js.src = "//connect.facebook.net/cs_CZ/all.js#xfbml=1";
145			  fjs.parentNode.insertBefore(js, fjs);
146			}(document, "script", "facebook-jssdk"));
147			
148			var a = null;
149			$(window).resize(function(){
150				if(a != null) {
151					clearTimeout(a);
152				}
153		
154				a = setTimeout(function(){
155					htt = $(".obsah-fb-text").outerHeight();
156					isMobileDeviceFB = window.matchMedia($("body").data("nav-breakpoint"));
157
158					if ($(".obsah-fb-widget").data("autoheight")) $(".fb-page").attr("data-height",htt);	
159					if (htt<$(".obsah-fb-widget").data("height-default") || !$(".obsah-fb-widget").data("autoheight"))  $(".fb-page").attr("data-height",$(".obsah-fb-widget").data("height-default"));
160					if (isMobileDeviceFB.matches) $(".fb-page").attr("data-height",$(".obsah-fb-widget").data("height-mobil-
160default"));
161					FB.XFBML.parse();
162				},1000)
163			});			
164			
165	}
166	if ($(".obsah-fb-widget-post").length>0)
167	{
168			var a = null;
169			$(window).resize(function(){
170				if(a != null) {
171					clearTimeout(a);
172				}
173		
174				a = setTimeout(function(){
175					FB.XFBML.parse();
176				},1000)
177			});			
178			
179	}	
180	// FaceBook konec						   
181						   
182						   
183						   
184						   
185$(".submenu-cascade ul").unwrap(".submenu-cascade");						   
186
187    //var menuWidth = document.getElementsByTagName("nav").offsetWidth; 
188
189  $(".box .f[ontouchstart]").on("touchstart",function(e){window.setTimeout(function(t) {$(t).removeClass("hover");},601, e.currentTarget);});
190
191  mwh = $("#mapawrap").height();
192  if(!mwh) mwh = $("#bgfotowrap").height();
193  if($("body").hasClass("sekce_uvod")) {
194    aha0 = $("#home div").offset().top;
195//     aha0r = (aha0/$(window).height())*100;
196  }
197
198  
199  $("#menu ul li").hover(function(){
200    $sublevel = $(this).children("ul");
201    if ($sublevel.length > 0) {
202
203
204        var levelBorders = $sublevel.get(0).getBoundingClientRect();
205
206        if (levelBorders.right > (window.innerWidth || document.documentElement.clientWidth)) {
207            console.log("jake hodnoty jsou ted: ");
208            console.log("left: " + $sublevel.css("left"));
209            console.log("right: " + $sublevel.css("right"));    
210            //$(this).css("background","rgba(255,255,255,1)");
211            //$(this).find("li").css("background","rgba(255,255,255,1)");
212            //to sam u mus런latit automaticky i pro vsechny dalsi nasledujici potomky (zachovat smer)
213
214            /*----------------------------------------------------------------------------------*/
215            //Kdyz jdu doleva (nevejdu se):
216            $sublevel.css({"left":"auto","right":"97%","width":"210px"});
217            $sublevel.find("ul").css({"left":"auto","right":"97%","width":"210px"});
218            /*----------------------------------------------------------------------------------*/
219            
220			if ($(this).parent().parent().parent().attr("id") == "menu")
221			$sublevel.css({"left":"auto","right":"15%","width":"210px"});
222  
223        }
224
225        if (levelBorders.left < 0) {
226            $sublevel.css({"right":"auto","left":"92%","width":"200px"});
227            //to sam u mus런latit automaticky i pro vsechny dalsi nasledujici potomky (zachovat smer)
228            $sublevel.find("ul").css({"right":"auto","left":"92%","width":"200px"});
229        }
230            
231
232    }
233
234  }, function(){
235    //pripadna funkce, kdyz jdu ven
236  });
237  
238  $submenu=$("#submenu");
239  $w = $(window).width();
240  $(window).on("resize",function(){onresize();})
241  //$("#main").disableSelection();
242  $("a").click(function(){$(this).blur();return true;});
243  outlinks();
244  $("body").removeClass("nojs").addClass("js");
245  
246  $('select').has("option:selected:disabled").css({color:"#999"}).change(function(){$(this).css({color:"#000"});}).children("option").css({color:"#000"}).filter("option[disabled]").css({color:"#999"}); 
247   
248  if($("body").hasClass("nojs")) {
249      
250  } else { // desktop
251  
252//	var s = skrollr.init({
253//		edgeStrategy: 'set',
254//		easing: {
255//			WTF: Math.random,
256//			inverted: function(p) {
257//				return 1-p;
258//			}
259//		}
260//	});
261
262// $("#head").after("<div class='fix'></div>");
263  
264  $("#switchMenu").on("click",function() {
265    if($(this).hasClass("active")) {
266      $("#menu nav").animate({left:"100%"});
267      $("#menu nav").css("position", "fixed");
268      $("#menu nav").css("right", "-100%");
269      $("#above").css("position", "fixed");
270      $("#above").css("height", "5.5em");
271      $(this).removeClass("active");
272      
273    } else {
274      $("#menu nav").animate({left:"0"});
275      $("#menu nav").css("position", "relative");
276      $("#menu nav").css("right", "-100%");
277      $("#above").css("position", "relative");
278      $("#above").css("height", 0);
279      $(window).scrollTop(0);
280      $(this).addClass("active");
281    }  
282  });
283  ///////////////////$("#menu nav").css({"position":"fixed"});
284  $("#above").css({"position":"fixed"});
285  
286  
287  if(/*window.innerWidth<=768*/ burgerPoint.matches) {   //Tento paramater treba zmenit i v \inc\html\css\css-front___typ-webu.css
288        $("#menu nav").css({"left":"100%","right":"auto"});
289
290
291        if( $('#menu nav li.more .open-submenu').length == 0) {
292        $('#menu nav li.more').append('<span class="open-submenu sign-open qrs-icon">&#xe805;</span>');
293        } 
294    } else { 
295
296        ///////////////////$("#menu nav").css({"right":"0px","left":"auto"});
297        $("#menu nav li.more .open-submenu").remove();
298    }
299    $('.open-submenu').on('click', function (e) {
300        e.preventDefault();
301
302        if ($(this).prev('ul').css('display') == 'none') {
303          $(this).prev('ul').show();
304          $(this).removeClass('sign-open');
305          $(this).html('&#xe803;');
306        } else {
307          $(this).prev('ul').hide();
308          $(this).addClass('sign-open');
309          $(this).html('&#xe805;');
310        }
311  });
312
313  $("#menu nav a").on("click",function() {
314    /*!!POZOR, zapoznamkovany!!*/
315    //$("#switchMenu").click();
316  });
317  
318  $("#up").on("click",function(e){
319    e.preventDefault(); $.scrollTo(0,1000); return false;
320  });
321
322  $("nav li.more").on("mouseenter",function(){
323    $e = $(this).children("ul.ps");
324    if(!$e.scrollTop()){
325      $e.scrollTop($e.scrollTop()+1);
326      $e.scrollTop($e.scrollTop()-1);
327    }
328});
329
330  if($(window).scrollTop()>20) {
331    $("#up").addClass("ukaz");  ; 
332    $("#home .dal").addClass("noanim");
333  } else {
334    if($("#up").removeClass("ukaz")) ; else $("#up").removeClass("ukaz");
335    $("#home .dal").removeClass("noanim");    
336  }
337
338  $(window).on('scroll', function (e) {
339  var curlev = ($(window).scrollTop()/mwh);
340//  brglev = (1-curlev)*maxbrg;
341//  brglev = (brglev>100) ? 100 : brglev;
342  var blurlev = (curlev*maxblur);
343  blurlev = (blurlev>maxblur) ? maxblur : blurlev; 
344  
345  $("#mapawrap,#bgfotowrap,#boxZahlaviAMap").css({filter:"blur("+blurlev+"px)","-webkit-filter":"blur("+blurlev+"px)"});
346  
347  if($("body").hasClass("sekce_uvod")) {
348    aha = aha0 + Math.round($(window).scrollTop()/2);
349    $("#home div").css({top:aha+"px"});
350    if($(window).scrollTop()>20) {$("#home .dal").addClass("noanim");$("#up").addClass("ukaz");} else {if($("#up").removeClass("ukaz")) ; else $("#up").removeClass("ukaz");$("#home .dal").removeClass("noanim");}
351    if($(window).scrollTop()>$("#main").offset().top-5) $("#head").addClass("showhead"); else if($("#head").hasClass("showhead")) $("#head").removeClass("showhead");
352  } else {
353    if($(".fixer").height()!=$("#above").height()) $(".fixer").css({height:$("#above").height()+"px"});
354    if($(window).scrollTop()>20) {$("#home .dal").addClass("noanim");$("#up").addClass("ukaz");} else {if($("#up").removeClass("ukaz")) ; else $("#up").removeClass("ukaz");$("#home .dal").removeClass("noanim");}
355    if($(window).scrollTop()<1) {$("#above").removeClass("scroll-to-fixed-fixed");$(".fixer").remove();}
356    
357    if($submenu.length) {
358      if(($submenu).is(":visible") && $("#above.scroll-to-fixed-fixed").length) {
359        $submenu.slideUp(500, function() {if($(this).is(":hidden") && $("#above.scroll-to-fixed-fixed").length==0) $(this).slideDown(500);});
360      } else if(($submenu).is(":hidden") && $("#above.scroll-to-fixed-fixed").length==0) {
361        $submenu.slideDown(500);
362      }
363    }
364/*
365  if($("#menu").length) {
366    if($("#menu").hasClass("fixed")) {
367      if($(window).scrollTop()<menuOffset) {$("#menu").removeClass("fixed").next().css({display:"none"});}
368    } else {
369    if($("#menu").length) menuOffset = Math.round($("#menu").offset().top);
370      if($(window).scrollTop()>menuOffset) {$("#menu").addClass("fixed").next().css({display:"block"});}
371      else if($(window).scrollTop()<($("#menu").prev().offset().top + $("#menu").prev().height())) {if(window.location.hash) {history.replaceState({}, "", "#");}}
372    }
373  }
374*/
375  }
376  });
377  
378}
379//   onresize();
380  resrc();
381  if($("body").hasClass("sekce_uvod")) {
382    $("#home div").after("<span rel='#main' class='dal'>&#9013;</span>");
383    $(document).on("click",".dal",function(){
384        //$.scrollTo($($(this).attr("rel")).offset().top-90,1000);
385        $("html, body").animate({ scrollTop: $($(this).attr("rel")).offset().top-90 }, 1000);
386    });
387    
388  } else {
389  $("#switchmap").on("click",function() {$.scrollTo(0,500);$("#mapawrap").removeClass("schovat");$("#bgfotowrap").fadeToggle(1000);
390    
391 });
392//     if($(document).height()>($(window).height()+$("#above").height()+$submenu.height())) {$("#above").scrollToFixed({dontSetWidth:true,spacerClass:"fixer"/*,fixed:function(){window.setTimeout('$(".fixer").css({height:$("#above").height()+"px"});',250);}*/});}
393  }
394  //if(window.location.hash=="") $("#submenu").hide(0).delay(1000).slideDown(500);
395
396});  //end document ready
397  
398/*
399(function($){
400
401$.fn.ctrl = function(key, callback) {
402    if(typeof key != 'object') key = [key];
403    callback = callback || function(){ return false; }
404    return $(this).keydown(function(e) {
405        var ret = true;
406        $.each(key,function(i,k){
407            if(e.keyCode == k.toUpperCase().charCodeAt(0) && e.ctrlKey) {
408                ret = callback(e);
409            }
410        });
411        return ret;
412    });
413};
414
415$.fn.disableSelection = function() {
416    $(window).ctrl(['a','s','c']);
417    return this.each(function() {           
418        $(this).attr('unselectable', 'on')
419               .css({'-moz-user-select':'none',
420                    '-o-user-select':'none',
421                    '-khtml-user-select':'none',
422                    '-webkit-user-select':'none',
423                    '-ms-user-select':'none',
424                    'user-select':'none'})
425               .each(function() {
426                    $(this).attr('unselectable','on')
427                    .bind('selectstart',function(){ return false; });
428               });
429    });
430};
431})(jQuery);
432*/
433
434function getElementsByClassJmeno(strClass, strTag, objContElm) {
435  strTag = strTag || "*";
436  objContElm = objContElm || document;
437  var objColl = objContElm.getElementsByTagName(strTag);
438  if (!objColl.length &&  strTag == "*" &&  objContElm.all) objColl = objContElm.all;
439  var arr = new Array();
440  var delim = strClass.indexOf('|') != -1  ? '|' : ' ';
441  var arrClass = strClass.split(delim);
442  for (var i = 0, j = objColl.length; i < j; i++) {
443    var arrObjClass = objColl[i].className.split(' ');
444    if (delim == ' ' && arrClass.length > arrObjClass.length) continue;
445    var c = 0;
446    comparisonLoop:
447    for (var k = 0, l = arrObjClass.length; k < l; k++) {
448      for (var m = 0, n = arrClass.length; m < n; m++) {
449        if (arrClass[m] == arrObjClass[k]) c++;
450        if (( delim == '|' && c == 1) || (delim == ' ' && c == arrClass.length)) {
451          arr.pushit(objColl[i]);
452          break comparisonLoop;
453        }
454      }
455    }
456  }
457  return arr;
458}
459
460Array.prototype.pushit = function(value) {
461  this[this.length] = value;
462}
463
464function protectit(cl,slovo) {
465  mejly = getElementsByClassJmeno(cl,'a');
466  for (var i = 0, j = mejly.length; i < j; i++) {
467  var mejl = (mejly[i].title) ? mejly[i].title.split(slovo) : mejly[i].innerHTML.split(slovo);
468  antiSpam.mailTo(mejly[i], {
469  email: mejl[0],
470  domain: mejl[1],
471  nameAsEmail: true
472});
473  }
474}
475var antiSpam = {
476    toSeparatedString: function(obj, delimiter) {
477        if (!obj) return null;
478        if (typeof(obj) == 'string') return obj;
479        var res = '';
480        for (var i=0; i<obj.length; i++) {
481            if (i > 0 && delimiter) res += delimiter;
482            res += obj[i];
483        }
484        return res;
485    },
486    mailTo: function(id, parameters) {        
487        if (!parameters) return;
488        var a = id;
489        if (!a) return;
490        var email = parameters.email;
491        if (!email) return;
492        var domain = parameters.domain;
493        if (!domain) return;
494        realemail = email + '@' + domain;
495        email = email + '@&#8203;' + domain;
496        a.href = 'mailto:' + realemail;
497        if (!parameters.name) {
498            if (parameters.nameAsEmail) { if(a.title=="") a.innerHTML = email; else a.title = email;}
499        } else a.innerHTML = parameters.name;
500    }
501
502}
503
504function outlink(href){
505      var evt = window.event;
506      if(href) var win = window.open(href);
507      if (win){
508          if (evt && evt.preventDefault) evt.preventDefault();
509          if (evt) evt.returnValue = false;
510          return false;
511      } else {
512            return true;
513      }
514}
515
516
517function outlinks(e) {
518  var hostname = window.location.hostname;
519	hostname = hostname.replace("www.","").toLowerCase();
520  $("body a").each(function(){href = String($(this).attr("href")).toLowerCase(); if((href.indexOf("https://")!=-1 || href.indexOf("http://")!=-1) && href.indexOf(hostname)==-1) $(this).not(".not").addClass("out");});
521  linky = getElementsByClassJmeno('out','a',document.getElementById(e));
522  for (var i = 0, j = linky.length; i < j; i++) {
523//   linky[i].setAttribute("target","_blank");
524  linky[i].setAttribute("onclick","return outlink(this.href)");
525}
526}
527
528
529
530/* ACTUAL.JS */
531/*! Copyright 2012, Ben Lin (http://dreamerslab.com/)
532 * Licensed under the MIT License (LICENSE.txt).
533 *
534 * Version: 1.0.18
535 *
536 * Requires: jQuery >= 1.2.3
537 */
538(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a);
539}else{a(jQuery);}}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf;a.fn.extend({actual:function(b,l){if(!this[b]){throw'$.actual => The jQuery method "'+b+'" you called does not exist';
540}var f={absolute:false,clone:false,includeMargin:false,display:"block"};var i=a.extend(f,l);var e=this.eq(0);var h,j;if(i.clone===true){h=function(){var m="position: absolute !important; top: -1000 !important; ";
541e=e.clone().attr("style",m).appendTo("body");};j=function(){e.remove();};}else{var g=[];var d="";var c;h=function(){c=e.parents().addBack().filter(":hidden");
542d+="visibility: hidden !important; display: "+i.display+" !important; ";if(i.absolute===true){d+="position: absolute !important; ";}c.each(function(){var m=a(this);
543var n=m.attr("style");g.push(n);m.attr("style",n?n+";"+d:d);});};j=function(){c.each(function(m){var o=a(this);var n=g[m];if(n===undefined){o.removeAttr("style");
544}else{o.attr("style",n);}});};}h();var k=/(outer)/.test(b)?e[b](i.includeMargin):e[b]();j();return k;}});}));
545
546/* SCROLLTO.JS */
547/**
548 * Copyright (c) 2007-2015 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com
549 * Licensed under MIT
550 * @author Ariel Flesler
551 * @version 2.1.1
552 */
553;(function(f){"use strict";"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof module&&module.exports?module.exports=f(require("jquery")):f(jQuery)})(function($){"use strict";function n(a){return!a.nodeName||-1!==$.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"])}function h(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}var p=$.scrollTo=function(a,d,b){return $(window).scrollTo(a,d,b)};p.defaults={axis:"xy",duration:0,limit:!0};$.fn.scrollTo=function(a,d,b){"object"=== typeof d&&(b=d,d=0);"function"===typeof b&&(b={onAfter:b});"max"===a&&(a=9E9);b=$.extend({},p.defaults,b);d=d||b.duration;var u=b.queue&&1<b.axis.length;u&&(d/=2);b.offset=h(b.offset);b.over=h(b.over);return this.each(function(){function k(a){var k=$.extend({},b,{queue:!0,duration:d,complete:a&&function(){a.call(q,e,b)}});r.animate(f,k)}if(null!==a){var l=n(this),q=l?this.contentWindow||window:this,r=$(q),e=a,f={},t;switch(typeof e){case "number":case "string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)){e= h(e);break}e=l?$(e):$(e,q);if(!e.length)return;case "object":if(e.is||e.style)t=(e=$(e)).offset()}var v=$.isFunction(b.offset)&&b.offset(q,e)||b.offset;$.each(b.axis.split(""),function(a,c){var d="x"===c?"Left":"Top",m=d.toLowerCase(),g="scroll"+d,h=r[g](),n=p.max(q,c);t?(f[g]=t[m]+(l?0:h-r.offset()[m]),b.margin&&(f[g]-=parseInt(e.css("margin"+d),10)||0,f[g]-=parseInt(e.css("border"+d+"Width"),10)||0),f[g]+=v[m]||0,b.over[m]&&(f[g]+=e["x"===c?"width":"height"]()*b.over[m])):(d=e[m],f[g]=d.slice&& "%"===d.slice(-1)?parseFloat(d)/100*n:d);b.limit&&/^\d+$/.test(f[g])&&(f[g]=0>=f[g]?0:Math.min(f[g],n));!a&&1<b.axis.length&&(h===f[g]?f={}:u&&(k(b.onAfterFirst),f={}))});k(b.onAfter)}})};p.max=function(a,d){var b="x"===d?"Width":"Height",h="scroll"+b;if(!n(a))return a[h]-$(a)[b.toLowerCase()]();var b="client"+b,k=a.ownerDocument||a.document,l=k.documentElement,k=k.body;return Math.max(l[h],k[h])-Math.min(l[b],k[b])};$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={get:function(a){return $(a.elem)[a.prop]()}, set:function(a){var d=this.get(a);if(a.options.interrupt&&a._last&&a._last!==d)return $(a.elem).stop();var b=Math.round(a.now);d!==b&&($(a.elem)[a.prop](b),a._last=this.get(a))}};return p});

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.