aleen42 / screen-lock

:closed_lock_with_key: A simple implementation of screen lock feature but it is quite safe.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

screen-lock.js

javascript

A simple implementation of the screen lock feature but is quite safe because all DOM nodes have been extracted into memory via $.fn.detach, which means that you can't restore it easily unless you can access the memory. It is easily imported to use:

const lock = require('screen-lock');
const unlock = lock();

// append a locking mask in the body
// ...

// hide mask and unlock after prompt
unlock();

Here you can also check the demo.

How to contribute

Have an idea? Found a bug? See how to contribute.

📜 License

MIT © aleen42

About

:closed_lock_with_key: A simple implementation of screen lock feature but it is quite safe.

License:MIT License


Languages

Language:JavaScript 100.0%