PageSourceSearch

https://www.roystewart.eu/payment.js?cacheBuster=40247

js roystewart.eu collected 2026-10-06 13:16:49 UTC 1,730 bytes, 40 lines download raw bytes

1
2function paymentOption(id,payment_option,price) {
3	this.id = id;
4	this.payment_option = payment_option;
5	this.price = price;
6	}
7
8function paymentGroup(id,payment_group,options) {
9	this.id = id;
10	this.payment_group = payment_group;
11	this.options = options.split(",");
12}
13// Update the payment submission form with the price and item description
14// When a user selects an option from the list 
15function updateItemValues(form,id) {
16	form.amount.value = paymentOptions[id].price;
17	form.item_name.value = (paymentOptions[id].payment_option).replace(/"/g,'"');
18}
19
20// Create the array of payment options. This contains all options for the site.
21// The options available for a given photo are hardwired into the photo page which
22// is why we can't use the quick browse methods on payment enabled sites
23var paymentOptions = new Object();
24paymentOptions['117367'] = new paymentOption('117367','High Resolution','20.00');
25paymentOptions['117366'] = new paymentOption('117366','Low Resolution','10.00');
26// Create the array of payment groups. If site does not
27// use groups create just one with an ID of 0
28var paymentGroups = new Object();
29paymentGroups[0] = new paymentGroup(0,'Default group','117367,117366');
30// Get payment options field for given payment group
31function getPaymentOptions(payment_groups_id) {	var temp = '';
32	if(paymentGroups[payment_groups_id].options[0] != ''){
33		$.each(paymentGroups[payment_groups_id].options, function(i){
34			paymentOption = paymentOptions[paymentGroups[payment_groups_id].options[i]];
35			temp = temp + '<option  value="' + paymentOption.id + '">' + paymentOption.payment_option + ' - &euro;' + paymentOption.price + '</option>';
36		});
37	}
38	return temp;
39}
40

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.