<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// COOKIE
function setCookie(cname, cvalue, exdays) {
	var d = new Date();
	d.setTime(d.getTime() + (exdays*24*60*60*1000));
	var expires = "expires="+ d.toUTCString();
	document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function getCookie(cname) {
	var name = cname + "=";
	var decodedCookie = decodeURIComponent(document.cookie);
	var ca = decodedCookie.split(';');
	for(var i = 0; i &lt;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 "";
}
// MESSAGE
function message(mes) {
	$("body").append('&lt;div class=message&gt;'+mes+'&lt;/div&gt;');
}
// Show ads every time
var times = 1;
function letAds() {
	if (times &lt;= 3) {
		AD_COUNTDOWN = 15;
		AD_COUNTDOWN_TOSKIP = 6;
		//document.getElementById("outsome").innerHTML += AD_COUNTDOWN;
		document.getElementById("preloads").style.display = "block";
		document.getElementById("prban").style.marginTop = "12%";
		document.getElementById("prban").style.marginBottom = "6%";
		document.getElementById("skip").style.display = "none";
		document.getElementById("count").style.display = "block";
		document.getElementById("count").innerHTML = 5;
		setTimeout("countdown()",1000);
		setTimeout("countdown2()",1000);
		times++;
	}
}


// EARN COINS
function earnCoins(amount, goal) {
	var current = Math.floor(document.getElementById("usercoins").innerHTML);
	var now = current;
	function addCoins() {
		if (now != amount+current) {
			now += 1;
			document.getElementById("usercoins").innerHTML = now;
			$("body").append('&lt;div class=coin_moves&gt;&lt;/div&gt;');
			setTimeout(addCoins, 100);
			var audio = new Audio('../../images/sound/coin.mp3');
			try {audio.play();} catch {}
		}
		else {
			$('.coin_moves').remove();
			document.getElementById("pop_coins").classList.add('fade');
			setTimeout(function(){$('#pop_coins').remove();}, 3000);
		}
	}
	setTimeout(addCoins, 500);
	$("body").append('&lt;div id=pop_coins&gt;&lt;div&gt;'+goal+'&lt;/div&gt;&lt;p&gt;'+amount+'&lt;/p&gt;&lt;/div&gt;');

	//var iframe = document.getElementById("capthaframe");
	//recaptchaResponse = iframe.contentWindow.document.getElementById('g-recaptcha-response').value;
	//$.ajax({url: root+"script/earnCoins.php?amount="+amount+'&amp;g-recaptcha-response='+recaptchaResponse, success: function(respond) {}});
	$.ajax({url: root+"script/earnCoins.php?amount="+amount, success: function(respond) {}});

    var audio = new Audio('../../images/sound/award.mp3');
	audio.play();
}


// --- GAMEFIN --- &gt;
function gfMenu(on) {
	var button = document.getElementById("bm");
	var menu = document.getElementById("gfmenu");
	if (on == true) {
		menu.style.display = "none";
		button.style.display = "block";
	}
	else if (menu.style.display != "block") {
		menu.style.display = "block";
		button.style.display = "none";
	}
	else {
		menu.style.display = "none";
		button.style.display = "block";
	}
}

function vote(a) {
	var tit = document.getElementById("gameTit").innerHTML;
	$.ajax({
		url: root+"script/rateGame.php?tit="+tit+"&amp;vote="+a,
		success: function(respond) {
			var out_txt = document.getElementById("voteoutput");
            if (respond == 7) {
            	message(LANG[13]);
            }
            else if (respond == 6) {
                message(LANG[14]);
            }
            else {
            	var rate = document.getElementById("rate");
            	rate.innerHTML = respond;
            	message(LANG[15]);
            	if (a == 'like') {
            	    document.getElementById('likebut').classList.add('but_like_on');
            	}
            	else if (a == 'dislike') {
            	    document.getElementById('disbut').classList.add('but_dislike_on');
            	}

            	// Prize
            	var votedToday = Math.floor(getCookie('votedToday'));
            	if (votedToday &lt; 15) {
            		earnCoins(3,LANG[24]);
            		setCookie('votedToday', votedToday+1, 1);
            	}
            }
		}
	});
}
function addToFav(tit) {
	//var tit = document.getElementById("gameTit").innerHTML;
	$.ajax({
		url: root+"script/addToFav.php?tit="+tit,
		success: function(respond) {
            if (respond == 1) {
            	message(LANG[27]);
				document.getElementById("favbut").classList.remove('but_fav');
				document.getElementById("favbut").classList.add('but_fav_on');

				// Prize
            	var favsToday = Math.floor(getCookie('favsToday'));
            	if (favsToday &lt; 1) {
            		earnCoins(3,LANG[25]);
            		setCookie('favsToday', favsToday+1, 1);
            	}
            }
            else if (respond == 0) {
                message(LANG[16]);
                document.getElementById("favbut").classList.remove('but_fav_on');
				document.getElementById("favbut").classList.add('but_fav');
            }
            else if (respond == 2) {
                message(LANG[17]+', &lt;a href="'+root+'login"&gt;'+LANG[18]+'&lt;/a&gt; '+LANG[19]);
            }
            else {
                message(LANG[20]);
            }
		}
	});
}

// Load More
var alreadyLoadedChars = 9;
var alreadyLoadedGames = 9;
var alreadyLoadedCats = 9;
var amount = 9;
function loadMore(what, button) {
	button.innerHTML = '&lt;div class=loading&gt;&lt;/div&gt;';

	if (what == 'chars') {
		$.ajax({
			url: root+"script/loadMore.php?q="+"&amp;start="+Math.round(alreadyLoadedChars)+"&amp;what="+what+"&amp;amount="+amount,
			success: function(data) {
				button.innerHTML = LANG[22];
				$("#gfchars").append(data);
				alreadyLoadedChars += amount;
				if (data=="") {button.style.display = "none";}
			}
		});
	}
	else if (what == 'games') {
		$.ajax({
			url: root+"script/loadMore.php?q="+"&amp;start="+Math.round(alreadyLoadedGames)+"&amp;what="+what+"&amp;amount="+amount,
			success: function(data) {
				button.innerHTML = LANG[22];
				$("#gfgames").append(data);
				alreadyLoadedGames += amount;
				if (data=="") {button.style.display = "none";}
			}
		});
	}
	else if (what == 'cats') {
		$.ajax({
			url: root+"script/loadMore.php?q="+"&amp;start="+Math.round(alreadyLoadedCats)+"&amp;what="+what+"&amp;amount="+amount,
			success: function(data) {
				button.innerHTML = LANG[22];
				$("#gfcats").append(data);
				alreadyLoadedCats += amount;
				if (data=="") {button.style.display = "none";}
			}
		});
	}
}

function fullScreen() {
	elem = document.getElementById("gfgame");
	document.getElementById("cfs").style.display = "block";
	if (elem.requestFullscreen) {
		elem.requestFullscreen();
	} else if (elem.mozRequestFullScreen) { /* Firefox */
		elem.mozRequestFullScreen();
	} else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
		elem.webkitRequestFullscreen();
	} else if (elem.msRequestFullscreen) { /* IE/Edge */
		elem.msRequestFullscreen();
	}
}

function cancelFullScreen() {
	document.getElementById("cfs").style.display = "none";
	if (document.exitFullscreen) {
		document.exitFullscreen();
	} else if (document.mozCancelFullScreen) { /* Firefox */
		document.mozCancelFullScreen();
	} else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
		document.webkitExitFullscreen();
	} else if (document.msExitFullscreen) { /* IE/Edge */
		document.msExitFullscreen();
	}
}

// PRIZES
/*function timeOnSite() {
	var timeToday = Math.floor(getCookie('timeToday'));
	var timeNow = Date.now();

	if (timeToday == 0) {
		timeToday = timeNow;
		setCookie('timeToday', timeToday, 1);
	}
	else if (timeNow-timeToday &gt;= 60000 &amp;&amp; getCookie('timePrize') &lt; 1) {
		earnCoins(5,"play games for 1 minute");
		setCookie('timePrize', 1, 1);
	}
	else if (timeNow-timeToday &gt;= 300000 &amp;&amp; getCookie('timePrize') &lt; 2) {
		earnCoins(10,"play games for 2 minutes");
		setCookie('timePrize', 2, 1);
	}
	else if (timeNow-timeToday &gt;= 3600000 &amp;&amp; getCookie('timePrize') &lt; 3) {
		earnCoins(25,"play games for 1 hour");
		setCookie('timePrize', 3, 1);
	}
}*/
function gamesPlayed() {
	var playsToday = Math.floor(getCookie('playsToday'));
	if (playsToday &gt;= 2 &amp;&amp; getCookie('playsPrize') &lt; 1) {
		earnCoins(3,"3 "+LANG[26]);
		setCookie('playsPrize', 1, 1);
	}
	else if (playsToday &gt;= 4 &amp;&amp; getCookie('playsPrize') &lt; 2) {
		earnCoins(5,"5 "+LANG[26]);
		setCookie('playsPrize', 2, 1);
	}
	else if (playsToday &gt;= 6 &amp;&amp; getCookie('playsPrize') &lt; 3) {
		earnCoins(10,"10 "+LANG[26]);
		setCookie('playsPrize', 3, 1);
	}
	setCookie('playsToday', playsToday+1, 1);
}
// Some button functions
function reload() {
	window.location.reload();
}
function back() {
	window.history.go(-1);
}
function home() {
	window.location.href = rootla;
}
function sound() {
	var audio = new Audio('../../images/sound/blank.mp3');
	try {audio.play();} catch {}
	document.getElementById("sound").style.display = "none";
}

// Remove google badge
document.addEventListener('DOMContentLoaded', () =&gt; {
const observer = new MutationObserver(() =&gt; {
	document.querySelector(".google-revocation-link-placeholder")?.remove();
});
observer.observe(document.body, {
	childList: true,
});
});


// EMBED
function embed(tit) {
    // Ð’Ð¸Ð¼Ð¸ÐºÐ°Ñ”Ð¼Ð¾ Ð¿Ñ€Ð¾ÐºÑ€ÑƒÑ‚ÐºÑƒ Ð½Ð° Ñ€Ñ–Ð²Ð½Ñ– HTML Ñ– body
    document.documentElement.style.overflow = 'hidden';
    document.body.style.overflow = 'hidden';
    document.documentElement.style.margin = '0';
    document.body.style.margin = '0';

    $.ajax({
        url: root + "script/embed.php?tit=" + tit,
        success: function(data) {
            // Ð¡Ñ‚Ð²Ð¾Ñ€ÑŽÑ”Ð¼Ð¾ ÐµÐ»ÐµÐ¼ÐµÐ½Ñ‚ embed
            const embedElement = document.createElement('iframe');
            embedElement.src = data;
            embedElement.style.position = 'absolute';
            embedElement.style.top = '0';
            embedElement.style.left = '0';
            embedElement.style.width = '100%';
            embedElement.style.height = '100%';
            embedElement.style.border = '0';
            embedElement.setAttribute('scrolling', 'no'); // Ð’Ð¸Ð¼ÐºÐ½ÐµÐ½Ð½Ñ Ð¿Ñ€Ð¾ÐºÑ€ÑƒÑ‚ÐºÐ¸ Ð² embed

            // Ð”Ð¾Ð´Ð°Ñ”Ð¼Ð¾ embed Ð´Ð¾ body
            document.body.appendChild(embedElement);
        }
    });
}


// LOAD
window.onload = function() {
	//setInterval(timeOnSite, 5000); // Check Time on Site
	//setInterval(letAds, 90000); // Show ads every time
	if (window.location.href.indexOf("/gamefin") &gt; -1) {setTimeout(gamesPlayed, 1000);} // gamePlays
};

</pre></body></html>