Опубліковано в державі France - Соціальна взаємодія та розваги - 01 Apr 2016 04:21 - 2
Howdy ! Deer lectors, as you saw in this great 1s April day, eRevollution didn't avoid the famous April Fools' Day, for who don't know the April Fools' Day it's celebrated every year on 1 April by playing practical jokes and spreading hoaxes as Wikipedia said.
You thought the joke would happen on the fresh new training ground ? Hell no, this would be too easy ! The joke reside in the leprechauns' gold :
«Every 200ms (0.2s) your gold gain 0.1 gold, but it's only esthetic that is to say you can't use it.»
jQuery(document).ready(function(){
var a_gold = your_start_gold
var updateGoldApril = setInterval(function(){goldApril()}, 200);
function goldApril() {
a_gold = a_gold + 0.01;
a_str = a_gold.toFixed(2);
//a_gold = a_gold.toString().replace('.', '.');
jQuery("#goldApril").empty();
jQuery("#goldApril").append(""+a_str+"");
}
});
Vous avez pensé que la plaisanterie arriverait sur le tout nouveau terrain d'entraînement ? Et non ! La plaisanterie réside dans l'or des leprechauns :
Pour ceux qui aiment le Java-scrip-t ? Voici le code :
jQuery(document).ready(function(){
var a_gold = {your_start_gold};
var updateGoldApril = setInterval(function(){goldApril()}, 200);
function goldApril() {
a_gold = a_gold + 0.01;
a_str = a_gold.toFixed(2);
//a_gold = a_gold.toString().replace('.', '.');
jQuery("#goldApril").empty();
jQuery("#goldApril").append(""+a_str+"");
}
});
Винагородити