diff --git a/AUTHORS b/AUTHORS index 3d4af53..b18a156 100644 --- a/AUTHORS +++ b/AUTHORS @@ -4,6 +4,7 @@ alphabetical order): - Christophe-Marie Duquesne - Jonas Kaufmann - Antoine Pitrou +- Giel van Schijndel - Matthias Vogelgesang - Vikram Shirgur - Yuce Tekol diff --git a/sigal/themes/galleria/static/css/style.css b/sigal/themes/galleria/static/css/style.css index 06691cd..dd95685 100644 --- a/sigal/themes/galleria/static/css/style.css +++ b/sigal/themes/galleria/static/css/style.css @@ -111,6 +111,11 @@ header h1 a:hover, header h2 a:hover { margin: 0 auto; } +/* fullscreen display link */ +#fullscreen { + cursor: pointer; +} + /* footer */ footer { clear: both; diff --git a/sigal/themes/galleria/templates/index.html b/sigal/themes/galleria/templates/index.html index 421c9e8..40a4ad7 100644 --- a/sigal/themes/galleria/templates/index.html +++ b/sigal/themes/galleria/templates/index.html @@ -79,7 +79,8 @@ {{ media.filename }} + data-description="{{ img_description(media) }}" + {% if media.big %} data-big="{{ media.big }}"{% endif %} /> {% endif %} {% if media.type == "video" %} @@ -94,6 +95,7 @@ {% endif %} {% endfor %} + fullscreen {% endif %} {% if album.zip %} @@ -134,8 +136,15 @@ Galleria.ready(function() { this.attachKeyboard({ right: this.next, - left: this.prev - }); + left: this.prev, + /* Toggle fullscreen display on press of 'f' key */ + 0x46: this.toggleFullscreen, + }); + + var gallery = this; + $('#fullscreen').click(function() { + gallery.toggleFullscreen(); + }); });