added js files
This commit is contained in:
parent
f33e6e67ee
commit
f3e565c45d
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
Loading…
Reference in New Issue