Browse Source

add basic mixitup

Joachim M. Giæver 3 years ago
parent
commit
e0b5b6434c
1 changed files with 20 additions and 0 deletions
  1. 20 0
      mixitup-wf.js

+ 20 - 0
mixitup-wf.js

@@ -0,0 +1,20 @@
+var conv = function (str) {
+    if (!str) {
+        str = 'empty';
+    }
+    return str.replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g, '')
+        .replace(/ /g, "-")
+        .toLowerCase()
+        .trim();
+};
+
+var filterGroups = document.querySelectorAll('.filter-group');
+filterGroups.forEach( function(group) {
+    group.setAttribute('data-filter-group','');
+});
+
+var mixer = mixitup(document.querySelector('.container'), {
+    multifilter: {
+        enable: true                 
+    }
+});