daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const url = "adresAPI";
  2. function pobierzCzas() {
  3.     let xmlHttp = new XMLHttpRequest();
  4.     if (xmlHttp == null) return null;
  5.  
  6.     xmlHttp.open("GET", url, false);
  7.     xmlHttp.send(null);
  8.  
  9.     let czas = JSON.parse(xmlHttp.responseText);
  10. }
  11. window.setInterval(pobierzCzas, 3000);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top