1$(document).ready(function (){ 2 if (docCookies) { 3 if (docCookies.hasItem("_fontSize") === true) { 4 var cookieValue = docCookies.getItem("_fontSize"); 5 switch(cookieValue) { 6 case '2': 7 $('html').removeClass('font-large'); 8 $('html').addClass('font-medium'); 9 break; 10 case '3': 11 $('html').removeClass('font-medium'); 12 $('html').addClass('font-large'); 13 break; 14 default: 15 $('html').removeClass('font-medium'); 16 $('html').removeClass('font-large'); 17 } 18 19 }; 20 if (docCookies.hasItem("_color") === true) { 21 var cookieValue = docCookies.getItem("_color"); 22 switch(cookieValue) { 23 case '4': 24 $('body').addClass('dark'); 25 $('body').removeClass('light'); 26 break; 27 case '5': 28 $('body').addClass('default'); 29 $('body').removeClass('dark'); 30 break; 31 default: 32 $('body').removeClass('dark'); 33 $('body').removeClass('light'); 34 } 35 }; 36 $('a#normal').on('click', function (e) { 37 e.preventDefault(); 38 docCookies.setItem('_fontSize', '1', new Date(0x7fffffff * 1e3), "/" ); 39 $(document.body).removeClass('font-medium'); 40 $(document.body).removeClass('font-large'); 41 window.location.reload(); 42 }); 43 $('a#medium').on('click', function (e) { 44 e.preventDefault(); 45 docCookies.setItem('_fontSize', '2', new Date(0x7fffffff * 1e3), "/" ); 46 $(document.body).removeClass('font-large'); 47 $(document.body).addClass('font-medium'); 48 window.location.reload(); 49 }); 50 $('a#large').on('click', function (e) { 51 e.preventDefault(); 52 docCookies.setItem('_fontSize', '3', new Date(0x7fffffff * 1e3), "/" ); 53 $(document.body).removeClass('font-medium'); 54 $(document.body).addClass('font-large'); 55 window.location.reload(); 56 }); 57 $('a#dark').on('click', function (e) { 58 e.preventDefault(); 59 docCookies.setItem('_color', '4', new Date(0x7fffffff * 1e3), "/" ); 60 $(document.body).removeClass('default'); 61 $(document.body).addClass('dark'); 62 }); 63 $('a#light').on('click', function (e) { 64 e.preventDefault(); 65 docCookies.setItem('_color', '5', new Date(0x7fffffff * 1e3), "/" ); 66 $(document.body).removeClass('dark'); 67 $(document.body).addClass('default'); 68 }); 69 } 70/* TOGGLE SITE MENU AND SEARCH */ 71 /* SITE MENU */ 72 $('a.menu-mobile').click(function(event) { 73 event.preventDefault(); 74 datatype = $(this).attr('data-toggle'); 75 $('#main-' + datatype).slideToggle('fast'); 76 return false; 77 }); 78 $('nav li a').addClass('item-link'); 79 $('.item-link').click(function (e) { 80 if ($(this).parent().parent().hasClass('menu')) { 81 $('.sub-menu').slideUp('fast'); 82 } 83 $(document).click(function() { 84 $('.sub-menu').slideUp('fast'); 85 }) 86 if ($(this).parent().find('ul').length){ 87 if ($(this).parent().children('ul').is(':visible') != true) { 88 $(this).parent().children('ul').slideToggle('fast'); 89 e.preventDefault(); 90 return false; 91 } 92 } 93 }); 94 95 /* 96 $('li.page_item a').mouseenter(function() { 97 $(this).next().filter( '.children' ).slideToggle('fast'); 98 }); 99 */ 100 /* SITE MENU */ 101/* TOGGLE SITE MENU AND SEARCH */ 102 103/* TOGGLE ANYTHING WITH CURRENT CLASS WHEN CLICK */ 104 $('a.toggle').click(function(event) { 105 event.preventDefault(); 106 datatype = $(this).attr('data-type'); 107 $('#toggle-' + datatype).slideToggle('fast'); 108 return false; 109 }); 110/* TOGGLE ANYTHING WITH CURRENT CLASS WHEN CLICK */ 111 112/* SLICK RESPONSIVE SLIDESHOW */ 113 $('.slick').slick({ 114 centerMode: true, 115 centerPadding: '0%', 116 slidesToShow: 1, 117 dots: true, 118 prevArrow: '<button type="button" class="slick-prev"><i class="fa fa-angle-left"></i></button>', 119 nextArrow: '<button type="button" class="slick-next"><i class="fa fa-angle-right"></i></button>', 120 arrows: true, 121 adaptiveHeight: true, 122 responsive: [{ 123 breakpoint: 768, 124 settings: { 125 centerMode: true, 126 centerPadding: '0px', 127 slidesToShow: 1 128 } 129 }, { 130 breakpoint: 480, 131 settings: { 132 centerMode: true, 133 centerPadding: '0px', 134 slidesToShow: 1 135 } 136 }] 137 });
138/* SLICK RESPONSIVE SLIDESHOW */ 139 140 141 142}); 143equalheight = function(container){ 144 var currentTallest = 0, 145 currentRowStart = 0, 146 rowDivs = new Array(), 147 $el, 148 topPosition = 0; 149 $(container).each(function() { 150 151 $el = $(this); 152 $($el).height('auto'); 153 topPostion = $el.position().top; 154 155 if (currentRowStart != topPostion) { 156 for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 157 rowDivs[currentDiv].height(currentTallest); 158 } 159 rowDivs.length = 0; 160 currentRowStart = topPostion; 161 currentTallest = $el.height(); 162 rowDivs.push($el); 163 } else { 164 rowDivs.push($el); 165 currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); 166 } 167 for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 168 rowDivs[currentDiv].height(currentTallest); 169 } 170 }); 171}; 172$(window).load(function() { 173 equalheight('.equal-height'); 174}); 175$(window).resize(function(){ 176 equalheight('.equal-height'); 177});
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.