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 ]
(Install package: HEALD Images) |
(Update package: HEALD Images) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
// Adds responsive columns to the SMW filtered format output for the ImageCollection | // Adds responsive columns to the SMW filtered format output for the ImageCollection | ||
$('.heald-collection .filtered-views-container').addClass('card-columns'); | $('.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'); | ||
+ | }); |
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'); });