Socket
Socket
Sign inDemoInstall

codebit-modal

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

codebit-modal

Simple modal with background blur effect


Version published
Maintainers
1
Weekly downloads
7
decreased by-41.67%

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 01 Apr 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc