Difference between revisions of "MediaWiki:HealdImageCollection.js"
[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]
(Update package: HEALD Images) |
(Update package: HEALD Images) |
||
| Line 3: | Line 3: | ||
$(function() { | $(function() { | ||
| + | $('input[value="Has place"] + .filtered-value-option-label').addClass('has-place'); | ||
| + | $('input[value="Has person"] + .filtered-value-option-label').addClass('has-person'); | ||
| + | |||
$('#resetfilters').click(function() { | $('#resetfilters').click(function() { | ||
location.reload(); | location.reload(); | ||
Latest revision as of 01:53, August 12, 2021
// Adds responsive columns to the SMW filtered format output for the ImageCollection
$('.heald-collection .filtered-views-container').addClass('card-columns');
$(function() {
$('input[value="Has place"] + .filtered-value-option-label').addClass('has-place');
$('input[value="Has person"] + .filtered-value-option-label').addClass('has-person');
$('#resetfilters').click(function() {
location.reload();
});
$('#reset-wrapper').detach().appendTo('.filtered-filters');
});