Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".minitb").append('<button style="width: 50px;margin: 0px 5px;" id="rb">OFF</button><input type="number" id="ri" style="width: 50px; outline: none; border: 1px solid #CCC;"><input type="number" id="rir" style="margin: 0px 5px; width: 50px; outline: none; border: 1px solid #CCC;">');$("#ri").change(function(){refr=this.value});refrst=!1;refr=3;$("#ri").val(3);refrr=3;$("#rir").val(3);$("#rb").click(function(){refrst?(refrst=!1,$("#rb").text("OFF")):(refrst=!0,$("#rb").text("ON"),lazyhawk())});
- function lazyhawk(){setTimeout(function(){refrst&&(0<$("#new_comments_counter").text()?setTimeout(function(){$("#new_comments_counter").click()},1E3*refrr):$("#update-comments").click());lazyhawk()},1E3*refr)};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement