19 lines
540 B
JavaScript
19 lines
540 B
JavaScript
|
(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);
|