PageSourceSearch

https://joins.italianshotclub.com/jscript/site.js

js italianshotclub.com collected 2026-09-28 15:30:02 UTC 1,907 bytes, 83 lines download raw bytes

1var pressed_option;
2var pressed_cascade;
3
4
5/*
6	NATS-1627	- added a call to the display_xsells() function
7
8	NATS-2147	- added refreshXsells variable to control the display_xsells() call
9*/
10function press_option(element, refreshXsells=0) {
11	if (pressed_option != undefined) {
12		remove_prev(pressed_option);
13	}
14
15	$("#" + element).removeClass("button");
16	$("#" + element).addClass("pressed-button");
17
18	element_parts = element.split('-');
19	val = element_parts[1];
20	$("#signup-option").val(val);
21
22	if ((pressed_option != element) && (refreshXsells > 0)) {
23		display_xsells();
24	}
25
26	pressed_option = element;
27}
28
29
30/*
31	NATS-1627	- added a call to the display_xsells() function
32
33	NATS-2147	- added refreshXsells variable to control the display_xsells() call
34*/
35function press_cascade(element, refreshXsells=0) {
36	if (pressed_cascade != undefined) {
37		remove_prev(pressed_cascade);
38	}
39
40	$("#" + element).removeClass("button");
41	$("#" + element).addClass("pressed-button");
42	
43	element_parts = element.split('-');
44	val = element_parts[1];
45	$("#signup-cascade").val(val);
46
47	if ((pressed_cascade != element) && (refreshXsells > 0)) {
48		display_xsells();
49	}
50
51	pressed_cascade = element;
52}
53
54
55function remove_prev(pressed) {
56	$("#" + pressed).removeClass("pressed-button");
57	$("#" + pressed).addClass("button");
58}
59
60
61/*
62	NATS-1627	- created this function
63*/
64function display_xsells() {
65	$('#xsells').html('<center><img src="/nats_images/processing.gif"/></center>');
66
67	optionID = $("#signup-option").val();
68	if (optionID == undefined) optionID = 0;
69
70	cascadeID = $("#signup-cascade").val();
71	if (cascadeID == undefined) cascadeID = 0;
72
73	if (typeof natsCode == 'undefined') natsCode = '';
74
75	if (optionID && cascadeID && natsCode) {
76		$.ajax({
77			url: 'signup_ajax.php?action=xsells&nats=' + natsCode + '&optionid=' + optionID + '&cascade=' + cascadeID,
78			success: function (data) {
79				$('#xsells').html(data);
80			}
81		});
82	}
83}

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.