1var $body, 2 windowHeight, 3 windowWidth, 4 $showRankBlock, 5 $btnCloseTab, 6 $menuTrigger; 7 8jQuery(function($) { 9 10 // Header 11 var $its = $(".header input[type=search]"); 12 if ($its.length > 0) { 13 $its 14 .on('focus', function(){ $(this).val(''); }) 15 .on('blur', function(){ $(this).val('Search'); }); 16 } 17 18 $(".marketing_tab_content").hide(); 19 $(".div0").show(); 20 $(".markening_tab_link").click(function(event){ 21 event.preventDefault(); 22 var dataid = $(this).attr("data-tab"); 23 $(".marketing_tab_content").hide(); 24 $(".markening_tab_link").removeClass("active_tab"); 25 $(this).addClass("active_tab"); 26 $(".div"+dataid).show(); 27 }); 28 29 $(".rank-tabs .cards_list:not(.active_mod)").fadeOut(); 30 $(document).on("click",".rank-tabs .ranked_section .tabs_item",function(e){ 31 if ($(this).hasClass("moreCategory")) { 32 // nothing 33 } else { 34 e.preventDefault(); 35 var parent_ranktabs = $(this).parent().parent(); 36 var tab_index = $(this).attr("data-tab"); 37 parent_ranktabs.find(".tabs_item").removeClass('active_mod'); 38 parent_ranktabs.find(".cards_list").removeClass('active_mod'); 39 $(this).addClass("active_mod"); 40 parent_ranktabs.find("ul#rank-tab-" + tab_index).addClass("active_mod"); 41 parent_ranktabs.find("ul.cards_list").hide(); 42 parent_ranktabs.find("ul.cards_list.active_mod").fadeIn(); 43 } 44 }); 45 46 $("#view_latest").click(function() { 47 return redirectLatestRanking(); 48 }); 49 50 $body = $('body'); 51 $showRankBlock = $('.showRankBlock'); 52 $btnCloseTab = $('.btnCloseTab'); 53 $btnCloseTab = $('.btnCloseTab'); 54 $menuTrigger = $('.menuTrigger'); 55 56 $showRankBlock.on('click', function(e) { 57 var $this = $(this), currentId = $(this).data('tab'); 58 $(currentId).addClass('active_mod'); 59 }); 60 61 $btnCloseTab.on('click', function(e) { 62 $('.rankBlock').removeClass('active_mod'); 63 }); 64 65 $menuTrigger.on('click', function () { 66 if ($body.hasClass('menu_open')) { 67 $body.removeClass('menu_open'); 68 $(this).removeClass('active_mod'); 69 } else { 70 $body.addClass('menu_open'); 71 $(this).addClass('active_mod'); 72 } 73 }); 74 75 simpleSelect($); 76 if ($('.conferences_slider').length) { 77 $('.conferences_slider').slick({ 78 infinite: true, 79 slidesToShow: 4, 80 slidesToScroll: 1, 81 variableWidth: true, 82 dots: true, 83 arrows: false, 84 prevArrow: '', 85 nextArrow: '', 86 responsive: [ 87 { 88 breakpoint: 1201, 89 settings: { 90 variableWidth: false, 91 slidesToShow: 2 92 } 93 }, 94 { 95 breakpoint: 1024, 96 settings: { 97 variableWidth: false, 98 slidesToShow: 1 99 } 100 } 101 ] 102 }); 103 } 104 // Js for customer_slider 105 if ($('.customer_slider').length) { 106 $('.customer_slider').slick({ 107 slidesToShow: 7, 108 slidesToScroll: 1, 109 arrows: true, 110 dots: false, 111 autoplay: true, 112 autoplaySpeed: 3000, 113 responsive: [ 114 { 115 breakpoint: 991, 116 settings: { 117 slidesToShow: 4, 118 } 119 }, 120 { 121 breakpoint: 640, 122 settings: { 123 arrows: false, 124 slidesToShow: 2, 125 } 126 } 127 ] 128 }); 129 } 130 131 132 if ($('.our_partners_slider').length) { 133 $('.our_partners_slider').slick({ 134 prevArrow: $('.our_partner_arrow.left_mod'), 135 nextArrow: $('.our_partner_arrow.right_mod'), 136 infinite: true, 137 slidesToShow: 6, 138 slidesToScroll: 1, 139 dots: false, 140 arrows: true, 141 responsive: [ 142 { breakpoint: 1201, settings: { slidesToShow: 4 } }, 143 { breakpoint: 1024, settings: { slidesToShow: 3 } }, 144 { breakpoint: 640, settings: { slidesToShow: 2 } }, 145 { breakpoint: 480, settings: { slidesToShow: 1 } } 146 ] 147 }); 148 } 149 150}); 151 152function simpleSelect($) { 153 var $select = $('[id^=select_]'); 154 if ($select.length) { 155 $select.each(function(index, element) { 156 var $dropdownParent = $(this).closest('dd'); 157 $(element).select2({ 158 minimumResultsForSearch: Infinity, 159 dropdownParent: $dropdownParent 160 }); 161 162 $(element).on('select2:open', function () { 163 $('.select__dropdown .select2-results__options').mCustomScrollbar('destroy'); 164 $('.select__dropdown .select2-results__options').mCustomScrollbar('update'); 165 setTimeout(function() { 166 $(".select2-results__options").mCustomScrollbar({ 167 axis: 'y', 168 scrollbarPosition: 'inside', 169 advanced:{ updateOnContentResize: true }, 170 live: true 171 }); 172 }, 0); 173 }); 174 }) 175 } else { 176 return false;
177 } 178} 179 180if ('objectFit' in document.documentElement.style === false) { 181 document.addEventListener('DOMContentLoaded', function () { 182 Array.prototype.forEach.call(document.querySelectorAll('img[data-object-fit]'), function (image) { 183 (image.runtimeStyle || image.style).background = 'url("' + image.src + '") no-repeat 50%/' + (image.currentStyle ? image.currentStyle['object-fit'] : image.getAttribute('data-object-fit')); 184 185 image.src = 'data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'' + image.width + '\' height=\'' + image.height + '\'%3E%3C/svg%3E'; 186 }); 187 }); 188} 189 190function getRandomInt(min, max) { 191 return Math.floor(Math.random() * (max - min)) + min; 192} 193 194function getRandom(min, max) { 195 return Math.random() * (max - min) + min; 196} 197 198function redirectLatestRanking() { 199 var curl = $('#select_ranking_11').find(":selected").val(); 200 if (curl != '' && typeof curl !== "undefined" ) { 201 window.location.href = curl; 202 } 203 204 return true; 205}
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.