csfieldguide/templates/interactives/compression-comparer.html
{% extends interactive_mode_template %}
{% load i18n %}
{% load static %}
{% block interactive_html %}
<div class="container">
<div class="row">
<div class="col s12">
<div id="interactive-compression-comparer">
<p><strong>{% trans "Move the slider to compare the two images" %}</strong></p>
<div class="interactive-compression-comparer-high">
<img src="{% static 'interactives/compression-comparer/img/lake-rotoiti-high.jpg' %}">
<div class="interactive-compression-comparer-low">
<img src="{% static 'interactives/compression-comparer/img/lake-rotoiti-low.jpg' %}">
</div>
<span class="interactive-compression-comparer-handle"></span>
</div>
<div class="interactive-compression-comparer-clearfix">
<p class="interactive-compression-comparer-left">{% trans "55 Kb JPEG" %}</p>
<p class="interactive-compression-comparer-right">{% trans "139 Kb JPEG" %}</p>
</div>
</div>
</div>
</div>
</div>
{% endblock interactive_html %}
{% block interactive_css %}
<link rel="stylesheet" href="{% static 'interactives/compression-comparer/css/compression-comparer.css' %}">
{% endblock interactive_css %}
{% block interactive_js %}
<script type="text/javascript" src="{% static 'interactives/compression-comparer/js/third-party/before-after.min.js' %}"></script>
{% endblock interactive_js %}