Nimble Pixie Merchant

    web-screensaver

    0.1.0 • Public • Published

    web-screensaver NPM version

    Displays a 'screensaver' in a sandbox element after a configurable amount of seconds of no user input. Supports multiple types of screensaver plugins that are randomly selected. Downloading of individual plugins are deferred until they're required so impact on page load time is minimal.

    Installing

    # via bower 
    bower install --save web-screensaver
     
    # via npm 
    npm install --save web-screensaver

    Including

    <script src="bower_components/web-screensaver/web-screensaver.js"></script>

    Usage

    // Register plugin-url.js, wait for 2 minutes after no input
    webScreensaver.init('plugin-url.js', 120);
     
    // Register multiple plugins
    webScreensaver.init([
      'plugin-url1.js',
      'plugin-url2.js'
    ], 120);

    License

    MIT © Daniel Imms

    Keywords

    none

    Install

    npm i web-screensaver

    DownloadsWeekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • tyriar