1 2// include JavaScript libs & frameworks 3include('/script/libs/jquery-ui.min.js'); 4include('/script/libs/bootstrap.min.js'); 5include('/styles/libs/bootstrap.css'); 6include('/script/libs/isotope.min.js'); 7include('/script/libs/smoothscroll.js'); 8include('/script/libs/stacktable.js'); 9include('/script/libs/fancybox/jquery.fancybox.css'); 10include('/script/libs/fancybox/jquery.fancybox.min.js'); 11include('/styles/libs/font-awesome.min.css'); 12 13// include CSS styles 14//include('/styles/default.css'); 15//include('/styles/form.css'); 16//include('/styles/list.css'); 17//include('/styles/framework.css'); 18include('/styles/animate.css'); 19include('/scss/style.scss'); 20include('/scss/custom.scss'); 21include('/scss/website.scss'); 22include('/scss/system.scss'); 23 24// include JavaScript files 25include('/script/classes/forms/Validate.js'); 26 27// jQuery ready statement 28$(document).ready(function() { 29 30 // highlight current page in menu 31 // recognize site event from path 32 var event = window.location.pathname.split('/', 3).pop().toLowerCase(); 33 // empty event = default index 34 if (event == '') event = 'index'; 35 // top menu 36 $('.navbar-collapse a').each(function() { 37 38 var el = $(this); 39 var link = el.attr('href').split('/').pop().toLowerCase(); 40 41 if (event == 'index' & link == '') { 42 el.parent().addClass('active'); 43 return false; 44 } 45 if (event == link) { 46 el.parent().addClass('active'); 47 return false; 48 } 49 50 }); 51 52 // responsive table 53 $('.mce-item-table').stacktable(); 54 55 // fancybox init 56 if ($.fn.fancybox) $('.fancybox').fancybox(); 57 58 // wrap image into fancybox link 59 $('.js-fancybox-wrap').each(function() { 60 let image_url = $(this).attr('src').split('?')[0]; 61 $(this).wrap('<a href="' + image_url + '?1800:1000" class="fancybox"></a>'); 62 }); 63 64 // GDPR - accessibility the send button after ticking the required checkbox 65 $('.gdpr-required').on('change', function() { 66 if ( $(this).is(':checked') ) { 67 $('.gdpr-submit-button').attr('disabled', false).css('opacity', 1).css('cursor', 'pointer'); 68 } 69 else { 70 $('.gdpr-submit-button').attr('disabled', true).css('opacity', .3).css('cursor', 'not-allowed'); 71 } 72 }).trigger('change'); 73 74 // CUSTOM 75 76 // Animovaná ÄÃsla. 77 function checkAnimateNumbers() { 78 let wrapper = $('.js-animate-numbers'); 79 80 if (!wrapper.length) { 81 return; 82 } 83 84 let wrapperTop = wrapper.offset().top; 85 let wrapperBottom = wrapperTop + wrapper.outerHeight(); 86 let screenTop = $(window).scrollTop(); 87 let screenBottom = screenTop + $(window).innerHeight(); 88 89 if ((screenBottom > wrapperTop) && (screenTop < wrapperBottom)) { 90 $('.js-animate-numbers .animate-number').each(function () { 91 let el = $(this); 92 93 $({ Counter: 0 }).animate({ Counter: el.text() }, { 94 duration: 3000, 95 easing: 'swing', 96 step: function () { 97 el.text(Math.ceil(this.Counter).toLocaleString('cs')); 98 } 99 }); 100 }); 101 102 wrapper.removeClass('js-animate-numbers'); 103 } 104 } 105 106 $(function () { 107 $(window).on('scroll', checkAnimateNumbers); 108 checkAnimateNumbers(); 109 }); 110 111 // Collapsible Tab 112 $('.collapsible-tab button').on('click', function(){ 113 $(this).toggleClass('active'); 114 let parent = $(this).closest('.collapsible-tab'); 115 let content = parent.find('.content'); 116 if (content.css('max-height') !== '0px' && content.css('max-height') !== 'none') { 117 content.css('max-height', '0px'); 118 } else { 119 content.css('max-height', content[0].scrollHeight + 'px'); 120 } 121 }); 122 123});
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.