🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

codebit-modal

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codebit-modal

Simple modal with background blur effect

1.0.3
latest
Version published
Weekly downloads
51
13.33%
Maintainers
1
Weekly downloads
 
Created

Codebit Modal (codebit-modal)

HTML Struct

<div class="cb-modal-backdrop" style='display: none'>
    <div>
        <div>
            <div class="cb-modal"> 
                <div class="cb-modal-head">
                </div>    
                <div class="cb-modal-body">
                </div>    
                <div class="cb-modal-foot">
                </div>    
            </div>    
        </div>
    </div>
</div>

Javascript

Examples

Show modal:

    var modalElement = document.getElementsByClassName("cb-modal-backdrop")[0];
    var myModal = new CbModal(modalElement);
    myModal.show();

Hide modal:

    myModal.hide();

Documentation

FAQs

Package last updated on 01 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts