1jQuery.noConflict()(function($) { 2 3 4 $(document).ready(function () { 5 6 $(".main-navigation div > ul > li > a").each(function () { 7 let t = $(this); 8 let s = t.html().split(/ /); 9 if(s.length > 1){ 10 let o = '<span class="omit">'; 11 o += s.shift(); 12 o += " "; 13 o += '</span>'; 14 o += s.join(" "); 15 t.html(o); 16 } 17 }) 18 19 20 const addLightbox = (element, target) => { 21 element.attr("href", target); 22 element.data("featherlight", target); 23 element.featherlight("image"); 24 } 25 26 $(".entry-content img").each(function() { 27 var t = $(this); 28 console.log("1 " + t.attr("src")) 29 window.setTimeout(function () { 30 console.log("2 " + t.attr("src")) 31 if (t.attr("src")) { 32 let src = t.attr("src"); 33 if (t.data("large")) { 34 $.ajax({ 35 type: 'HEAD', 36 url: t.data("large"), 37 }).done(function (response, status, xhr) { 38 if (xhr.getResponseHeader("content-type").substr(0, 6) == "image/") { 39 addLightbox(t, t.data("large")); 40 } 41 }) 42 } 43 else{ 44 let imgScaled = src.replace(/\-[0-9]+x[0-9]+\.((jpg)|(png)|(jpeg))(\.webp)?/, "-scaled.$1$5"); 45 var imgLarge = false; 46 $.ajax({ 47 type: 'HEAD', 48 url: imgScaled, 49 }).done(function (response, status, xhr) { 50 if (xhr.getResponseHeader("content-type").substr(0, 6) == "image/") { 51 addLightbox(t, imgScaled); 52 } else { 53 let imgOrig = src.replace(/\-[0-9]+x[0-9]+\.((jpg)|(png)|(jpeg))(\.webp)?/, ".$1$5"); 54 $.ajax({ 55 type: 'HEAD', 56 url: imgOrig, 57 }).done(function (response, status, xhr) { 58 if (xhr.getResponseHeader("content-type").substr(0, 6) == "image/") { 59 addLightbox(t, imgOrig); 60 } 61 }); 62 } 63 }) 64 } 65 } 66 67 },0) 68 }); 69 }); 70 71 72/* 73 74 $(window).on("load scroll", function () { 75 var wst = $(window).scrollTop(); 76 var wh = $(window).height(); 77 if (wst > 100) { 78 $("body").addClass("scrolled"); 79 } else { 80 $("body").removeClass("scrolled"); 81 } 82 }); 83 84*/ 85 86 87 $(window).on("load resize orientationchange", function () { 88 //document.title = $(window).width() + " " + $(window).height(); 89 90 $("#site-navigation.toggled").removeClass("toggled"); 91 $(".menu-toggle").prop( 'aria-expanded', 'false' ); 92 }); 93 94 95 96 /* 97 $(window).mousemove(function( event ) { 98 document.title = ($(window).width() + " " + $(window).height() + " M: " + event.pageX + " " + event.pageY); 99 }); 100 */ 101 102 103 // Target Blank for PDF links 104 $("a[href$='.pdf']").attr("target", "_blank"); 105 106 // Target Blank for external links 107 $("a").each(function () { 108 var host = $(this)[0].hostname; 109 if (host.length && (host != document.location.hostname)) { 110 $(this).prop("target", "_blank"); 111 } 112 }); 113 114 115 116 117 $(window).on("schwupp load resize orientationchange", function () { 118 }); 119 120 121 122 $(document).ready(function () { 123 }) 124 125 126 $("body").keydown(function (e) { 127 if (e.keyCode == 27) { // escape 128 } 129 }); 130});
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.