added js
This commit is contained in:
parent
e93ab3078b
commit
11a99c7a08
File diff suppressed because one or more lines are too long
|
@ -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)
|
|
@ -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;
|
||||||
|
});
|
||||||
|
})
|
File diff suppressed because it is too large
Load Diff
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue