Clean unuseful code (#1443)

This commit is contained in:
Christophe Maudoux 2018-06-07 18:37:00 +02:00
parent a915009c63
commit baf3c602a3
3 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,6 @@ _go = 1
stop = () ->
_go = 0
$('#timer').html("...");
$('#divToHide').hide();
go = () ->

View File

@ -8,7 +8,6 @@
stop = function() {
_go = 0;
$('#timer').html("...");
return $('#divToHide').hide();
};

View File

@ -1 +1 @@
(function(){var _go,go,i,stop,timer;i=30;_go=1;stop=function(){_go=0;$("#timer").html("...");return $("#divToHide").hide()};go=function(){if(_go){return $("#form").submit()}};timer=function(){var h;h=$("#timer").html();if(i>0){i--}h=h.replace(/\d+/,i);$("#timer").html(h);return window.setTimeout(timer,1e3)};$(document).ready(function(){if(window.datas["activeTimer"]){window.setTimeout(go,3e4);window.setTimeout(timer,1e3)}else{stop}return $("#wait").on("click",function(){return stop()})})}).call(this);
(function(){var _go,go,i,stop,timer;i=30;_go=1;stop=function(){_go=0;return $("#divToHide").hide()};go=function(){if(_go){return $("#form").submit()}};timer=function(){var h;h=$("#timer").html();if(i>0){i--}h=h.replace(/\d+/,i);$("#timer").html(h);return window.setTimeout(timer,1e3)};$(document).ready(function(){if(window.datas["activeTimer"]){window.setTimeout(go,3e4);window.setTimeout(timer,1e3)}else{stop}return $("#wait").on("click",function(){return stop()})})}).call(this);