mixitup-wf.js 508 B

1234567891011121314151617181920
  1. var conv = function (str) {
  2. if (!str) {
  3. str = 'empty';
  4. }
  5. return str.replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g, '')
  6. .replace(/ /g, "-")
  7. .toLowerCase()
  8. .trim();
  9. };
  10. var filterGroups = document.querySelectorAll('.filter-group');
  11. filterGroups.forEach( function(group) {
  12. group.setAttribute('data-filter-group','');
  13. });
  14. var mixer = mixitup(document.querySelector('.container'), {
  15. multifilter: {
  16. enable: true
  17. }
  18. });