Sha256: 0e093f9c2793a39ffdbb0e6716d4f66a07e6525bde967e63c41128272bf7cb25

Contents?: true

Size: 1.99 KB

Versions: 85

Compression:

Stored size: 1.99 KB

Contents

/*! lg-fullscreen - v1.1.0 - 2019-02-19
* http://sachinchoolur.github.io/lightGallery
* Copyright (C) 2022 Sachin N; Licensed GPLv3 */

!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(){"use strict";function b(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}var c={fullScreen:!0},d=function(b){return this.core=a(b).data("lightGallery"),this.$el=a(b),this.core.s=a.extend({},c,this.core.s),this.init(),this};d.prototype.init=function(){var a="";if(this.core.s.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;a='<span class="lg-fullscreen lg-icon"></span>',this.core.$outer.find(".lg-toolbar").append(a),this.fullScreen()}},d.prototype.requestFullscreen=function(){var a=document.documentElement;a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()},d.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},d.prototype.fullScreen=function(){var c=this;a(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){c.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){b()?c.exitFullscreen():c.requestFullscreen()})},d.prototype.destroy=function(){b()&&this.exitFullscreen(),a(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},a.fn.lightGallery.modules.fullscreen=d}()});

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
j1-template-2023.9.2 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.9.1 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.9.0 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.8.2 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.8.1 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.8.0 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.7.0 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.6.0 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.5.2 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.4.5 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.4.4 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.4.3 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.4.2 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.4.1 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.4.0 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.3.3 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.3.2 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.3.1 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.3.0 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js
j1-template-2023.2.7 assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js