Clean unuseful code (#1443)
This commit is contained in:
parent
a915009c63
commit
baf3c602a3
|
@ -5,7 +5,6 @@ _go = 1
|
|||
|
||||
stop = () ->
|
||||
_go = 0
|
||||
$('#timer').html("...");
|
||||
$('#divToHide').hide();
|
||||
|
||||
go = () ->
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
stop = function() {
|
||||
_go = 0;
|
||||
$('#timer').html("...");
|
||||
return $('#divToHide').hide();
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
Loading…
Reference in New Issue
Block a user