PageSourceSearch

https://www.iffo.com/sites/iffo/themes/iffo_theme/js/script.js?v=10.6.12

js iffo.com collected 2026-10-02 06:50:45 UTC 2,792 bytes, 81 lines download raw bytes

1var currentURL = window.location.pathname;
2if(document.querySelector("#slide-desktop-overlay .register-button")){
3	var registerBtn = document.querySelector("#slide-desktop-overlay .register-button");
4}else{
5	var registerBtn = '';
6}
7
8var spanishTrans = (currentURL.match(/\/es/g) || []).length;
9var option = document.createElement("option");
10var text = '- Select -';
11option.text = text;
12
13if(registerBtn !== ''){
14	if(spanishTrans != ""){
15	registerBtn.innerHTML = 'Inscripcion <span class="fish"></span>';
16	}else{
17	registerBtn.innerHTML = 'Registration <span class="fish"></span>';
18	}
19}
20
21if ((currentURL.indexOf('/registration') !== -1 || currentURL.indexOf('/inscripcion') !== -1) && registerBtn !== ''){
22	if(currentURL.indexOf('/inscripcion') !== -1){
23		registerBtn.innerHTML = 'Inscríbase ahora <span class="fish"></span>';
24	}else{
25		registerBtn.innerHTML = 'Register Now <span class="fish"></span>';
26	}
27	var select = document.querySelector("#edit-country");
28	if(select != null){
29		select.add(option, select[0]);
30		var options = Array.from(select.options);
31		var optionToSelect = options.find(item => item.text ===text);
32		select.value = optionToSelect.value;
33	}
34}else{
35	if(registerBtn !== ''){
36		//var slashCount = (currentURL.match(/\//g) || []).length;
37		var validURL = currentURL.split("/");
38		//alert(validURL[1]);
39		if(spanishTrans != ""){
40			registerBtn.href = '/es/'+validURL[2]+'/inscripcion';
41		}else{
42			registerBtn.href = '/'+validURL[1]+'/registration';
43		}
44	}
45}
46
47var regAndCondCount = (currentURL.match(/\/registration-and-conditions/g) || []).length;
48var regAndCondSpanishCount = (currentURL.match(/\/inscripcion-y-condiciones/g) || []).length;
49var regFeeCount = (currentURL.match(/\/registration-fees/g) || []).length;
50var regFeeSpanishCount = (currentURL.match(/\/cuota-de-inscripcion/g) || []).length;
51if(regAndCondCount >= 1 || regFeeCount >= 1 || regAndCondSpanishCount >= 1 || regFeeSpanishCount >= 1){
52	if(spanishTrans != ""){
53		registerBtn.innerHTML = 'Inscripcion <span class="fish"></span>';
54	}else{
55		registerBtn.innerHTML = 'Registration <span class="fish"></span>';
56	}
57	var validURL = currentURL.split("/");
58	if(spanishTrans != ""){
59		registerBtn.href = '/es/'+validURL[2]+'/inscripcion';
60	}else{
61		registerBtn.href = '/'+validURL[1]+'/registration';
62	}
63}
64
65/* CODE TO CLOSE MODAL BOX */
66var modalCloseBtn = document.querySelector('.modal-close');
67var modalWrapper = document.querySelector('.modal-wrapper');
68
69if (modalCloseBtn) {
70	modalCloseBtn.addEventListener("click", function() {
71	  modalWrapper.style.display = "none";
72	});
73	//modalCloseBtn.addEventListener("click", closeModal('.modal-wrapper'));
74}
75
76function closeModal(element) {
77	var elementToHide = document.querySelector(element);
78	if (elementToHide != ""){
79		elementToHide.style.display = "none";
80	}
81}

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.