mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-18 14:50:30 +00:00
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:
parent
0495785eda
commit
2b88eae74b
8 changed files with 76 additions and 16 deletions
static/js
|
@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue