1function OCTgeturlparam(param) { 2 var urlParams = new URLSearchParams(window.location.search); 3 return urlParams.get(param) !== null ? param+'='+urlParams.get(param) : ''; 4} 5var OCT4_GET_LANG = ''; 6var gaugafenhecm_ur1201 = 'index.php?route=module/gaugafenhecm/'; 7var gaugafenhecm_url230 = 'index.php?route=extension/module/gaugafenhecm/'; 8var gaugafenhecm_url401 = 'index.php?route=extension/gaugafenhecm/module/gaugafenhecm|'; 9var gaugafenhecm_url402 = 'index.php?route=extension/gaugafenhecm/module/gaugafenhecm.'; 10 11$(document).delegate('#button-cart, [data-quick-buy]', 'click', function() { 12 postdata = $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea') 13 14 if($('#product .button-group-page').length) { 15 /*for J3*/ 16 postdata = $( 17 '#product .button-group-page input[type=\'text\'], #product .button-group-page input[type=\'hidden\'], #product .button-group-page input[type=\'radio\']:checked, #product .button-group-page input[type=\'checkbox\']:checked, #product .button-group-page select, #product .button-group-page textarea, ' + 18 '#product .product-options input[type=\'text\'], #product .product-options input[type=\'hidden\'], #product .product-options input[type=\'radio\']:checked, #product .product-options input[type=\'checkbox\']:checked, #product .product-options select, #product .product-options textarea, ' + 19 '#product select[name="recurring_id"]' 20 ); 21 } 22 $.ajax({ 23 url: gaugafenhecm_url230 + 'addtocart' + OCT4_GET_LANG, 24 async: true, 25 type: 'post', 26 dataType: 'json', 27 data: postdata, 28 success: function(json) { 29 if (json['script']) { 30 $('body').append(json['script']); 31 } 32 } 33 }); 34}); 35$(document).delegate("[onclick*='cart.add'], [onclick*='addToCart'], button[formaction*='checkout/cart.add']", 'click', function() { 36 if($(this).closest('form').find("[name*='product_id']").length) { 37 var product_id = $(this).closest('form').find("[name*='product_id']").val(); 38 var quantity = $(this).closest('form').find("input[name*='quantity']").val(); 39 } else if($(this).attr('onclick')) { 40 var product_id = $(this).attr('onclick').match(/[0-9]+/).toString(); 41 var quantity = $(this).closest('.product-thumb').find("input[name*='quantity']").val(); 42 } 43 quantity = quantity || 1; 44 45 $.ajax({ 46 url: gaugafenhecm_url230 + 'addtocart' + OCT4_GET_LANG, 47 async: true, 48 type: 'post', 49 dataType: 'json', 50 data: {product_id:product_id,quantity:quantity}, 51 success: function(json) { 52 if (json['script']) { 53 $('body').append(json['script']); 54 } 55 } 56 }); 57}); 58$(document).delegate("[onclick*='wishlist.add'],[onclick*='addToWishList'], button[formaction*='account/wishlist']", 'click', function() { 59 if($(this).closest('form').find("[name*='product_id']").length) { 60 var product_id = $(this).closest('form').find("[name*='product_id']").val(); 61 var quantity = $(this).closest('form').find("input[name*='quantity']").val(); 62 } else if($(this).attr('onclick')) { 63 var product_id = $(this).attr('onclick').match(/[0-9]+/).toString(); 64 var quantity = $(this).closest('.product-thumb').find("input[name*='quantity']").val(); 65 } 66 quantity = quantity || 1; 67 68 $.ajax({ 69 url: gaugafenhecm_url230 + 'addtowishlist' + OCT4_GET_LANG, 70 async: true, 71 type: 'post', 72 dataType: 'json', 73 data: {product_id:product_id,quantity:quantity}, 74 success: function(json) { 75 if (json['script']) { 76 $('body').append(json['script']); 77 } 78 } 79 }); 80});
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.