Advertisement
uraharadono

Untitled

May 17th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. 1. Get users screen resolution (so I can use it later to create page overlay)
  2.  
  3. JS code : console.log(screen.width+'x'+screen.height)
  4. Seen: http://stackoverflow.com/questions/2242086/how-to-detect-the-screen-resolution-with-javascript
  5. (cletus answer, ali provjeri i ostale, ljudi su mislili na sve)
  6.  
  7. 2. Track users mouse moving:
  8.  
  9. JS code : onmousemove = function(e){console.log("mouse location:", e.clientX, e.clientY)}
  10. Seen: http://stackoverflow.com/questions/7790725/javascript-track-mouse-position
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement