1jQuery(function ($) { 2 3 $('body').on('click','.video', function(){ 4 $('.videoframesmall').hide(); 5 idVideo = parseInt($(this).attr("id")); 6 frameWidth = parseInt($(this).attr("data-frameWidth")); 7 frameHeight = parseInt($(this).attr("data-frameHeight")); 8 height = parseInt($(this).attr("data-height")); 9 title = $(this).attr("data-title"); 10 11 frameWidthDivideBy2 = parseInt(frameWidth/2); 12 width = parseInt($(window).width()/2)-(frameWidthDivideBy2+12); 13 14 $('<div class="videoframesmall"><div style="position:relative;font-size: 14px;"><a style="position:absolute;top:-30px;left:0;"><span class="pl_box_name">'+title+'</span></a></div><iframe src="//player.vimeo.com/video/'+idVideo+'?autoplay=1&loop=1" width="'+frameWidth+'" height="'+frameHeight+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><a class="closeX" onclick="$(this).parent().hide();$(this).parent().html(\'\');">Fechar ✖</a></div>').appendTo('body'); 15 16 if(isNaN(height)) { 17 height = $(this).offset().top-(frameHeight/2); 18 hauteur = height-95; 19 $('html, body').animate({scrollTop:hauteur}, 1000); 20 } else { 21 hauteur = height + 32; 22 $('html, body').animate({scrollTop:height}, 1000); 23 } 24 25 $('.videoframesmall').css({left:width,top:hauteur}); 26 27 }); 28 29}); 30$(document).ready(function() 31{ 32 $('.combine_link, a.pageResults').on('touchstart click', function(e) 33 { 34 e.preventDefault(); 35 //$('#ef_loading').show().animate({top:0}, 300); 36 var url_separator = '?'; 37 if($(this).attr('href').indexOf("?") >= 0) 38 { 39 url_separator = '&'; 40 } 41 if($(this).attr('f')!==undefined) 42 { 43 if($(this).attr('order-by')!==undefined) 44 { 45 if($(this).attr('data-target')!==undefined) 46 $(location).attr('href',$(this).attr('href')+url_separator+'f='+$(this).attr('f')+url_separator+'order-by='+$(this).attr('order-by')+'#!/'+$(this).attr('data-target')); 47 else 48 $(location).attr('href',$(this).attr('href')+url_separator+'f='+$(this).attr('f')+url_separator+'order-by='+$(this).attr('order-by')); 49 } 50 else 51 { 52 if($(this).attr('data-target')!==undefined) 53 $(location).attr('href',$(this).attr('href')+url_separator+'f='+$(this).attr('f')+'#!/'+$(this).attr('data-target')); 54 else 55 $(location).attr('href',$(this).attr('href')+url_separator+'f='+$(this).attr('f')); 56 } 57 } 58 else 59 { 60 if($(this).attr('order-by')!==undefined) 61 { 62 if($(this).attr('data-target')!==undefined) 63 $(location).attr('href',$(this).attr('href')+url_separator+'order-by='+$(this).attr('order-by')+'#!/'+$(this).attr('data-target')); 64 else 65 $(location).attr('href',$(this).attr('href')+url_separator+'order-by='+$(this).attr('order-by')); 66 } 67 else 68 { 69 if($(this).attr('data-target')!==undefined) 70 $(location).attr('href',$(this).attr('href')+'#!/'+$(this).attr('data-target')); 71 else 72 $(location).attr('href',$(this).attr('href')); 73 } 74 } 75 76 return false; 77 }); 78 79 //Store-Wide Pop-Up 80 $('a.popup').click(function(h) { 81 // get class name of the element 82 var eclass = $(this).attr('class'); 83 var etitle = $(this).attr('title'); 84 var ehref = $(this).attr('href'); 85 var g=[]; 86 if(eclass && eclass.match(/popup/)){ 87 h.preventDefault(); 88 g = eclass.match(/popup-(\d+)-(\d+)/); 89 } 90 else if(etitle && etitle.match(/popup/)){ 91 h.preventDefault(); 92 g = etitle.match(/popup-(\d+)-(\d+)/); 93 } 94 else{ 95 return; 96 } 97 h=escape((etitle||"popup").toLowerCase().replace(/[- |'|\/|.]/g,"_")).replace(/\%[a-zA-Z0-9][a-zA-Z0-9]/g,""); 98 var k=450, l=450, u=0, v=0; 99 if(g){ 100 k = g[1]; 101 l = g[2]; 102 } 103 if(eclass.match(/popup-(\d+)-(\d+)-center/)){ 104 u = screen.width?(screen.width-k)/2:0; 105 v = screen.height?(screen.height-l)/2:0; 106 } 107 108 window.open(ehref,h,"scrollbars=yes,location=0,statusbar=0,menubar=0,width="+k+",height="+l+",left="+u+",top="+v).focus(); 109 }); 110 111 $('a.redirect').click(function(i) { 112 var fsize = $(this).attr('data-size'); 113 var fhref = $(this).attr('href'); 114 if(fsize && fsize.match(/size/)) 115 i.preventDefault(); 116 else 117 return; 118 119 furl = fhref + '?' + fsize; 120 window.location.href=furl; 121 }); 122 /*$('a.pageResults').click(function(j) { 123 var filter = $(this).attr('data-filter'); 124 var filter_href = $(this).attr('href'); 125 if(filter && filter.match(/f/)) 126 j.preventDefault(); 127 else 128 return; 129 130 filterurl = filter_href + '?' + filter; 131 window.location.href=filterurl; 132 });*/ 133 134 var config = { sensitivity: 2, interval: 100, over: megaHoverOver, timeout: 200, out: megaHoverOut }; 135 $("#menu .part").hoverIntent(config); 136 137 138 $('.dlbimg').hover( 139 function(){ 140 if($(this).attr('altimg')) { 141 this.src = $(this).attr('altimg'); 142 } 143 }, 144 function(){ 145 if($(this).attr('altimg')) { 146 this.src = $(this).attr('mainimg'); 147 } 148 } 149 ); 150}); 151function megaHoverOver(){ $(this).find('.sub').show(); } 152function megaHoverOut(){ $(this).find('.sub').hide(); } 153/* ---------- FORM FORMAT */ 154function formatar(mascara, documento){ 155 var i = documento.value.length; 156 var saida = mascara.substring(0,1); 157 var texto = mascara.substring(i) 158 if (texto.substring(0,1) != saida){ 159 documento.value += texto.substring(0,1); 160 } 161} 162function check_form(){ 163 if($('#clist').val() == '30'){ 164 if($('#cepi').val() == ''){ alert('Digite o seu CEP.'); return false; } 165 if($('#cpfi').val() == ''){ alert('Digite o seu CPF.'); return false; } 166 if($('#numero').val() == ''){ alert('Se nao tiver numero, escrever S/N'); return false; } 167 } 168 return true; 169} 170function check_form2(){ 171 if($('#clist').val() == '30'){ 172 /* if($('#numero').val() == ''){ alert('Se nao tiver numero, escrever S/N'); return false; }*/ 173 } 174 return true; 175} 176/* ---------- BACK TO TOP */ 177$(function() {$(window).scroll(function() {if($(this).scrollTop() != 0) {$('#toTop').fadeIn(); } else {$('#toTop').fadeOut();}});$('#toTop').click(function() {$('body,html').animate({scrollTop:0},800);}); }); 178/* ---------- ROW SELECTIONS */ 179var selected; 180var submitter = null; 181function rowOverEffect(object) { if (object.className == 'moduleRow') object.className = 'moduleRowOver'; } 182function rowOutEffect(object) { if (object.className == 'moduleRowOver') object.className = 'moduleRow'; } 183function popupWindow(url) {window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=500,screenX=150,screenY=30,top=30,left=150')} 184function submitFunction() { submitter = 1; } 185function selectRowEffect(object, buttonSelect) { 186 if (!selected) { selected = $('#defaultSelected'); } 187 if (selected) selected.className = 'moduleRow'; 188 object.className = 'moduleRowSelected'; 189 selected = object; 190 if(document.checkout_address){ 191 if (document.checkout_address.shipping[0]) { 192 document.checkout_address.shipping[buttonSelect].checked=true; 193 } else { 194 document.checkout_address.shipping.checked=true; 195 196 } 197 } 198 if(document.checkout_payment){ 199 if (document.checkout_payment.payment[0]) { 200 document.checkout_payment.payment[buttonSelect].checked=true; 201 } else { 202 document.checkout_payment.payment.checked=true; 203 } 204 } 205} 206function get_frete(total_weight,total){ 207 var get = {'cep':$('#cep').val(),'weight':total_weight,'total':total}; 208 $('#loadingcep').show(); 209 $.ajax({
210 type: "GET", 211 url: 'frete.php', 212 data:get, 213 error:function(data){ 214 $('#loadingcep').hide(); 215 }, 216 success: function(data){ 217 $('#frete').html(data); 218 $('#loadingcep').hide(); 219 } 220 }); 221} 222function get_cep(){ 223 var get = {'cep':$('#cep').val()}; 224 $.ajax({ 225 type: "GET", 226 url: 'cep.php', 227 data:get, 228 error:function(data){ 229 newBullet = 2; 230 decalage = newBullet * -16; 231 $('#cep_bullet').css({'background-position':'right '+decalage+'px'}); 232 }, 233 success: function(data){ 234 data = eval('(' + data + ')'); 235 if(data.resultado == "0"){ 236 //newBullet = 2; 237 $('.zoneslist').hide(); 238 $('#zone_30').show(); 239 $('#state').hide(); 240 }else{ 241 //newBullet = 1; 242 $('.zoneslist').hide(); 243 $('#zone_30').show(); 244 $('#state').hide(); 245 $('#street_address').val(data.logradouro); 246 $('#city').val(data.cidade); 247 $('#suburb').val(data.bairro); 248 $('#postcode').val(data.cep); 249 $('.zone_'+data.uf).attr('selected',true); 250 $('#zone_30').change(); 251 $('#street_address_bullet').css({'background-position':'right -16px'}); 252 $('#city_bullet').css({'background-position':'right -16px'}); 253 $('#suburb_bullet').css({'background-position':'right -16px'}); 254 $('#postcode_bullet').css({'background-position':'right -16px'}); 255 $('#state_bullet').css({'background-position':'right -16px'}); 256 } 257 /*decalage = newBullet * -16; 258 $('#cep_bullet').css({'background-position':'right '+decalage+'px'});*/ 259 } 260 }); 261} 262function checkFrom(inputVal,inputName){ 263 inputVal = this.value; 264 inputName = $(this).attr('name'); 265 newBullet = 2; 266 switch(inputName) 267 { 268 case 'cep': 269 if(inputVal.length >= 9){ get_cep();newBullet = 1; } 270 break; 271 case 'firstname': 272 case 'lastname': 273 case 'postcode': 274 case 'state': 275 if(inputVal.length >= 2){ newBullet = 1; } 276 break; 277 case 'email_address': 278 if(inputVal.length >= 6 && bonmail(inputVal)){ newBullet = 1; } 279 break; 280 case 'street_address': 281 case 'password': 282 if(inputVal.length >= 5){ newBullet = 1; } 283 break; 284 case 'company': 285 if(inputVal.length >= 2){ newBullet = 1; } 286 break; 287 case 'city': 288 if(inputVal.length >= 3){ newBullet = 1; } 289 break; 290 case 'telephone': 291 if(inputVal.length >= 11){ newBullet = 1; } 292 break; 293 case 'country': 294 if(inputVal != '' && inputVal != '-'){ newBullet = 1; } 295 break; 296 case 'confirmation': 297 if(inputVal == $('#password').val()){ newBullet = 1; } 298 break; 299 case 'fax': 300 case 'cpf': 301 if(inputVal.length >= 14){ newBullet = 1; } 302 break; 303 case 'complemento': 304 case 'numero': 305 if(inputVal.length > 0){ newBullet = 1; }else{ newBullet = 0; } 306 break; 307 } 308 decalage = newBullet * -16; 309 $('#'+inputName+'_bullet').css({'background-position':'right '+decalage+'px'}); 310} 311function bonmail(mailteste){ 312 var reg = new RegExp('^[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*[\.]{1}[a-z]{2,6}$', 'i'); 313 if(reg.test(mailteste)){return(true);} else{ return(false);} 314} 315 316var parseQueryString = function( queryString ) { 317 var params = {}, queries, temp, i, l; 318 queries = queryString.split("&"); 319 for ( i = 0, l = queries.length; i < l; i++ ) { 320 temp = queries[i].split('='); 321 params[temp[0]] = temp[1]; 322 } 323 return params; 324}; 325 326 327/** 328* hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+ 329* <http://cherne.net/brian/resources/jquery.hoverIntent.html> 330* 331* @param f onMouseOver function || An object with configuration options 332* @param g onMouseOut function || Nothing (use configuration options object) 333* @author Brian Cherne brian(at)cherne(dot)net 334*/ 335(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.bind('mouseenter',handleHover).bind('mouseleave',handleHover)}})(jQuery);
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.