From a2423adab4de94ad5faf1516bcc24b6633bb91e6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 18 Apr 2021 21:37:33 +0200 Subject: Switch to glightbox --- bin/pyggle | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) (limited to 'bin') diff --git a/bin/pyggle b/bin/pyggle index 39e68e5..d5b2588 100755 --- a/bin/pyggle +++ b/bin/pyggle @@ -134,20 +134,8 @@ def copy_files(base_dir): imgwidth = f"{conf_size}px" imgheight = f"{conf_size}px" - css_files = ("jquery.fancybox.css",) - css_files += ( - "blank.gif", - "fancybox_loading@2x.gif", - "fancybox_loading.gif", - "fancybox_overlay.png", - "fancybox_sprite@2x.png", - "fancybox_sprite.png", - ) - js_files = ( - "jquery-1.10.2.min.js", - "jquery.fancybox.pack.js", - "jquery.mousewheel-3.0.6.pack.js", - ) + css_files = ["glightbox.min.css"] + js_files = ["glightbox.min.js"] for css_file in css_files: shutil.copy(f"{base_dir}/css/{css_file}", f".data/css/{css_file}") @@ -168,20 +156,11 @@ def copy_files(base_dir): def create_thumbnail_html(filename, title): - conf_size = 250 - conf_spacing = 1.1 - - div_width = conf_size * conf_spacing - div_height = div_width + 10 - buf = """
\n""" - - buf += f"""\t\n""" - buf += f"""\t\t{filename}\n""" - - buf += f"""\t
\n\t{filename}\n""" - - buf += "
\n" + buf += f"""""" + buf += f"""{filename}""" + buf += "" + buf += "" return buf -- cgit v1.2.3