Advertisement
Similar Games
Play Now!
Candy Xmas
Advertisement
Candy Xmas
Xmas is coming. Santa need candys for childrens. Help Santa to collect more candys to all childrens but be carefull, snow Yeti keep that candys for them. Good luck!
Advertisement
&description_url=" + encodeURIComponent(descriptionURL) + "&correlator=1732447020";
function getcookie(name) {
var cookie_start = document.cookie.indexOf(name);
var cookie_end = document.cookie.indexOf(";", cookie_start);
return cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end : document.cookie.length)));
}
function setcookie(cookieName, cookieValue, seconds, path, domain, secure) {
var expires = new Date();
expires.setTime(expires.getTime() + seconds);
document.cookie = escape(cookieName) + '=' + escape(cookieValue) +
(expires ? '; expires=' + expires.toGMTString() : '') +
(path ? '; path=' + path : '/') +
(domain ? '; domain=' + domain : '') +
(secure ? '; secure' : '');
}
function ClearPlayedGames() {
setcookie("lastplayedgames", "", -360000, "/");
return false;
}
function PlayedGames(game_id) {
var playedgames = getcookie("playedgames");
if (playedgames.indexOf("," + game_id + ",") > -1) {
playedgames = playedgames.replace("," + game_id + ",", '');
} else {
if (playedgames == "" || playedgames == ",") {
playedgames = "," + game_id + ",";
} else {
playedgames = "," + game_id + "," + playedgames;
}
}
setcookie("playedgames", playedgames, 25920000000, "/");
}
$(document).ready(function() {
PlayedGames(145);
});
window.setTimeout(function() {
__upGame_rx8(145)
}, 2000);
var descriptionURL = "http://www.avodarta.com/game/candy-xmas";
var iframe = '
';
$(document).ready(function() {
$('.gamePlay-icon, .gamePlay-button, #gamePlay-content').click(function(e) {
SkipAdAndShowGame();
// $('#adsContainer').show();
$("#gamePlay-content").hide();
// $("#adsContainer").hide();
$("#game-box").html(iframe);
// $("#game-preloading").show();
// setTimeout(
// function()
// {
// $("#game-preloading").hide();
// PreRollAd.start();
// }, 550);
});
});
function SkipAdAndShowGame() {
$("#adsContainer").hide();
$("#game-box").html(iframe);
}
$(function() {
$('.ad300').eq(0).show();
if ($('.ad300').size() > 1) {
setInterval(function() {
var first = $('.ad300').eq(0);
first.hide();
$('.ad300').last().after(first);
$('.ad300').eq(0).fadeIn();
}, 3000);
}
$('.adsmall').eq(0).show();
if ($('.adsmall').size() > 1) {
setInterval(function() {
var first = $('.adsmall').eq(0);
first.hide();
$('.adsmall').last().after(first);
$('.adsmall').eq(0).fadeIn();
}, 3000);
}
})