File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
django_wtf/templates/core Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 43
43
< script src ="
https://unpkg.com/[email protected] "
> </ script >
44
44
{% django_htmx_script %}
45
45
</ body >
46
+ {% block js %}
47
+ {% endblock js %}
46
48
</ html >
Original file line number Diff line number Diff line change 98
98
</ div >
99
99
</ div >
100
100
{% endblock content %}
101
+
102
+ {% block js %}
103
+ {{ block.super }}
104
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/medium-zoom/1.0.6/medium-zoom.min.js "
105
+ integrity ="sha512-N9IJRoc3LaP3NDoiGkcPa4gG94kapGpaA5Zq9/Dr04uf5TbLFU5q0o8AbRhLKUUlp8QFS2u7S+Yti0U7QtuZvQ== "
106
+ crossorigin ="anonymous "
107
+ referrerpolicy ="no-referrer "> </ script >
108
+ < script >
109
+ const images = Array . from ( document . querySelectorAll ( ".prose img" ) ) ;
110
+ console . log ( images )
111
+ images . forEach ( img => {
112
+ mediumZoom ( img , {
113
+ margin : 0 ,
114
+ /* The space outside the zoomed image */
115
+ scrollOffset : 40 ,
116
+ /* The number of pixels to scroll to close the zoom */
117
+ container : null ,
118
+ /* The viewport to render the zoom in */
119
+ template : null /* The template element to display on zoom */
120
+ } ) ;
121
+ } ) ;
122
+ </ script >
123
+ {% endblock js %}
You can’t perform that action at this time.
0 commit comments