1$(document).ready(function() { 2 // przeniesienie przycisku na mapÄ 3 $('#addReport').appendTo('#mapView'); 4 5 $('[data-toggle="tooltip"]').tooltip(); 6 7 // cookie bar display 8 $.cookieBar({ 9 fixed: true, 10 bottom: true, 11 acceptText: 'AkceptujÄ pliki cookie', 12 message: 'Informujemy, iż w celu optymalizacji treÅci dostÄpnych w naszym serwisie i dostosowania ich do PaÅstwa indywidualnych potrzeb korzystamy z informacji zapisanych za pomocÄ plików cookies na urzÄ dzeniach koÅcowych użytkowników. Pliki cookies użytkownik może kontrolowaÄ za pomocÄ ustawieÅ swojej przeglÄ darki internetowej. Dalsze korzystanie z naszego serwisu internetowego bez zmiany ustawieÅ przeglÄ darki internetowej oznacza, iż użytkownik akceptuje stosowanie plików cookies.', 13 }); 14 15 // admin toolbar detection 16 if ( jQuery('div.admin').length ) { 17 var adminBarHeight = jQuery('div.admin #navbar').height(); 18 jQuery('body').addClass('admin-visible').find('header').css('margin-top', adminBarHeight); 19 } 20 21 $( window ).resize(function() { 22 if ( jQuery('div.admin').length ) { 23 var adminBarHeight = jQuery('div.admin #navbar').height(); 24 jQuery('body').addClass('admin-visible'); 25 jQuery('.admin-visible').css('margin-top', adminBarHeight); 26 } 27 }); 28 29 if ($('.component-page-thumbnail img').length > 0) { 30 $('.component-page-thumbnail img').on('load', toImage('.component-page-thumbnail')); 31 } 32 33 $.creaseFont({ 34 content : ["p", 'h1', 'h2', 'h3', 'h4', 'h5', "td", "th", 'li', 'label', '.header-search div', 'a', 'span', '.component-copyright', '.component-content button', '.btn-like', '.form-control', '.btn'], 35 defaultSize : 14, 36 maxSize : 32, 37 minSize : 10, 38 stepSize : 4, 39 unit : 'px', 40 animate : false, 41 animateSpeed: 400, 42 cookieName : 'creaseFont', 43 cookiePath : '/', 44 cookieLifetime: 60, 45 onincrease : function() { 46 $('.tmpl_uml_portal_sg #main-content .component-horizontal .item').css('max-height', 'none'); 47 $('.tmpl_uml_portal_sg #main-content .component-vertical .component-wrapper, .tmpl_uml_portal_sg #main-content .component-menu-vortals ul li, .tmpl_uml_portal_sg #main-content .component-menu-vortals ul li a').height('auto'); 48 $('#bottom-content #footer-content a.btn-primary').width('auto'); 49 $('.form-control').css('height', 'auto').css('line-height', '1.42857143'); 50 }, 51 onreset : function() { 52 var content = $('.tmpl_uml_portal_sg #main-content'); 53 content.find('.component-horizontal .item').css('max-height', '498px'); 54 content.find('.component-vertical .component-wrapper').height('450px'); 55 content.find('.component-menu-vortals ul li, .component-menu-vortals ul li a').height('173px'); 56 $('#bottom-content #footer-content a.btn-primary').width('151px'); 57 $('.form-control').css('height', '34'); 58 } 59 }); 60 61 // search form expand 62 $('#searchToggleBtn').click( function(e) { 63 e.preventDefault(); 64 $('#advanced-search').slideToggle(); 65 $('#advanced-search input#search-term').focus(); 66 }); 67 // search form close 68 jQuery('.search-panel .close').click( function(e) { 69 e.preventDefault(); 70 jQuery('#advanced-search').slideToggle(); 71 }); 72 73 74 /** 75 * ObsÅuga mega menu 76 * ZaÅożenia: 77 * - każda pozycja menu ma klasÄ fn-mm oraz klasÄ fn-mm-nazwa, gdzie nazwa do 78 * unikalna czeÅc dla każdej pozytcji menu. 79 * - każda zawartoÅÄ megamenu ma klasÄ fn-mm-row i fn-mm-nazwa. 80 */ 81 82 $('#main-menu ul li a.fn-mm').each(function(index){ 83 var parent = $(this).parent('li'); 84 parent.addClass($(this).attr('class')); 85 $(this).removeClass(); 86 getMenuContent(parent).appendTo(parent); 87 88 // podÅÄ czenie zdarzenia 89 parent.on('focus mouseenter', function() { 90 getMenuContent(this).removeClass('hidden'); 91 }).on('blur mouseleave', function (){ 92 getMenuContent(this).addClass('hidden'); 93 }); 94 }); 95 96 function getMenuContent(el) { 97 var classes = $(el).attr('class').split(' '); 98 for(i = 0; i< classes.length; i++) { 99 var cssClass = classes[i].trim(); 100 if (cssClass.startsWith('fn-mm-')) { 101 return $('.fn-mm-row.' + cssClass); 102 }; 103 } 104 } 105 106 /* 107 * Funkcja dodaje ikony do wszystkich obrazków 108 * wewnÄ trz div-a (którego klasa/id jest przekazywana 109 * w agrumencie). PodajÄ c opcjonalnie parametr url, można 110 * zawÄziÄ dziaÅanie tylko do konkretnych stron, przez czÄsciowe 111 * dopasowanie sÅow kluczowych do url-a. 112 */ 113 function toImage(parrent, url = "") { 114 if ($(parrent + " img").length <= 0) { 115 return; 116 } 117 if (url != "" && window.location.href.indexOf(url) <= -1) { 118 return 0; 119 } 120 var imageIcon = ` 121 <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo image-icons" width="44" height="44"
122 viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="#ffffff" stroke-linecap="round" stroke-linejoin="round"> 123 <path stroke="none" d="M0 0h24v24H0z" /> 124 <line x1="15" y1="8" x2="15.01" y2="8" /> 125 <rect x="4" y="4" width="16" height="16" rx="3" /> 126 <path d="M4 15l4 -4a3 5 0 0 1 3 0l 5 5" /> 127 <path d="M14 14l1 -1a3 5 0 0 1 3 0l 2 2" /></svg> 128 `; 129 $(parrent + " img").after(imageIcon); 130 position = $(parrent + " img"); 131 //$("."+parrent+" img").parent().css("position", "relative"); 132 const img = $('.component-page-thumbnail img').get(0); 133 //$(".image-icons").css("position", "absolute").css("top", position.top + 20).css("left", position.left + 100); 134 $(".image-icons").css("position", "absolute").css("top", img.offsetHeight - img.height + 10).css("left", img.offsetLeft + 30); 135 } 136 137 function traverseChildNodes(node) { 138 var next; 139 if (node.nodeType === 1) { 140 // (Element node) 141 if (node = node.firstChild) { 142 do { 143 // Recursively call traverseChildNodes on each child node 144 next = node.nextSibling; 145 traverseChildNodes(node); 146 } while(node = next); 147 } 148 } else if (node.nodeType === 3) { 149 var tekst = node.data; 150 tekst = tekst.replace(/(\s)([\S])[\s]+/g,"$1$2\u00a0"); //jednoznakowe 151 tekst = tekst.replace(/(\s)([^<][\S]{1})[\s]+/g,"$1$2\u00a0"); //dwuznakowe 152 node.data=tekst; 153 } 154 } 155 156 $('.component-content-wysiwyg, .component-description, .component-section-description, .component-custom-news, .component-pagedata').each(function() { 157 traverseChildNodes(this); 158 }); 159});
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.