Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. function pausecomp(millis)
  2. {
  3. var date = new Date();
  4. var curDate = null;
  5. do { curDate = new Date(); }
  6. while(curDate-date < millis);
  7. }
  8. var location1 = window.location.href;
  9. if (location1 != "http://localhost/ACTA/poze.html" && location1 !="http://localhost/ACTA/poze1.html")
  10. {
  11. console.log(location1);
  12. if (location1=="https://codeforces.com/")
  13. {
  14. window.location.replace ("http://localhost/ACTA/poze.html");
  15. pausecomp(10000);
  16. window.location.replace("http://localhost/ACTA/poze1.html");
  17. window.location.replace("https://codeforces.com/problemset");
  18. }
  19. else
  20. {
  21. window.stop();
  22.  
  23. }
  24. }
  25. else
  26. window.stop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement