Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
- added navigator.userActivation existence check
- updated README
  • Loading branch information
LCweb-ita committed Oct 4, 2024
1 parent f723129 commit e74f30d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ LC Lightbox is a modern jQuery lightbox focused on contents.<br/>
Totally responsive and adaptive, is extremely flexible to be tailored in the minimum details!

Hassle-free and immediate setup using an unique javascript file. <br/>
Overall plugin weight is only 42KB (JS) + 31KB (CSS)
Overall plugin weight is only 46KB (JS) + 34KB (CSS)

![lc-lightbox](https://lcweb.it/wp-content/uploads/2018/10/lcl_github_img_2.png)
![lc-lightbox](https://static.lcweb.it/lc-lightbox-lite/lcl_github_img.png)


&nbsp;
Expand All @@ -19,7 +19,6 @@ Main features
* Effective Socials Share (with WhatsApp option on mobile)
* Element Contents (title, description and author)
* Images "right-click" protection
* Natively supports webp/avif images

* Fullscreen mode
* Covering only browser or entire screen space
Expand All @@ -35,7 +34,7 @@ Main features
* 100% CSS Driven
* (optional) Mousewheel and Keyboard elements navigation
* Swipe integration to navigate (requires AlloyFinger)
* Dev-oriented and well-documented [methods & Events](https://lcweb.it/lc-lightbox/documentation?section=methods)
* Dev-oriented and well-documented [methods & Events](https://lcweb.it/lc-lightbox-jquery-plugin/documentation/?section=methods)
* 4 layouts (text over element, under element or on right/left side)
* (optional) closing button on corner position <em>(for inner commands)</em>
* (optional) navigation buttons on middle position <em>(for inner commands)</em>
Expand All @@ -50,7 +49,7 @@ Main features
* Full control on each animation/effect timing
* Modal mode
* Thumbnails script support (eg. easily integrates with Timthumb)
* MUCH MORE! [check lightbox options](https://lcweb.it/lc-lightbox/documentation?section=opts)
* MUCH MORE! [check lightbox options](https://lcweb.it/lc-lightbox-jquery-plugin/documentation/?section=opts)


&nbsp;
Expand All @@ -59,7 +58,7 @@ Main features
Requirements
---

* Any modern browser (IE 10+)
* Any modern browser (IE 11+)
* jQuery v1.7+
* To implement touch actions you need to use [AlloyFinger](https://github.com/AlloyTeam/AlloyFinger/) (file included in LIB folder)

Expand All @@ -69,15 +68,15 @@ Requirements

Live Demo
---
[https://lcweb.it/lc-lightbox](https://lcweb.it/lc-lightbox)
[https://lcweb.it/lc-lightbox-jquery-plugin/](https://lcweb.it/lc-lightbox-jquery-plugin/)


&nbsp;


Documentation
---
[https://lcweb.it/lc-lightbox/documentation](https://lcweb.it/lc-lightbox/documentation)
[https://lcweb.it/lc-lightbox-jquery-plugin/documentation/](https://lcweb.it/lc-lightbox-jquery-plugin/documentation/)

Optionally you can install the plugin via Bower, using this instruction: `bower install lc-lightbox-lite`

Expand All @@ -88,7 +87,7 @@ License
---

LC Lightbox LITE is free and released under the MIT license.<br/>
You can purchase the fully-featured premium version on [Codecanyon](https://codecanyon.net/user/lcweb/portfolio)
You can purchase the fully-featured premium version on the [LCweb Shop](https://lcweb.it/lc-lightbox-jquery-plugin/)


&nbsp;
Expand All @@ -97,7 +96,7 @@ You can purchase the fully-featured premium version on [Codecanyon](https://code
Extra
---

Premium LC Lightbox version is implemented in the premium WordPress plugin [Global Gallery](http://www.lcweb.it/global-gallery)
Premium LC Lightbox version is implemented in the premium WordPress plugin [Global Gallery](https://lcweb.it/global-gallery-wordpress-photogallery-plugin/)


&nbsp;
Expand All @@ -106,8 +105,8 @@ Premium LC Lightbox version is implemented in the premium WordPress plugin [Glob
Fun Fact
---

Why release starts from v1.1? LC Lightbox has been used and developed for [Global Gallery](http://www.lcweb.it/global-gallery) WordPress plugin in 2017!
Why release starts from v1.1? LC Lightbox has been used and developed for [Global Gallery](https://lcweb.it/global-gallery-wordpress-photogallery-plugin/) WordPress plugin in 2017!

* * *

Copyright &copy; Luca Montanari (aka LCweb)
Copyright &copy; Luca Montanari (LCweb)
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"Luca Montanari (https://lcweb.it)"
],
"license": "MIT",
"homepage": "https://lcweb.it/lc-lightbox",
"homepage": "https://lcweb.it/lc-lightbox-jquery-plugin/",
"dependencies": {
"jquery": ">=1.7.0",
"alloyfinger": "latest"
Expand Down
4 changes: 2 additions & 2 deletions js/lc_lightbox.lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* LC Lightbox - LITE
* yet.. another jQuery lightbox.. or not?
*
* @version : 1.3.1
* @version : 1.3.2
* @copyright : Luca Montanari (LCweb)
* @website : https://lcweb.it
* @requires : jQuery v1.7 or later
Expand Down Expand Up @@ -1655,7 +1655,7 @@
$('#lcl_wrap').addClass('lcl_toggling_fs');

// enbale browser's fs
if(o.browser_fs_mode && document.fullscreenEnabled && navigator.userActivation.hasBeenActive) {
if(o.browser_fs_mode && document.fullscreenEnabled && typeof(navigator.userActivation) != 'undefined' && navigator.userActivation.hasBeenActive) {
if (document.documentElement.requestFullscreen) {
document.documentElement.requestFullscreen();
} else if (document.documentElement.msRequestFullscreen) {
Expand Down
2 changes: 1 addition & 1 deletion js/lc_lightbox.lite.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "LCweb",
"name": "lc-lightbox-lite",
"version": "1.3.1",
"version": "1.3.2",
"description": "Yet another jQuery lightbox.. or not? ",
"keywords": [
"jquery",
Expand Down Expand Up @@ -50,7 +50,7 @@
},
"links": {
"download": "https://github.com/LCweb-ita/LC-Lightbox-LITE/releases",
"docs": "https://lcweb.it/lc-lightbox/documentation"
"docs": "https://lcweb.it/lc-lightbox-jquery-plugin/documentation/"
},
"main": [
"js/lc_lightbox.lite.min.js",
Expand Down

0 comments on commit e74f30d

Please sign in to comment.