Skip to content
Snippets Groups Projects
Commit 698d9bc0 authored by Marco De Donno's avatar Marco De Donno
Browse files

Add the scroll wheel on the trainer search page

parent 712f00c3
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,13 @@
background-position: center;
background-repeat: no-repeat;
}
#zoom_slider {
position: fixed;
width: 200px;
max-width:100%;
bottom: 5px;
right: 15px;
}
</style>
<script type="text/javascript">
......@@ -391,6 +398,7 @@
</div>
{% endfor %}
</div>
<div id="zoom_slider"></div>
</div>
<script type="text/javascript">
......@@ -408,6 +416,23 @@
.html( marks[ "{{ mark[ 'uuid' ] }}" ][ "dt" ].join( "<br>" ) );
{% endfor %}
var onMove = function( e, percentage )
{
zoom_level = 100 + 5 * percentage;
updateZoom();
}
var updateZoom = function()
{
document.documentElement.style.setProperty( "--imgsize", zoom_level + "px" );
}
var zoomslider = new RangeSlider( $( "#zoom_slider" ), {
fgColour: "#647180",
percentage: 40,
onMove: onMove,
onDown: onMove,
pollLimit: 50
} );
$( "#filter_search" ).on( "keyup", update_filter_search );
$( "#filter_search" ).focus();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment