100-ledowe-solary-pl.com Open in urlscan Pro
63.83.76.230  Public Scan

Submitted URL: http://100-ledowe-solary-pl.com/mobile/js/main.js
Effective URL: https://100-ledowe-solary-pl.com/mobile/js/main.js
Submission: On November 01 via api from US — Scanned from PL

Form analysis 0 forms found in the DOM

Text Content

	ua = navigator.userAgent.toLowerCase(); 
	isIE = ((ua.indexOf("msie") != -1) );
	isIE6 = ((ua.indexOf("msie 6.0") != -1) );
	isIE7 = ((ua.indexOf("msie 7.0") != -1) );
	isOPERA = ((ua.indexOf("opera") != -1) );
	isFF = ((ua.indexOf("firefox") != -1) );
	isSafari = ((ua.indexOf("safari") != -1) );


	//-----------------------------------------------
	function debug(txt)
	{
		try {
			console.debug(txt);
		}
		catch(e){
		
		}
	}



   

  
	function getCookie(cname) {
		var name = cname + "=";
		var ca = document.cookie.split(';');
		for(var i=0; i<ca.length; i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1);
			if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
		}
		return null;
	}

	


	function sendRequest(url) {
		(new Image).src = url;
	}

	//--------------- stat--------------------------------





	$(document).ready(function(){

		$.urlParam = function(name){
			var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
			if (results==null){
			   return null;
			}
			else{
			   return results[1] || 0;
			}
		}


		var x = getCookie("sid");
		
		
		if ($.urlParam('sid') != null )
		{
			var sid = $.urlParam('sid');
			
			document.cookie="sid="+sid;
			if ($.urlParam('id') != null )
			{
				document.cookie="sub="+$.urlParam('id');
			}
			
			/*
			$.getJSON("https://api.ipify.org/?format=json", function (data) {
				//http://163.172.32.18/statNext.php
				sendRequest("http://ftrolley.com/report.php?sid="+sid+"&event=click&host="+window.location.host+"&ip="+data.ip);
				//debug("CALL#:http://185.140.108.3/report.php?sid="+sid+"&event=click&host="+window.location.host+"&ip="+data.ip);
				
			});
			*/

		} else if ($.urlParam('id') != null)
		{
			document.cookie="sub="+$.urlParam('id');
			window.location.replace("http://"+window.location.host);
		}

		
	});