Próbowałem jeszcze coś takiego może ktoś podpowie co robie źle a więc mam funkcje
GAME.load_captcha = function(container,secure,once=0,reload=0){
if(grecaptcha){
if(once&&this.captcha[secure]) return false;
if(!reload
&&this
.captcha
[secure
]) grecaptcha
.reset(); else{
this.response[secure]=grecaptcha.render( $(container)[0], { sitekey : this.sitekey,theme:'light' });
this.captcha[secure]=true;
this.any_captcha=true;
}
}
}
i chciałem użyć protype
GAME.load_captcha .prototype = {
grecaptcha : null,
doSomething : function(){
}
};
tylko może nie null albo coś ktoś ma taki pomysł chce wyłączyć funkcje co wczytuje captach
i jeszcze myślałem żeby tu coś przerobić dodać czas wiekszy jak zastapić gettime ? on daje niby na 1h off
function reloadSVGcaptcha(th){
th.html('<img src="./captcha?s='+GAME.server+'&char='+GAME.char_id+'&v='+GAME.getmTime()+'" />');
}