PageSourceSearch

https://www.catenlunasinstele.ro/catalog/view/javascript/fbcapi.js

js catenlunasinstele.ro collected 2026-10-08 08:09:30 UTC 3,578 bytes, 79 lines download raw bytes

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

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.