JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q14385F
  • License ISC

this is detect user guester plugin

Package Exports

  • detect_guester

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (detect_guester) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

detect-guester-plugin

simple-drawerlayout

ps:required jquery

step1: include jQuery:

    
        < script type="text/javascript" src="../src/jquery-3.3.1.min.js"/>
    

step2: include simple-drawer.js

    
        < script type="text/javascript" src="../dist/simple-drawer.min.js">
    

or you can use require

    var detectGuester = require('detect_guester');

description

    
        detectGuester.swipe({
           target: string , // html element, example: '#test',
           direction: string, // (top,down,left,right) detect user guester swipe direction
           callback: function(){...} // trigger callback
        });

    detectGuester.longPress({
        target: string, // html element, example: '#test'
        wait_time: integer, // trigger callback after x seconds
        callback: function(){....} // trigger callback
    });

    detectGuester.press({
        target: string, // html element, example: '#test'
        callback: function() {...} // trigger callback
    })
</code>