Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var confirmbutton_clicked = 0;
- var buy_clicked = false;
- time1=setInterval(function(){
- timer_hours = parseInt(jQuery(".syotimer-cell_type_hour").children()[0].textContent);
- timer_minutes = parseInt(jQuery(".syotimer-cell_type_minute").children()[0].textContent);
- timer_seconds = parseInt(jQuery(".syotimer-cell_type_second").children()[0].textContent);
- if(timer_hours === 0 && timer_minutes === 0 && timer_seconds === 0){
- jQuery("#mainformsubmit").click(); // нажимается кнопка «купить»
- buy_clicked = true;
- console.log("Покупаем!");
- }
- else
- console.log(timer_hours+":"+timer_minutes+":"+timer_seconds);
- },100);
- time2=setInterval(function(){
- if(buy_clicked){
- if(confirmbutton_clicked < 10){
- jQuery("#confirmbutton").click(); // нажимается кнопка подтвердить
- console.log("Подтверждаем!");
- confirmbutton_clicked++;
- }
- }
- },100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement