1var isMobile = { 2 Android: function() { 3 return navigator.userAgent.match(/Android/i); 4 }, 5 BlackBerry: function() { 6 return navigator.userAgent.match(/BlackBerry/i); 7 }, 8 iOS: function() { 9 return navigator.userAgent.match(/iPhone|iPad|iPod/i); 10 }, 11 Opera: function() { 12 return navigator.userAgent.match(/Opera Mini/i); 13 }, 14 Windows: function() { 15 return navigator.userAgent.match(/IEMobile/i); 16 }, 17 any: function() { 18 return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); 19 } 20}; 21 22$(window).load(function() { 23 var $slider = $('.main_slider'); 24 25 $slider.slick({ 26 infinite: true, 27 slidesToShow: 1, 28 slidesToScroll: 1, 29 dots: true, 30 autoplay: false, 31 accessibility: false 32 }); 33 34 if(!isMobile.any()){ 35 $slider.slick("slickSetOption", 'adaptiveHeight', true, true); 36 } 37 38 var $play = ($('#sliderAutoplay').html() == "true"); 39 $slider.slick("slickSetOption", 'autoplay', $play, true); 40 41 var $speed = $('#sliderPlaySpeed').html(); 42 if ( $speed != '') { 43 var $val = $speed * 1000; 44 $slider.slick("slickSetOption", 'speed', $val, true); 45 } 46 47 var $interval = $('#sliderPlayInterval').html(); 48 if ( $interval != '') { 49 var $val = $interval * 1000; 50 $slider.slick("slickSetOption", 'autoplaySpeed', $val, true); 51 } 52}); 53 54$(document).ready(function() { 55 var toggle = $('#itemControl .control_item'); 56 toggle.click(function(e) { 57 e.preventDefault(); 58 toggle.removeClass('active'); 59 $(this).addClass('active'); 60 }); 61}); 62 63document.addEventListener('click', function (e) { 64 if (e.target.className === 'activity_switch_checkbox' && e.target.hasAttribute('umi:element-id')) { 65 var umielementId = e.target.getAttribute('umi:element-id'); 66 uAdmin.eip.switchElementActivity(umielementId); 67 e.target.closest('.product_infocard').classList.toggle('item-inactive'); 68 } 69}); 70 71$(document).ready(function() { 72 var columns = $('table.emarket_compare tr:first-of-type th'); 73 var columnsAmount = columns.length - 1; 74 var columnWidth = (100 / columnsAmount).toFixed(2); 75 var compareColumns = $('table.emarket_compare tr th:not(:first-child)'); 76 77 78 if ($(window).width() > 980) { 79 compareColumns.css({'width': columnWidth + '%'}); 80 } 81 else { 82 compareColumns.css({'min-width': columnWidth + '%'}); 83 } 84}); 85 86$(document).ready(function() { 87 if(isMobile.any()) { 88 var companyName = $('.header_mobile .media-heading > a'); 89 var companyLogo = $('.header_mobile .mobile_top_logo'); 90 if(companyName.html() == '') { 91 companyLogo.addClass('no_logotype'); 92 } 93 } 94});
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.