Cursor hijacking

by Сергей Тарасевич

HTML

<div data-c="y"></div>
<div data-c="x"></div>

JavaScript

$(function() {
  "use strict";
  var ns = {};


  $('body').mousemove(function(event) {
  console.log( event );
    ns.cursorY = event.clientY;
    ns.cursorX = event.clientX;

    $('[data-c="y"]').html(ns.cursorY);
    $('[data-c="x"]').html(ns.cursorX);

  });
});