27 lines
872 B
HTML
27 lines
872 B
HTML
<html>
|
|
<meta charset="UTF-8">
|
|
<head>
|
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
|
<script src="https://www.jqueryscript.net/demo/before-after-image-viewer/beforeafter.jquery-1.0.0.min.js"></script>
|
|
</head>
|
|
<body>
|
|
{% for theme in themes %}
|
|
<h3>{{ theme.label }}</h3>
|
|
{% for shot in theme.shots %}
|
|
<h4>{{ shot.label }}</h4>
|
|
<div class="beforeAfter" style="width: {{ shot.width }}px; height: {{ shot.height }}px">
|
|
<img src="{{ shot.before }}"/>
|
|
<img src="{{ shot.after }}"/>
|
|
</div>
|
|
<h5>Diff</h5>
|
|
<img src="{{ shot.diff }}" />
|
|
{% endfor %}
|
|
{% endfor %}
|
|
<script>
|
|
$(function(){
|
|
$('.beforeAfter').beforeAfter();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|