vanilla filterizr (#222)

This commit is contained in:
Denys Konovalov 2023-04-04 15:49:36 +02:00
parent e9b2ef1ff5
commit 0b7cc92bfc
2 changed files with 9 additions and 5 deletions

@ -72,9 +72,13 @@
// filter
$(document).ready(function () {
var containerEl = document.querySelector('.filtr-container');
var filterizd;
if (containerEl) {
filterizd = $('.filtr-container').filterizr({layout: 'sameWidth', spinner: {enabled: true}});
new Filterizr(
'.filtr-container',
{
layout: 'sameWidth'
}
);
}
//Active changer
$('.filter-controls li').on('click', function () {

@ -38,13 +38,13 @@ params:
js:
- https://assets.cantorgymnasium.de/bootstrap/v4/bootstrap.min.js
- https://assets.cantorgymnasium.de/slick/v1.8/slick.min.js
- https://assets.cantorgymnasium.de/filterizr/jquery.filterizr.min.js
- https://assets.cantorgymnasium.de/lazyload/v17/dist/lazyload.min.js
head_js:
- https://assets.cantorgymnasium.de/wordcloud/v2/wordcloud2.min.js
- https://assets.cantorgymnasium.de/echarts/v5/echarts.min.js
- https://assets.cantorgymnasium.de/jquery/v3.6/jquery.min.js
- https://assets.cantorgymnasium.de/venobox/v2/dist/venobox.min.js
- https://assets.cantorgymnasium.de/lazyload/v17/dist/lazyload.min.js
- https://assets.cantorgymnasium.de/filterizr/v2/dist/vanilla.filterizr.min.js
social:
- title: YouTube
icon: mdi mdi-youtube