migrated home.js and refactored into various sections
This commit is contained in:
parent
954507a20d
commit
67c1f520d8
13 changed files with 268 additions and 632 deletions
12
assets/scripts/sections/publications.js
Normal file
12
assets/scripts/sections/publications.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import Filterizr from 'filterizr';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
var publicationCardHolder = document.getElementById("publication-card-holder");
|
||||
if (publicationCardHolder != null && publicationCardHolder.children.length != 0) {
|
||||
new Filterizr(".filtr-publications", {
|
||||
layout: 'sameWidth',
|
||||
gridItemsSelector: '.pub-filtr-item',
|
||||
controlsSelector: '.pub-filtr-control',
|
||||
});
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue