1$(document).ready(function() { 2 $( ".rep-our-products-cont" ).wrap( "<div class='Feature-product'></div>" ); 3$('body').on('click','.support-gt',function(){ 4 5 dataLayer.push({'event': 'support-ticket-click'}); 6}); 7 }); 8 9/* Social Media Share Popup */ 10function basicPopup(url) { 11 popupWindow = window.open(url, 'popUpWindow', 'height=500,width=500,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes'); 12} 13 14/* Place Holder for IE browser */ 15function hasPlaceholderSupport() { 16 var input = document.createElement('input'); 17 return ('placeholder' in input); 18} 19 20if(!hasPlaceholderSupport()){ 21 var inputs = document.getElementsByTagName('input'); 22 for(var i=0, count = inputs.length;i<count;i++){ 23 if(inputs[i].getAttribute('placeholder')){ 24 inputs[i].style.cssText = "color:#ffffff;font-style:normal;" 25 inputs[i].value = inputs[i].getAttribute("placeholder"); 26 inputs[i].onclick = function(){ 27 if(this.value == this.getAttribute("placeholder")){ 28 this.value = ''; 29 this.style.cssText = "color:#ffffff;font-style:normal;" 30 } 31 } 32 inputs[i].onblur = function(){ 33 if(this.value == ''){ 34 this.value = this.getAttribute("placeholder"); 35 this.style.cssText = "color:#ffffff;font-style:normal;" 36 } 37 } 38 } 39 } 40} 41/* End */ 42 43$(document).ready(function() { 44 $('.go-top').click(function(event) { 45 event.preventDefault(); 46 $('html, body').animate({scrollTop: 0}, 300); 47 }); 48 49 50 $(".menu-popup a").click(function() { 51 $href=$(this).attr("href"); 52 $gl=$('.gallery-items'); 53 $('.menu-popup a').removeClass("active"); 54 if($href=="#all"){
55 $gl.show(); 56 $(this).addClass("active"); 57 }else{ 58 59 $gl.hide(); 60 $($href).show(); 61 $(this).addClass("active"); 62 } 63 return false; 64}); 65 66 67}); 68 69 $( window ).load(function() { 70 // Run code 71 resize_newsgrid(); 72 73 }); 74 75function resize_newsgrid(){ 76 var highest = null; 77 var hN = 0; 78 var $grid=$('.location-info'); 79 $grid.each(function(){ 80 var h = $(this).innerHeight(); 81 //console.log(h); 82 if(h > hN){ 83 hN = h; 84 highest = $(this); 85 } 86 }); 87 88 $grid.css("max-height", hN); 89 $grid.css("min-height", hN); 90} 91function resize_newsgrid1(){ 92 var highest = null; 93 var hN = 0; 94 var $grid=$('.rep-our-single-products-cont'); 95 $grid.each(function(){ 96 var h = $(this).innerHeight(); 97 //console.log(h); 98 if(h > hN){ 99 hN = h; 100 highest = $(this); 101 } 102 }); 103 104 $grid.css("max-height", hN); 105 $grid.css("min-height", hN); 106} 107function resize_newsgrid2(){ 108 var highest = null; 109 var hN = 0; 110 var $grid=$('.Feature-product'); 111 $grid.each(function(){ 112 var h = $(this).innerHeight(); 113 //console.log(h); 114 if(h > hN){ 115 hN = h; 116 highest = $(this); 117 } 118 }); 119 120 $grid.css("max-height", hN); 121 $grid.css("min-height", hN); 122} 123if ($(window).width() > 767) { 124 $( window ).load(function() { 125 // Run code 126 resize_newsgrid1(); 127 resize_newsgrid2(); 128 }); 129} 130/* 131$(document).ready(function() { { 132 if ($(window).width()< 767) { 133 var $mainMenu = $('#main-menu').on('click', 'span.sub-arrow', function(e) { 134 // toggle the sub menu on sub arrow click in collapsible mode 135 var obj = $mainMenu.data('smartmenus'); 136 if (obj.isCollapsible()) { 137 var $item = $(this).parent(), 138 $sub = $item.parent().dataSM('sub'), 139 subIsVisible = $sub.dataSM('shown-before') && $sub.is(':visible'); 140 $sub.dataSM('arrowClicked', true); 141 obj.itemActivate($item); 142 if (subIsVisible) { 143 obj.menuHide($sub); 144 } 145 e.stopPropagation(); 146 e.preventDefault(); 147 } 148 }).bind({ 149 // don't show the sub menu in collapsible mode unless the sub arrow is clicked 150 'beforeshow.smapi': function(e, menu) { 151 var obj = $mainMenu.data('smartmenus'); 152 if (obj.isCollapsible()) { 153 var $menu = $(menu); 154 if (!$menu.dataSM('arrowClicked')) { 155 return false; 156 } 157 $menu.removeDataSM('arrowClicked'); 158 } 159 }, 160 'show.smapi': function(e, menu) { 161 $(menu).dataSM('parent-a').children('span.sub-arrow').text('-'); 162 }, 163 'hide.smapi': function(e, menu) { 164 $(menu).dataSM('parent-a').children('span.sub-arrow').text('+'); 165 } 166 }); 167 168 } 169 }); 170 */
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.