diff options
author | luxagraf <sng@luxagraf.net> | 2019-03-13 21:43:07 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-03-13 21:43:07 -0600 |
commit | 7e6dcc8c6c1034496eb93ca8730a4febc105e80a (patch) | |
tree | eea6068443fcfb4347d95f8108de63aa3bb3be28 /design | |
parent | f6c872b5d7807e443c8e4e1a4f22a8d99562e17c (diff) |
fixed small bug in img template
Diffstat (limited to 'design')
-rw-r--r-- | design/templates/jrnl/entry_detail.html | 2 | ||||
-rw-r--r-- | design/templates/lib/img_picfull.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/design/templates/jrnl/entry_detail.html b/design/templates/jrnl/entry_detail.html index b517e91..7d7e2a3 100644 --- a/design/templates/jrnl/entry_detail.html +++ b/design/templates/jrnl/entry_detail.html @@ -139,7 +139,7 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i {%endif%} {% endblock %} {% block js %} -<script type="text/javascript"> +<script> document.addEventListener("DOMContentLoaded", function(event) { var leaflet = document.createElement('script'); leaflet.src = "/media/js/leaflet-master/leaflet-mod.js"; diff --git a/design/templates/lib/img_picfull.html b/design/templates/lib/img_picfull.html index babcc76..19cfb36 100644 --- a/design/templates/lib/img_picfull.html +++ b/design/templates/lib/img_picfull.html @@ -2,7 +2,7 @@ {% load get_image_width %} {% if caption %} <figure class="picfull">{%endif%} -<a href="{%get_image_by_size image "original"%} " title="view larger image"><img class="picfull" sizes="(max-width: 680px) 100vw, (min-width: 681) 750px" srcset="{% for size in image.sizes.all%}{% get_image_by_size image size.name %} {% if image.is_portait %}{% get_image_width image size.height %}w{%else%}{{size.width}}w{%endif%}{% if forloop.last%}"{%else%}, {%endif%}{%endfor%} +<a href="{%get_image_by_size image "original"%} " title="view larger image"><img class="picfull" sizes="(max-width: 750px) 100vw, (min-width: 751) 750px" srcset="{% for size in image.sizes.all%}{% get_image_by_size image size.name %} {% if image.is_portait %}{% get_image_width image size.height %}w{%else%}{{size.width}}w{%endif%}{% if forloop.last%}"{%else%}, {%endif%}{%endfor%} {% for size in image.sizes.all%}{%if forloop.first %} src="{% get_image_by_size image size.name %}"{%endif%}{%endfor%} alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}" data-jslghtbx="{%get_image_by_size image "original"%}" data-jslghtbx-group="group" {% if caption%}data-jslghtbx-caption="{{image.caption}}"{%endif%}></a> {% if caption %}<figcaption>{{image.caption|safe}}</figcaption> </figure> |