File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
django_wtf/templates/wagtail_code_blog Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 25
25
26
26
WORKDIR /app/
27
27
28
- # hadolint ignore=DL3013
29
- RUN pip install pip poetry==1.4.2 #!COMMIT
28
+ RUN pip install pip poetry==1.8.3
30
29
COPY pyproject.toml poetry.lock /app/
31
30
RUN poetry config virtualenvs.create false && poetry install --no-interaction #!COMMIT
32
31
Original file line number Diff line number Diff line change 10
10
{% include "wagtail_code_blog/blog_page_body.html" %}
11
11
</ div >
12
12
{% endblock content %}
13
+ {% block js %}
14
+ {{ block.super }}
15
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/medium-zoom/1.0.6/medium-zoom.min.js "
16
+ integrity ="sha512-N9IJRoc3LaP3NDoiGkcPa4gG94kapGpaA5Zq9/Dr04uf5TbLFU5q0o8AbRhLKUUlp8QFS2u7S+Yti0U7QtuZvQ== "
17
+ crossorigin ="anonymous "
18
+ referrerpolicy ="no-referrer "> </ script >
19
+ < script >
20
+ const images = Array . from ( document . querySelectorAll ( ".prose img" ) ) ;
21
+ console . log ( images )
22
+ images . forEach ( img => {
23
+ mediumZoom ( img , {
24
+ margin : 0 ,
25
+ /* The space outside the zoomed image */
26
+ scrollOffset : 40 ,
27
+ /* The number of pixels to scroll to close the zoom */
28
+ container : null ,
29
+ /* The viewport to render the zoom in */
30
+ template : null /* The template element to display on zoom */
31
+ } ) ;
32
+ } ) ;
33
+ </ script >
34
+ {% endblock js %}
You can’t perform that action at this time.
0 commit comments