1 $(document).ready(function () { 2 var id_product = GetParameterValues('id_product'); 3 var add = GetParameterValues('add'); 4 if (id_product !== undefined && add !== undefined ){ 5 if (id_product.startsWith('{{') && id_product.endsWith('}}')) { 6 var id = id_product.replaceAll('{{', ''); 7 id = id.replaceAll('}}', ''); 8 window.location.replace("https://montessoriparatodos.es/carro-de-la-compra?id_product="+id+"&add=1"); 9 } 10 } 11 function GetParameterValues(param) { 12 var url = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); 13 for (var i = 0; i < url.length; i++) { 14 var urlparam = url[i].split('='); 15 if (urlparam[0] == param) { 16 return urlparam[1]; 17 } 18 } 19 } 20});
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.