vanilla filterizr (#222)

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

View File

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

View File

@ -38,13 +38,13 @@ params:
js: js:
- https://assets.cantorgymnasium.de/bootstrap/v4/bootstrap.min.js - https://assets.cantorgymnasium.de/bootstrap/v4/bootstrap.min.js
- https://assets.cantorgymnasium.de/slick/v1.8/slick.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: head_js:
- https://assets.cantorgymnasium.de/wordcloud/v2/wordcloud2.min.js - https://assets.cantorgymnasium.de/wordcloud/v2/wordcloud2.min.js
- https://assets.cantorgymnasium.de/echarts/v5/echarts.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/jquery/v3.6/jquery.min.js
- https://assets.cantorgymnasium.de/venobox/v2/dist/venobox.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: social:
- title: YouTube - title: YouTube
icon: mdi mdi-youtube icon: mdi mdi-youtube