-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
985d8cb
commit 43856e1
Showing
4 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## The MIT License (MIT) ## | ||
|
||
Copyright (c) Piotr Zdziarski | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Vanilla JavaScript Fullscreen Lightbox Basic | ||
|
||
## Description | ||
A vanilla JavaScript plug-in without production dependencies for displaying images, videos, or, through custom sources, anything you want in a clean overlying box. | ||
The project's website: https://fslightbox.com. | ||
|
||
## Installation | ||
### Through an archive downloaded from the website. | ||
Just before the end of the <body> tag: | ||
```html | ||
<script src="fslightbox.js"></script> | ||
``` | ||
### Or, through a package manager. | ||
``` | ||
npm install fslightbox | ||
``` | ||
And import it in your project's JavaScript file, for example through the Node.js "require" function: | ||
``` | ||
require("fslightbox") | ||
``` | ||
|
||
## Basic usage | ||
```html | ||
<a data-fslightbox="gallery" href="https://i.imgur.com/fsyrScY.jpg"> | ||
Open the first slide (an image) | ||
</a> | ||
<a | ||
data-fslightbox="gallery" | ||
href="https://www.youtube.com/watch?v=xshEZzpS4CQ" | ||
> | ||
Open the second slide (a YouTube video) | ||
</a> | ||
<a | ||
data-fslightbox="gallery" | ||
href="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" | ||
> | ||
Open the third slide (an HTML video) | ||
</a> | ||
<a data-fslightbox="gallery" href="#vimeo"> | ||
Open the fourth slide (a Vimeo video—a custom source) | ||
</a> | ||
<iframe | ||
id="vimeo" | ||
src="https://player.vimeo.com/video/22439234" | ||
width="1920px" | ||
height="1080px" | ||
frameBorder="0" | ||
allow="autoplay; fullscreen" | ||
allowFullScreen | ||
></iframe> | ||
``` | ||
|
||
## Documentation | ||
Available at: https://fslightbox.com/javascript/documentation. | ||
|
||
## Demo | ||
Available at: https://fslightbox.com/javascript. | ||
|
||
## Browser Compatibility | ||
|
||
| Browser | Works? | | ||
| --- | --- | | ||
| Chrome | Yes | | ||
| Firefox | Yes | | ||
| Opera | Yes | | ||
| Safari | Yes | | ||
| Edge | Yes | | ||
| IE 11 | Yes | |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "fslightbox", | ||
"version": "3.4.1", | ||
"description": "An easy to use vanilla JavaScript plug-in without production dependencies for displaying images, videos, or, through custom sources, anything you want in a clean overlying box.", | ||
"author": "Bantha Apps Piotr Zdziarski", | ||
"license": "MIT", | ||
"homepage": "https://fslightbox.com", | ||
"bugs": { | ||
"url": "https://github.com/banthagroup/fslightbox/issues" | ||
}, | ||
"main": "index.js", | ||
"keywords": [ | ||
"fslightbox", | ||
"vanilla javascript fslightbox", | ||
"vanilla js fslightbox", | ||
"vanilla javascript lightbox", | ||
"vanilla js lightbox", | ||
"lightbox" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/banthagroup/fslightbox" | ||
}, | ||
"scripts": { | ||
"w": "webpack-dev-server --host 0.0.0.0", | ||
"p": "webpack --config webpack.prod.config.js && cp index.js fslightbox.js" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.4.4", | ||
"@babel/preset-env": "^7.4.4", | ||
"@babel/register": "^7.4.4", | ||
"babel-loader": "^8.0.5", | ||
"html-webpack-plugin": "^3.2.0", | ||
"webpack": "^4.30.0", | ||
"webpack-cli": "^3.3.1", | ||
"webpack-dev-server": "^3.3.1" | ||
} | ||
} |