diff --git a/.env.example b/.env.example index d11d0af..6d94329 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ IMMICH_URL=http://localhost:2283 API_KEY="Get this from your Account Settings page" -PORT=3000 +SERVER_URL=http://localhost:3000 +SERVER_PORT=3000 diff --git a/public/lg-fullscreen.min.js b/public/lg-fullscreen.min.js new file mode 100644 index 0000000..b364442 --- /dev/null +++ b/public/lg-fullscreen.min.js @@ -0,0 +1,8 @@ +/** + * lightgallery | 2.8.0-beta.3 | May 3rd 2024 + * http://www.lightgalleryjs.com/ + * Copyright (c) 2020 Sachin Neravath; + * @license GPLv3 + */ + +!function(e,l){"object"==typeof exports&&"undefined"!=typeof module?module.exports=l():"function"==typeof define&&define.amd?define(l):(e="undefined"!=typeof globalThis?globalThis:e||self).lgFullscreen=l()}(this,(function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var l,n=1,t=arguments.length;n',this.core.$toolbar.append(e),this.fullScreen()}},n.prototype.isFullScreen=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},n.prototype.requestFullscreen=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()},n.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},n.prototype.fullScreen=function(){var e=this;this.$LG(document).on("fullscreenchange.lg.global"+this.core.lgId+" \n webkitfullscreenchange.lg.global"+this.core.lgId+" \n mozfullscreenchange.lg.global"+this.core.lgId+" \n MSFullscreenChange.lg.global"+this.core.lgId,(function(){e.core.lgOpened&&e.core.outer.toggleClass("lg-fullscreen-on")})),this.core.outer.find(".lg-fullscreen").first().on("click.lg",(function(){e.isFullScreen()?e.exitFullscreen():e.requestFullscreen()}))},n.prototype.closeGallery=function(){this.isFullScreen()&&this.exitFullscreen()},n.prototype.destroy=function(){this.$LG(document).off("fullscreenchange.lg.global"+this.core.lgId+" \n webkitfullscreenchange.lg.global"+this.core.lgId+" \n mozfullscreenchange.lg.global"+this.core.lgId+" \n MSFullscreenChange.lg.global"+this.core.lgId)},n}()})); diff --git a/public/style.css b/public/style.css index f82fc88..21a1840 100644 --- a/public/style.css +++ b/public/style.css @@ -3,13 +3,13 @@ html { } #lightgallery img { - height: 250px; + height: 300px; margin: 4px; } #lightgallery a { - position: relative; /* Establishes a positioning context */ - display: inline-block; /* Allows the container to wrap around the image */ + position: relative; + display: inline-block; text-decoration: none; margin: 0; padding: 0; diff --git a/views/gallery.ejs b/views/gallery.ejs index 20c5a40..5b6e594 100644 --- a/views/gallery.ejs +++ b/views/gallery.ejs @@ -1,6 +1,7 @@ + Gallery @@ -21,12 +22,13 @@ }) %> +