npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eins-modal

v2.2.2

Published

Simple to use modal / alert / dialog / popup. Created without any framework. No javascript knowledge required! Works on every browser and device! IE >= 9

Downloads

107

Readme

EinsModal

License: MIT

The last modal / alert / dialog you will ever need!

Full Documentation: https://www.einscms.com/modal

EinsModal is the best solution to interact with your users.

It works on every browser and device! (Internet Explorer >= 9)

"Eins" is german and means "one".

This software is part of the Eins-Software-Family.

Every Eins-Software-Product aims to be the one and only software solution you will ever need regarding its task.

Why EinsModal?

There are many other modal / dialog / popup libraries out there and we tried some of them.

So what is the need and purpose of this library?

We needed a solution that is production ready, easy to use, extensible and has beautiful design and animation.

  1. Animations and Design

    EinsModal has 50 animations / transitions and a Dark & Light theme build in.

    Most of the Libraries out there lack good looking design and/or have no or poor animations.

  2. Browser Support

    EinsModal is responsive (all device sizes) and works on all browsers (>= IE9)!

    Almost all other libraries lack support for legacy browsers like IE9 and they also have bugs in newer browsers.

  3. Production Ready

    EinsModal is production ready and stable.

    We sometimes need a Modal to display or provide critical information and functionality to our users. So it has to work 100% of the time. Bugs are not acceptable.

  4. Easy to use

    EinsModal can be used without any javascript knowledge.

    Most of the other libraries can only be used and configured by writing your own javascript code.

  5. Extensibility

    EinsModal provides a developer-friendly api that allows you to extend and use the libraries in many different ways.

    It also has just a small amount of CSS / SCSS. Overriding or extending it is very easy!

Features

  • 🚀 No Javascript knowledge required

    You just need to know how to copy and paste HTML!

  • Created with pure Javascript

    Just javascript, no framework used!

  • 👻 Lightweight

    eins-modal is 26 KB (gzipped)
    eins-modal-plain is 8 KB (gzipped)

  • ✏️ Well documented

    The documentation also has a Modal-Generator 😍

  • 💪 Actively Maintained

    The software is always up to date!

  • 🌈 Works with all mobile and desktop Browsers

    Internet Explorer >= 9

  • 🍰 Easy to use and robust

    Eating a cake is more difficult than using EinsModal 😂

  • 😎 Can display every kind of HTML

    Yes, it can!

  • 🔥 Easy to Customize & Extend

    EinsModal has just a small amount of CSS. Means overriding it or extending it is very easy!

    You can also use the SCSS file if you want to.

    EinsModal provides everything you need to interact with it via JS. There are no limits regarding extending and using it!

  • 🌚 Dark theme build in

    Dark theme is already build in. Modifying it or adding new themes is very easy!

Installation

With NPM

eins-modal

npm install eins-modal
// scss
import 'eins-modal/src/scss/style.scss'
// OR css
import 'eins-modal/dist/css/eins-modal.min.css'

// javascript
import EinsModal from 'eins-modal';
// OR
import 'eins-modal';

Without NPM

Download

<head>
  <!-- In Head Tag -->
  <link rel="stylesheet" href="/path/to/dist/css/eins-modal.min.css">
</head>
<body>
  <!-- End Of Body Tag -->
  <script src="/path/to/dist/js/eins-modal.min.js"></script>
</body>

EinsModal without animations (eins-modal-plain)

If you want a smaller file size and just need a modal you can use EinsModal without any animations.

With NPM

eins-modal

npm install eins-modal
// scss
import 'eins-modal/src/scss/style.scss'
// OR css
import 'eins-modal/dist/css/eins-modal.min.css'

// javascript
import EinsModal from 'eins-modal/src/eins-modal-plain';
// OR
import 'eins-modal/src/eins-modal-plain';

Without NPM

Download

<head>
  <!-- In Head Tag -->
  <link rel="stylesheet" href="/path/to/dist/css/eins-modal.min.css">
</head>
<body>
  <!-- End Of Body Tag -->
  <script src="/path/to/dist/js/eins-modal-plain.min.js"></script>
</body>

Type definitions / Typescript

EinsModal provides type definitions. They are especially helpful when using Typescript.

Just install the following package to get the type definitions:

@types/eins-modal

npm install --save-dev @types/eins-modal

Author

License

This project is open source and available under the MIT License.

You can find Examples and more here:

https://www.einscms.com/modal