From 0b7cc92bfca69881224a9f0fb196472dae6ed358 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Tue, 4 Apr 2023 15:49:36 +0200 Subject: [PATCH] vanilla filterizr (#222) --- assets/js/script.js | 10 +++++++--- config.yml | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/assets/js/script.js b/assets/js/script.js index e4204e52..a901b4af 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -72,10 +72,14 @@ // 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 () { $('.filter-controls li').removeClass('active'); diff --git a/config.yml b/config.yml index 063bbd8d..ce7ccb4a 100644 --- a/config.yml +++ b/config.yml @@ -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