added js files

This commit is contained in:
jorge 2022-03-29 18:24:12 +02:00
parent f33e6e67ee
commit f3e565c45d
4 changed files with 22680 additions and 0 deletions

File diff suppressed because one or more lines are too long

16
assets/js/browse.js Normal file
View File

@ -0,0 +1,16 @@
(function($) {
$(document).ready(function() {
$('.layout-toggle button').click(function() {
$('.layout-toggle button:disabled').removeAttr('disabled');
$(this).attr('disabled', true);
$('.resources').toggleClass('resource-list').toggleClass('resource-grid');
$('.resources .resource').toggleClass('media-object');
$('.resource-meta, .resource-image').toggleClass('media-object-section');
});
$('.browse-toggle').click(function() {
$('.browse-controls').toggleClass('open closed');
$(this).toggleClass('open closed');
});
});
})(jQuery)

View File

@ -0,0 +1,18 @@
$(function(){
$("#site-list").on( "click", ".accordion-title", function() {
var title = this
var content = $(this).closest('.accordion-item')
.find('.accordion-content')
if ($(content).is(':visible')) {
$(content).slideUp('fast')
$(this).closest('.accordion-item').removeClass('is-active')
$(title).attr('aria-expanded', false)
} else {
$(content).slideDown('fast')
$(this).closest('.accordion-item').addClass('is-active')
$(title).attr('aria-expanded', true)
}
return false;
});
})

22644
assets/js/foundation.js vendored Normal file

File diff suppressed because it is too large Load Diff