PageSourceSearch

https://cmumed.org/wp-content/themes/CMU_19/js/dscode-apply.js?v=3

js cmumed.org collected 2026-10-02 20:35:40 UTC 585 bytes, 24 lines download raw bytes

1$(document).ready(function() {
2	$('#citizenship').on('change', function(e) {
3		var citizenship = $(e.target).val();
4
5		var phonenumber = $('#phoneNumber').val();
6		phonenumber = phonenumber.substr(0, 2);
7		
8		var isFulfillCondition = false;
9		
10		if (phonenumber && (phonenumber[0] === '1' || phonenumber === '+1')) {
11			isFulfillCondition = true;
12		}
13
14		var dscode = 'ATM25';
15		// var ctz = ['US', 'CA', 'SA', 'ZA'];
16		var ctz = ['US', 'CA'];
17		if (ctz.some(z => z == citizenship) && isFulfillCondition) {
18			dscode = 'SBCOD';
19		}
20
21		window.applyForm.setDiscountCode(dscode);
22
23	});
24});

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.