Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var e = 0;
- $.ajax({
- type: "GET",
- url: "engine?",
- async: true,
- dataType: "html",
- beforeSend: function() {
- czas = (new Date).getTime()
- },
- success: function(t) {
- var delay = (new Date).getTime() - czas;
- if (delay > 15000) {
- location.href = location.href;
- message("Odświeżam.")
- }
- },
- error: function() {
- location.href = location.href;
- message("Odświeżam.")
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement