adding the english version of the comics, including the modifications in the frontend structure
Before Width: | Height: | Size: 108 KiB |
BIN
ihatemoney/static/showcase_en/1.webp
Normal file
After Width: | Height: | Size: 126 KiB |
BIN
ihatemoney/static/showcase_en/2.webp
Normal file
After Width: | Height: | Size: 104 KiB |
BIN
ihatemoney/static/showcase_en/3.webp
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
ihatemoney/static/showcase_en/4.webp
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
ihatemoney/static/showcase_en/5.webp
Normal file
After Width: | Height: | Size: 116 KiB |
BIN
ihatemoney/static/showcase_en/6.webp
Normal file
After Width: | Height: | Size: 119 KiB |
BIN
ihatemoney/static/showcase_en/7.webp
Normal file
After Width: | Height: | Size: 124 KiB |
BIN
ihatemoney/static/showcase_en/8.webp
Normal file
After Width: | Height: | Size: 110 KiB |
BIN
ihatemoney/static/showcase_en/9.webp
Normal file
After Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 92 KiB |
Before Width: | Height: | Size: 130 KiB |
|
@ -15,6 +15,12 @@
|
||||||
<a class="showcase btn" onclick="javascript:showGallery(); return false;">Voir la BD explicative</a>
|
<a class="showcase btn" onclick="javascript:showGallery(); return false;">Voir la BD explicative</a>
|
||||||
<img class="showcaseimg" src="{{ url_for("static", filename='images/indicate.svg') }}" />
|
<img class="showcaseimg" src="{{ url_for("static", filename='images/indicate.svg') }}" />
|
||||||
</span>
|
</span>
|
||||||
|
{% else %}
|
||||||
|
--
|
||||||
|
<span class="side-to-side">
|
||||||
|
<a class="showcase btn" onclick="javascript:showGallery_en(); return false;">See the explicative comics</a>
|
||||||
|
<img class="showcaseimg" src="{{ url_for("static", filename='images/indicate.svg') }}" />
|
||||||
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-4">
|
<div class="col-xs-12 col-sm-4">
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var pswpElement = document.getElementById('pswp');
|
var pswpElement = document.getElementById('pswp');
|
||||||
var items = JSON.parse('[{"h": 2450, "src": "{{ url_for("static", filename="showcase/1.webp") }}", "w": 2450}, {"h": 2509, "src": "{{ url_for("static", filename="showcase/2.webp") }}", "w": 2221}, {"h": 2536, "src": "{{ url_for("static", filename="showcase/3.webp") }}", "w": 2101}, {"h": 2722, "src": "{{ url_for("static", filename="showcase/4.webp") }}", "w": 2348}, {"h": 2745, "src": "{{ url_for("static", filename="showcase/5.webp") }}", "w": 1804}, {"h": 3307, "src": "{{ url_for("static", filename="showcase/6.webp") }}", "w": 2897}, {"h": 2321, "src": "{{ url_for("static", filename="showcase/7.webp") }}", "w": 2239}, {"h": 2470, "src": "{{ url_for("static", filename="showcase/8.webp") }}", "w": 2419}, {"h": 3307, "src": "{{ url_for("static", filename="showcase/9.webp") }}", "w": 2602}]');
|
var items = JSON.parse('[{"h": 2450, "src": "{{ url_for("static", filename="showcase/1.webp") }}", "w": 2450}, {"h": 2509, "src": "{{ url_for("static", filename="showcase/2.webp") }}", "w": 2221}, {"h": 2536, "src": "{{ url_for("static", filename="showcase/3.webp") }}", "w": 2101}, {"h": 2722, "src": "{{ url_for("static", filename="showcase/4.webp") }}", "w": 2348}, {"h": 2745, "src": "{{ url_for("static", filename="showcase/5.webp") }}", "w": 1804}, {"h": 3307, "src": "{{ url_for("static", filename="showcase/6.webp") }}", "w": 2897}, {"h": 2321, "src": "{{ url_for("static", filename="showcase/7.webp") }}", "w": 2239}, {"h": 2470, "src": "{{ url_for("static", filename="showcase/8.webp") }}", "w": 2419}, {"h": 3307, "src": "{{ url_for("static", filename="showcase/9.webp") }}", "w": 2602}]');
|
||||||
|
var items_en = JSON.parse('[{"h": 2450, "src": "{{ url_for("static", filename="showcase_en/1.webp") }}", "w": 2450}, {"h": 2509, "src": "{{ url_for("static", filename="showcase_en/2.webp") }}", "w": 2221}, {"h": 2536, "src": "{{ url_for("static", filename="showcase_en/3.webp") }}", "w": 2101}, {"h": 2722, "src": "{{ url_for("static", filename="showcase_en/4.webp") }}", "w": 2348}, {"h": 2745, "src": "{{ url_for("static", filename="showcase_en/5.webp") }}", "w": 1804}, {"h": 3307, "src": "{{ url_for("static", filename="showcase_en/6.webp") }}", "w": 2897}, {"h": 2321, "src": "{{ url_for("static", filename="showcase_en/7.webp") }}", "w": 2239}, {"h": 2470, "src": "{{ url_for("static", filename="showcase_en/8.webp") }}", "w": 2419}, {"h": 3307, "src": "{{ url_for("static", filename="showcase_en/9.webp") }}", "w": 2602}]');
|
||||||
var options = {
|
var options = {
|
||||||
index: 0,
|
index: 0,
|
||||||
loop: false,
|
loop: false,
|
||||||
|
@ -47,6 +48,31 @@ function showGallery(){
|
||||||
$('head').append('<link rel="stylesheet" type="text/css" href="{{ url_for("static", filename="photoswipe/default-skin/default-skin.css") }}">');
|
$('head').append('<link rel="stylesheet" type="text/css" href="{{ url_for("static", filename="photoswipe/default-skin/default-skin.css") }}">');
|
||||||
$('head').append('<link rel="stylesheet" type="text/css" href="{{ url_for("static", filename="photoswipe/photoswipe.css") }}">');
|
$('head').append('<link rel="stylesheet" type="text/css" href="{{ url_for("static", filename="photoswipe/photoswipe.css") }}">');
|
||||||
|
|
||||||
|
var script = document.createElement("script");
|
||||||
|
script.type = "text/javascript";
|
||||||
|
script.src = "{{ url_for('static', filename='photoswipe/photoswipe.min.js')}}";
|
||||||
|
script.onload = function(){
|
||||||
|
var script2 = document.createElement("script");
|
||||||
|
script2.type = "text/javascript";
|
||||||
|
script2.src = "{{ url_for('static', filename='photoswipe/photoswipe-ui-default.min.js')}}";
|
||||||
|
script2.onload = function(){
|
||||||
|
pswpElement.className="pswp";
|
||||||
|
var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items_en, options);
|
||||||
|
gallery.init();
|
||||||
|
};
|
||||||
|
document.body.appendChild(script2);
|
||||||
|
};
|
||||||
|
document.body.appendChild(script);
|
||||||
|
}
|
||||||
|
|
||||||
|
function showGallery_en(){
|
||||||
|
|
||||||
|
/* the CSS and JS for photoswipe is loaded dynamically
|
||||||
|
* so that they are not loaded if the gallery is not open */
|
||||||
|
|
||||||
|
$('head').append('<link rel="stylesheet" type="text/css" href="{{ url_for("static", filename="photoswipe/default-skin/default-skin.css") }}">');
|
||||||
|
$('head').append('<link rel="stylesheet" type="text/css" href="{{ url_for("static", filename="photoswipe/photoswipe.css") }}">');
|
||||||
|
|
||||||
var script = document.createElement("script");
|
var script = document.createElement("script");
|
||||||
script.type = "text/javascript";
|
script.type = "text/javascript";
|
||||||
script.src = "{{ url_for('static', filename='photoswipe/photoswipe.min.js')}}";
|
script.src = "{{ url_for('static', filename='photoswipe/photoswipe.min.js')}}";
|
||||||
|
|