From 3e87925a35f73aa2261eb66df3ef4ca11b64eeea Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 30 Jun 2026 17:11:32 +0200 Subject: Replace Shadowbox with GLightbox, drop jQuery from public site Vendors GLightbox 3.3.1 (MIT, dependency-free) as static files in public/javascripts and public/stylesheets, replacing the Shadowbox 2009 vendor tree and its jQuery adapter. Public site no longer loads jQuery at all. - app/views/layouts/application.html.erb: swap Shadowbox script/style includes and the public_bundle (jQuery) include for GLightbox's CSS/JS - app/views/content/_headline_image.html.erb: headline image is now itself a GLightbox trigger; additional images are direct a.glightbox links sharing a per-page data-gallery group, replacing the hidden shadowbox_images div and its click-forwarding trigger - public/javascripts/public.js: replace Shadowbox.init/setup and the click-forwarding handler with a single GLightbox() init call; remove the unused image_handler object - Remove public/javascripts/shadowbox/ (including vendored Sizzle, swfobject, and unused video/Flash players) and public/stylesheets/shadowbox.css - Remove app/assets/javascripts/public_bundle.js (jquery require) --- public/javascripts/shadowbox/LICENSE | 48 ------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 public/javascripts/shadowbox/LICENSE (limited to 'public/javascripts/shadowbox/LICENSE') diff --git a/public/javascripts/shadowbox/LICENSE b/public/javascripts/shadowbox/LICENSE deleted file mode 100644 index 15381833..00000000 --- a/public/javascripts/shadowbox/LICENSE +++ /dev/null @@ -1,48 +0,0 @@ -Copyright 2007-2009 Michael J. I. Jackson -http://mjijackson.com -All rights reserved. - -Shadowbox.js License version 1.0 - -This license is applicable to version 3.0 of the code and greater until superseded -by a later version. - -Shadowbox.js is available for use under the terms of two separate, yet similar -licenses. The first of these may be exercised by individuals and organizations -who employ the software for non-commercial uses. This license grants the licensee -the following privileges: - - - Use - - The software, including code, images, and documentation may be used in a web - site or application that is not used for commercial purposes. - - - Modification - - The software, including code, images, and documentation may be modified by the - user to suit his purpose. - -The second type of license may be obtained for a fee from the copyright holder and -removes the non-commercial restriction from the terms of use. This commercial -license may be obtained for one developer or multiple developers in the same -organization or company. - -Under neither license is the licensee permitted to redistribute the source code, -images, or documentation contained in this project. All redistribution rights -remain with the copyright holder unless specific prior written permission is -obtained. - -Under no circumstance shall this copyright notice or list of conditions be -modified or removed from the code distribution in either source or binary form. - -This software is provided by the copyright holder and contributors "as is" and -any express or implied warranties, including, but not limited to, the implied -warranties of merchantability and fitness for a particular purpose are disclaimed. - -In no event shall the copyright holder or contributors be liable for any direct, -indirect, incidental, special, exemplary, or consequential damages (including, but -not limited to, procurement of substitute goods or services; loss of use, data, or -profits; or business interruption) however caused and on any theory of liability, -whether in contract, strict liability, or tort (including negligence or otherwise) -arising in any way out of the use of this software, even if advised of the -possibility of such damage. -- cgit v1.3