feat: implemented functionnalities on Markdown images: 1. featherlight for full size view in popup 2. Height/Width customizables 3. Possibility to add css classes

This commit is contained in:
Mathieu Cornic 2016-03-17 17:48:18 +01:00
parent 0495785eda
commit 2b88eae74b
8 changed files with 76 additions and 16 deletions
static/js

View file

@ -127,7 +127,7 @@ jQuery(document).ready(function() {
var input = jQuery(this),
value = input.val(),
items = jQuery('[data-nav-id]');
console.log(input, value, items);
items.removeClass('search-match');
if (!value.length) {
$('ul.topics').removeClass('searched');
@ -207,7 +207,7 @@ jQuery(document).ready(function() {
});
}
});
// allow keyboard control for prev/next links
jQuery(function() {
jQuery('.nav-prev').click(function(){
@ -228,7 +228,7 @@ jQuery(document).ready(function() {
if(e.which == '39') {
jQuery('.nav.nav-next').click();
}
});
});
});