1.2.2 • Published 7 years ago

screentimer v1.2.2

Weekly downloads
35
License
MIT
Repository
github
Last release
7 years ago

Screentimer

An ES6 class, jQuery-free version of robflaherty/screentime.

Usage

import Screentimer from 'screentimer';

const element = document.querySelector('#my-element');

// Setup
const timer = new Screentimer(element, count => {
  console.log(`Seen #my-element on-screen for ${count} intervals since the last report.`);
});

// Optional event handler cleanup
timer.destroy();
1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.9.1

7 years ago