Commit 52174fb5 authored by Damien Erambert's avatar Damien Erambert Committed by Felix Paul Kühne
Browse files

web intf: add some logic needed to prettify WiFi Downloads


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 4bc842ae
...@@ -100,4 +100,34 @@ $(function(){ ...@@ -100,4 +100,34 @@ $(function(){
xhrCache.splice(id, 1); xhrCache.splice(id, 1);
li.addClass('fail'); li.addClass('fail');
} }
function resizeThumbnails() {
$('.downloads > div').each(function(index, el) {
$(this).height(Math.ceil($(this).width()*0.55));
});
}
$(document).ready(function() {
resizeThumbnails()
});
$(window).resize(function(event) {
resizeThumbnails();
});
$('a.inner').click(function(event) {
$('#overlay').addClass('shown');
$('#modal ul.downloads').empty();
$(this).parent().find('.content > div').clone().appendTo('#modal ul.downloads');
resizeThumbnails();
});
$('#overlay').click(function(event) {
$(this).toggleClass('shown');
});
if('backgroundSize' in document.documentElement.style) {
$('.icon').addClass('bgz');
}
}); });
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment