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/languages/shadowbox-zh-CN.js | 1 - 1 file changed, 1 deletion(-) delete mode 100644 public/javascripts/shadowbox/languages/shadowbox-zh-CN.js (limited to 'public/javascripts/shadowbox/languages/shadowbox-zh-CN.js') diff --git a/public/javascripts/shadowbox/languages/shadowbox-zh-CN.js b/public/javascripts/shadowbox/languages/shadowbox-zh-CN.js deleted file mode 100644 index dbc4bbf3..00000000 --- a/public/javascripts/shadowbox/languages/shadowbox-zh-CN.js +++ /dev/null @@ -1 +0,0 @@ -if(typeof Shadowbox=="undefined"){throw"Unable to load Shadowbox language file, Shadowbox not found."}Shadowbox.lang={code:"zh-CN",of:"的",loading:"读取中",cancel:"取消",next:"下一页",previous:"上一页",play:"执行",pause:"暂停",close:"关闭",errors:{single:'您必须安装 {1} 这个浏览外挂程式才能检视这里的内容。',shared:'您必须安装 {1} 和 {3} 这两个浏览外挂程式才能检视这里的内容。',either:'您必须安装 {1} 或者是 the {3} 这两个其中一个浏览外挂程式才能检视这里的内容。'}}; \ No newline at end of file -- cgit v1.3