Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ujw0l/js-overlay

JS library that lets user to view image gallery, content, iframe content and ajax content in modal box
https://github.com/ujw0l/js-overlay

ajax iframe image-gallery js-library js-overlay modal vanilla-js

Last synced: 11 days ago
JSON representation

JS library that lets user to view image gallery, content, iframe content and ajax content in modal box

Awesome Lists containing this project

README

        

Welcome to js-overlay 👋




Version


License: MIT


Twitter: bastakotiujwol

> JS library that lets user to view image gallery, content, iframe content and ajax content in modal box

### 🏠 [Homepage](https://ujw0l.github.io/js-overlay)

### ✨ [Demo](https://ujw0l.github.io/js-overlay1)

## Install

```sh
npm i js-overlay
```

## Script Tag

```sh

Download and include file

or

```

## Initialization

```sh
const overlay = new jsOverlay();

For Content viewer
overlay.createOverlay({
elContent:'String', (String, content to be loaded in modal)
containerHt: Number, (Number, Modal height.Default 500)
containerWd: Number, (Number, Modal Width.Default 650)
})

For Image viewer
overlay.createOverlay({
imgGallery:'Selector/s', (String, parent container selector/s of Image/s)
containerHt: Number, (Number, Modal height.Default 500)
containerWd: Number, (Number, Modal Width.Default 650)
})

For Iframe viewer
overlay.createOverlay({
iframeUrl:'String', (String, URL of page to be loaded)
containerHt: Number, (Number, Modal height.Default 500)
containerWd: Number, (Number, Modal Width.Default 650)
})

For AJAX viewer
overlay.createOverlay({
ajaxUrl: 'String',(String, Url Where data to be sent and get reponse from )
ajaxData: 'String',(String, Data to be sent to server)
ajaxMethod: 'String': (String, GET or POSt method, default GET )
containerHt: Number, (Number, Modal height.Default 500)
containerWd: Number, (Number, Modal Width.Default 650)
})

```

## Author

👤 **UjW0L**

* Website: http://ujw0l.github.io
* Twitter: [@bastakotiujwol](https://twitter.com/bastakotiujwol)
* Github: [@UjW0L](https://github.com/UjW0L)
* LinkedIn: [@ujwol-bastakoti-2453a4169](https://linkedin.com/in/ujwol-bastakoti-2453a4169)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/ujw0l/js-overlay/issues).

## Show your support

Give a ⭐️ if this project helped you!

***