dot-hugo/assets/js/script.js

19 lines
540 B
JavaScript
Raw Normal View History

2019-01-06 10:40:05 +00:00
(function ($) {
'use strict';
// Background-images
$('[data-background]').each(function () {
$(this).css({
'background-image': 'url(' + $(this).data('background') + ')'
});
});
// Accordions
$('.collapse').on('shown.bs.collapse', function () {
$(this).parent().find('.ti-plus').removeClass('ti-plus').addClass('ti-minus');
}).on('hidden.bs.collapse', function () {
$(this).parent().find('.ti-minus').removeClass('ti-minus').addClass('ti-plus');
});
})(jQuery);