PageSourceSearch

https://safety-swan.eu/js/td.js?v1.1

js safety-swan.eu collected 2026-10-07 18:47:45 UTC 1,912 bytes, 80 lines download raw bytes

1function postcodeSpacer(p) {
2	if(p.indexOf(" ") == -1) {
3		var _sp = p.substring(0,p.length -3);
4		var _slp = p.substring(p.length -3);
5		p = _sp+" "+_slp;
6	}
7	return p;
8}
9function ok(v) {
10	return (v && v != 'null' && v != '');
11}
12function createPickAddress(a) {
13	var r = '';
14	if(ok(a.address1)) {
15		r += a.address1;
16		r += ', ';
17	}
18	if(ok(a.district)) {
19		r += a.district;
20		r += ', ';
21	}
22	if(ok(a.city)) {
23		r += a.city;				
24	}
25	return r;
26}
27function getA(id) {
28	if(addressResults) {
29		$.each(addressResults, function(i, ar){
30			$.each(ar, function(ad, a){
31				if(a.id == id) {
32					popA(a);
33					return false;
34				}
35			});
36		});
37	}
38}
39function popA(a) {
40	var f = document.forms[1];
41	//if(ok(a.housenumber)) f.housenumber.value = a.housenumber;
42	//if(ok(a.building)) f.building.value = a.building;
43	if(ok(a.address1)) f.address1.value = a.address1;
44	if(ok(a.district)) f.district.value = a.district;
45	if(ok(a.city)) f.city.value = a.city;
46	if(ok(a.state)) f.state.value = a.state;
47	if(ok(a.zip)) f.zip.value = a.zip;				
48}	
49function getLocale(lang) {
50	switch(lang) {
51		case("al"): return "al_AL";
52		case("ba"): return "ba_BA";
53		case("bg"): return "bg_BG";
54		case("cz"): return "cs_CZ";
55		case("dk"): return "da_DK";
56		case("de"): return "de_DE";
57		case("el"): return "el_GR";
58		case("en"): return "en_GB";
59		case("es"): return "es_ES";
60		case("fi"): return "fi_FI";
61		case("fr"): return "fr_FR";
62		case("he"): return "he_IL";
63		case("hr"): return "hr_HR";
64		case("hu"): return "hu_HU";
65		case("is"): return "is_IS";
66		case("it"): return "it_IT";
67		case("mk"): return "mk_MK";
68		case("nl"): return "nl_NL";
69		case("no"): return "no_NO";
70		case("pl"): return "pl_PL";
71		case("pt"): return "pt_PT";
72		case("ro"): return "ro_RO";
73		case("rs"): return "sr_RS";
74		case("ru"): return "ru_RU";
75		case("sk"): return "sk_SK";
76		case("se"): return "sv_SE";
77		case("tr"): return "tr_TR";
78		case("ua"): return "ua_UA";
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.