www.premio-per-te.com Open in urlscan Pro
2606:4700::6812:7d2  Public Scan

Submitted URL: http://www.premio-per-te.com/wingame/63/js/sweepstake.js?2024-06-28.4
Effective URL: https://www.premio-per-te.com/wingame/63/js/sweepstake.js?2024-06-28.4
Submission: On July 02 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

window.addEvent('domready', function() {
	/* mapper defines which anchor tags open in either iframe or layer */
	new iframe_selector({
		selectors: {
			'.formrow_optin .poplink': {
				'type': 'iframe'
			},
			'#footer': {
				'type': 'iframe'
			},
			'#optin_layer a.poplink': {
                'type': 'iframe'
			}
		}
	});

	add_pop_iframe_closer_events();

	if(current_page == 'page_pregame') {
		initialize_quiz();
	}

	if(current_page == 'page_reg_half' || current_page == 'page_reg_full'){
		var this_page = current_page.replace('page_','');

		$$('.formrow_title label').addEvent('click', function() {
			$$('.formrow_title label').removeClass('active');
			$(this).addClass('active');
		});

		$$('select').each(function(el) {
			if(el.get('data-value')) {
			  el.set('value', el.get('data-value'));
			}
		});

		if ($$('#optin_layer').length > 0) {
			var optinlayer = new Optin_layer({
				form_id: 'form_'+this_page
			});
		}

		mooli = new Moolidator_Lite({
			'form_id': 'form_'+this_page,
			'debug' : false,
			'submit_button_id': 'submit_'+this_page,
			'rules': moolidator_lite_rules,
			'countries': moolidator_lite_countries
		});
		mooli.addEvents({
			'moolidator_lite_submit': function() {
				if(optinlayer){
					if(optinlayer.test_checkboxes() === false) {
						optinlayer.show();
					} else {
						if(page_submitted === false) {
							page_submitted = true;
							$('form_'+this_page).submit();
						}
					}
				} else {
					if(page_submitted === false) {
						page_submitted = true;
						$('form_'+this_page).submit();
					}
				}          
                return false;
            }
		});

		mooli.options.rules['default'].wingame_special_agb2 = {};
        mooli.options.rules['default'].wingame_special_agb2 = mooli.options.rules['default'].agb;
		mooli.options.rules['default'].firstname.negative.push(/^Nome$/i);
        mooli.options.rules['default'].lastname.negative.push(/^Cognome$/i);
		mooli.options.rules['default'].city.negative.push(/^Località$/i);
		mooli.options.rules.it.street.negative.push(/^Nome via$/i);

	}
});