1$( ".modal-body" ).click(function( event ){event.stopPropagation();});$( ".modal-container" ).click(function( event ){$('.modal-container').removeClass('show-modal');}); 2function obtenerCookie(clave) { 3 4 var elements = document.cookie.split('='); 5 var obligations= elements[1].split('%'); 6 for (var i = 0; i < obligations.length - 1; i++) { 7 var tmp = obligations[i].split('$'); 8 addProduct1(tmp[0], tmp[1], tmp[2], tmp[3]); 9 } 10 11 var name = clave + "="; 12 var ca = document.cookie.split(';'); 13 for(var i=0; i<ca.length; i++) { 14 var c = ca[i]; 15 while (c.charAt(0)==' ') c = c.substring(1); 16 if (c.indexOf(name) == 0) return c.substring(name.length,c.length); 17 } 18 return ""; 19} 20 21function comprobarCookie(clave) { 22 console.log(localStorage.getItem(clave)); 23 var clave = obtenerCookie(clave); 24 if (clave!="") { 25 return true; 26 }else{ 27 return false; 28 } 29} 30function openModal(type,set,name){ 31 if (comprobarCookie("sesion") == false){ 32 type = 1; 33 }else{ 34 type = 2; 35 } 36 var modal1="<section class=modal-container> <div class=modal-body onclick=event.stopPropagation();> <button onclick=closeModal() class=modal-close>X</button> <h2 class=modal-title>Have Fun with you download but first, could you register :) </h2><div class=modal-buttons><div class=button onclick=addParameterToPath('2','facebook')>Register with Facebook </div> <div class=button onclick=addParameterToPath('2','google')>Register with Google </div></div> </div> </section>",modal2="<section class=modal-container> <div class=modal-body onclick=event.stopPropagation();> <button onclick=closeModal() class=modal-close>X</button> <h2 class=modal-title>Great! these icons will make your day but you can get even more ;) </h2> <div class=modal-buttons> <div class=button>Buy full "+set+" bundle $29 </div> <div class=button>Buy full iconShock bundle $39 </div> </div> </div> </section>",modal3="<section class=modal-container> <div class=modal-body onclick=event.stopPropagation();> <button onclick=closeModal() class=modal-close>X</button> <h2 class=modal-title>Great! these icons will make your day but you can get even more ;) </h2> <div class=modal-buttons> <div class=button>Buy "+set+", "+name+" set $29 </div> <div class=button>Buy full "+set+" bundle $29 </div> <div class=button>Buy full iconShock bundle $39 </div> </div> </div> </section>"; 37 38 if (type == 1) { 39 $('.modal-container').html(modal1); 40 }else if (type == 2) { 41 $('.modal-container').html(modal2); 42 }else{ 43 $('.modal-container').html(modal3); 44 } 45 $('.modal-container').addClass('show-modal'); 46} 47 48function openModalBar(type,set,name){ 49 if (comprobarCookie("sesion") == false){ 50 type = 1; 51 }else{ 52 type = 2; 53 } 54 var modal1="<section class=modal-container> <div class=modal-body onclick=event.stopPropagation();> <button onclick=closeModal() class=modal-close>X</button> <h2 class=modal-title>Register or Sing Up to get Started :) </h2><div class=modal-buttons><div class=button onclick=addParameterToPath('2','facebook')>Register with Facebook </div> <div class=button onclick=addParameterToPath('2','google')>Register with Google </div></div> </div> </section>",modal2="<section class=modal-container> <div class=modal-body onclick=event.stopPropagation();> <button onclick=closeModal() class=modal-close>X</button> <h2 class=modal-title>Great! these icons will make your day but you can get even more ;) </h2> <div class=modal-buttons> <div class=button>Buy full "+set+" bundle $29 </div> <div class=button>Buy full iconShock bundle $39 </div> </div> </div> </section>",modal3="<section class=modal-container> <div class=modal-body onclick=event.stopPropagation();> <button onclick=closeModal() class=modal-close>X</button> <h2 class=modal-title>Great! these icons will make your day but you can get even more ;) </h2> <div class=modal-buttons> <div class=button>Buy "+set+", "+name+" set $29 </div> <div class=button>Buy full "+set+" bundle $29 </div> <div class=button>Buy full iconShock bundle $39 </div> </div> </div> </section>"; 55 56 if (type == 1) { 57 $('.modal-container').html(modal1); 58 }else if (type == 2) { 59 $('.modal-container').html(modal2); 60 }else{ 61 $('.modal-container').html(modal3); 62 } 63 $('.modal-container').addClass('show-modal'); 64} 65 66function closeModal(){ 67 $('.modal-container').removeClass('show-modal'); 68} 69var pathArray = window.location.pathname.split( '/' );function addPath(t,e){var o=(window.location.href.split("/").pop(),window.location.href);console.log(o),e.href=window.location.href+"/"+t,$("#title-industry").html(e.text)} 70 71function addParameterToPath(position,parameter){ 72 if (parameter=="facebook" || parameter == "google") { 73 window.location= location.protocol+"//www.iconshock.com/"+parameter; 74 }else{ 75 var newPathname = ""; 76 pathArray[position] = parameter; 77 for(i=1;i<pathArray.length;i++){ 78 newPathname+="/"; 79 newPathname+=pathArray[i]; 80 } 81 alert(newPathname); 82 } 83} 84 85function removeParameterToPath(position){var newPathname="";var lastChar= pathArray[3].length;if (pathArray.length < 5 && pathArray[3].indexOf("-icon") !=-1 && pathArray[3].charAt(lastChar-1)=="s" && pathArray[2]!="all"){pathArray.splice(position,position);}for(i=1;i<pathArray.length;i++){newPathname+="/";newPathname+=pathArray[i];}window.location.pathname=newPathname;} 86 87function categoryFilter(categoryItem,element){ 88 if (pathArray.length==3) { 89 if (categoryItem!="all"){ 90 var urltype = $('#urltype').val(); 91 if(urltype == 'ind') 92 { 93 var newPath = pathArray[1]+'/'+categoryItem+'/'+pathArray[2]; 94 window.location.pathname = newPath; 95 } 96 else 97 {
98 $('#title-category').html(element.text); 99 addParameterToPath(2,categoryItem); 100 } 101 } 102 else 103 { 104 105 } 106 }else{ 107 if(categoryItem=="all") 108 { 109 window.location = location.protocol+"//www.iconshock.com/"+pathArray[3]; 110 } 111 else 112 { 113 $('#title-category').html(element.text); 114 addParameterToPath(2,categoryItem); 115 } 116 } 117} 118 119function industryFilter(industryItem,element){ 120 121 $('#title-industry').html(element.text); 122 if (pathArray.length==3) { 123 124 }else{ 125 $('#title-category').html(element.text); 126 removeParameterToPath(3); 127 } 128 129 if (industryItem!="all") 130 { 131 $('#title-category').html(element.text); 132 var urltype = $('#urltype').val(); 133 if(urltype == 'ind') 134 { 135 addParameterToPath(2,industryItem); 136 } 137 else 138 { 139 addParameterToPath(3,industryItem); 140 } 141 } 142 else 143 { 144 145 } 146 /*if (industryItem=="all") { 147 148 }else{ 149 150 addParameterToPath(3,industryItem); 151 }*/ 152} 153 154function ChangeUrl(t,e){if("undefined"!=typeof history.pushState){var o={Title:t,Url:e};history.pushState(o,o.Title,o.Url)}else alert("Browser does not support HTML5.")} 155function searchPath(){ 156 var valueSearch=$("#inputSearchUserInside").val(); 157 if (valueSearch!="") { 158 var cleanValueSearch=valueSearch.replace(/ +/g,"-"); 159 var superClean= cleanValueSearch.replace(/-$/g,""); 160 var valueFinal= superClean.replace(/[,.;!#$%&/()=?¡<>*_:;,.ñÃ{}+´¿'|^ `~+/,]/gi,''); 161 valueFinal = valueFinal+'-icons-search'; 162 window.location.pathname = valueFinal; 163 } 164} 165 166//function runEnter(t){13==t.keyCode&&searchPath()}function runEnterInside(t){13==t.keyCode&&searchPathInside()}var buttonA=document.getElementById("buttonMenu"),menu=document.getElementById("menu"),opacity=document.getElementById("opacity");buttonAnimated=document.getElementById("nav-icon1");var body=document.getElementsByTagName("body"),flag=0;$(".nav-categories .nav-categories-item").click(function(){$("#title-category").html(this.text),$(this).siblings().removeClass("active"),$(this).addClass("active");var t=$(this).attr("data-category");addParameterToPath(1,t),removeParameterToPath(2)}),$(".nav-industries .nav-categories-item").click(function(){$("#title-industry").html(this.text),$(this).siblings().removeClass("active"),$(this).addClass("active");var t=$(this).attr("data-industry");addParameterToPath(2,t)}
166),buttonA.onclick=function(){menu.classList.toggle("active-menu"),opacity.classList.toggle("open-opacity")},buttonAnimated.onclick=function(){buttonAnimated.classList.toggle("open")},body.onclick=function(){alert("hola")},opacity.onclick=function(){menu.classList.remove("active-menu"),this.classList.remove("open-opacity"),buttonAnimated.classList.remove("open")}; 167 168function getCookie(name) { 169 var cookie = document.cookie; 170 var prefix = name + "="; 171 var begin = cookie.indexOf("; " + prefix); 172 if (begin == -1) { 173 begin = cookie.indexOf(prefix); 174 if (begin != 0) return null; 175 } else { 176 begin += 2; 177 var end = document.cookie.indexOf(";", begin); 178 if (end == -1) { 179 end = cookie.length; 180 } 181 } 182 return unescape(dc.substring(begin + prefix.length, end)); 183} 184 185 186$(document).ready(function(){ 187 //Change Color index 188 $('.change_color').click(function(){ 189 var color = $(this).css('fill'); 190 $('#icon_color_change').css('fill',color); 191 192 var disx = $(this).css('x'); 193 var disxx = $(this).attr('x'); 194 $('.color_pick').css('x',disx); 195 $('.color_pick').attr('x',disxx); 196 }); 197 198 //Change Style index 199 $('.change_icon_sel').click(function(){ 200 $(this).children('path').css('fill','#629fbd'); 201 $(this).siblings().children('path').css('fill','rgb(79, 79, 84)'); 202 203 var icono = $(this).attr('display-icon'); 204 var idicon = document.getElementById(icono); 205 206 $(".icon_shield_display").fadeOut("slow"); 207 $('#'+icono).fadeIn("slow"); 208 //$(".icon_shield_display").removeClass("displaygiro"); 209 210 211 }); 212 213 //Change Addon index 214 $('.addon_sel').click(function(){ 215 $(this).children('path').css('fill','#629fbd'); 216 $(this).siblings().children('.addon_sel path').css('fill','rgb(0, 0, 0)'); 217 218 $('#no_addons_obj').css('opacity','0'); 219 var addon = $(this).attr('data-addon'); 220 221 for(e=0;e<=8;e++) 222 { 223 document.getElementsByClassName("addon_display")[e].classList.remove('shake'); 224 } 225 226 var addonid = document.getElementById(addon); 227 addonid.classList.add('shake'); 228 //var addonclass = document.getElementsByClassName('getElementsByClassName'); 229 }); 230}); 231 232
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.