Update 11.08.2020

This commit is contained in:
Denys Konovalov
2020-08-11 14:10:42 +02:00
parent 5021f9c71e
commit 6b43ab49ff
48 changed files with 635 additions and 134 deletions

View File

@ -1,7 +1,7 @@
(function ($) {
'use strict';
// Preloader js
// Preloader js
$(window).on('load', function () {
$('.preloader').fadeOut(100);
});
@ -20,7 +20,7 @@
}
});
// Background-images
$('[data-background]').each(function () {
@ -103,5 +103,21 @@
});
});
var containerEl = document.querySelector('.shuffle-wrapper');
if (containerEl) {
var Shuffle = window.Shuffle;
var myShuffle = new Shuffle(document.querySelector('.shuffle-wrapper'), {
itemSelector: '.shuffle-item',
buffer: 1
});
})(jQuery);
jQuery('input[name="shuffle-filter"]').on('change', function (evt) {
var input = evt.currentTarget;
if (input.checked) {
myShuffle.filter(input.value);
}
});
}
})(jQuery);

View File

@ -125,3 +125,7 @@
color: $white;
}
}
.input {
border: 100px;
}