Sha256: f3d0d3ce52882a3083ae99f0986c1cdb175e6ca2f61a8589cb47012e771598b8

Contents?: true

Size: 1.94 KB

Versions: 29

Compression:

Stored size: 1.94 KB

Contents

/*! lg-fullscreen - v1.0.1 - 2016-09-30
* http://sachinchoolur.github.io/lightGallery
* Copyright (C) 2016 Sachin N; Licensed GPLv3 */
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(){"use strict";var b={fullScreen:!0},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),this.core.s=a.extend({},b,this.core.s),this.init(),this};c.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()}},c.prototype.requestFullscreen=function(){var a=document.documentElement;a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen()},c.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},c.prototype.fullScreen=function(){var b=this;a(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){b.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?b.exitFullscreen():b.requestFullscreen()})},c.prototype.destroy=function(){this.exitFullscreen(),a(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},a.fn.lightGallery.modules.fullscreen=c}()});

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
j1_template-2019.4.4 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template-2019.4.1 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.36 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.35 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.34 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.33 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.32 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.31 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.30 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.29 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.28 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.27 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.26 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.25 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.24 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.23 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.22 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.21 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.20 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js
j1_template_mde-2018.4.19 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-fullscreen.min.js