This commit is contained in:
jorge 2022-03-29 18:13:19 +02:00
parent e93ab3078b
commit 11a99c7a08
5 changed files with 22681 additions and 1 deletions

File diff suppressed because one or more lines are too long

16
src/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
src/assets/js/foundation.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -36,4 +36,4 @@ $projects = htmlentities(json_encode($projects, JSON_HEX_QUOT), ENT_QUOTES, 'UTF
</div> </div>
<script src="/themes/archive/asset/js/archive-list.js"></script> <script src="/themes/archive/assets/js/archive-list.js"></script>