/blocker-scb

Page blocker and spinner is created whenever you want, if you are making an ajax call or reading data from file, you can use blocker to block page or element to prevent unwanted interaction

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Pure Javascript page blocker or spinner

Page blocker and spinner is created whenever you want, if you are making an ajax call or reading data from file, you can use blocker to block page or element to prevent unwanted interaction

To install:

1. Import bootstrap.min.css
2. Import bootstrap.bundle.min.js
3. Import blockerscb.js

a. To block and unblock a div of form by id (javascript code) :

blockerscb.block("#FormLoginTest");
blockerscb.unblock("#FormLoginTest");

b. To block and unblock by class (javascript code) :


blockerscb.block(".text-danger");
blockerscb.unblock(".text-danger");

c. To block whole page (javascript code) :


blockerscb.block();
blockerscb.unblock();