Skip to content

Instantly share code, notes, and snippets.

View gopalanand333's full-sized avatar
🚩
Coding

Gopal Anand gopalanand333

🚩
Coding
View GitHub Profile
@gopalanand333
gopalanand333 / index.html
Created April 24, 2019 06:01
Realtime Dashboard
<div id="wrapper">
<div class="content-area">
<div class="container-fluid">
<div class="main">
<div class="row mt-4">
<div class="col-md-5">
<div class="box columnbox mt-4">
<div id="columnchart"> </div>
@gopalanand333
gopalanand333 / readUIEvents.js
Last active March 15, 2021 11:12
This script reads all the clicks done on a webpage's body, and pushing it into an array, a service is called where this array holding click related information can be pushed. There's a check for the length of array and if there is no event the service call is canceled. This gives the user of this script a privilege to understand the usage patter…
var myEventList = [];
function writeData() {
document.body.onclick = function(event) {
myEventList.push(formatData(event));
};
function formatData(data) {
var event = [];
event.push({
"x": data.clientX,
"y": data.clientY,