Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
- <script>
- (function($, undefined){
- $(function(){
- var timer = setTimeout(function(){
- $.ajax("timer.txt")
- .fail(function(jqxhr, status, error){ $("#warning").html("Error:" + status + " : " + error); })
- .done(function(data){ $("#warning").html(data); })
- }, 2000);
- });
- })(JQuery)
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement