Problem
In the _assets/js/listing.js file, to make the resources visible, the use of dynamic styling has been done.
Description
Instead of creating a new style element for the displaying of resource cards, It will be better to use a css property of display: none via a class based approach. we can create a new utility class for the task.
The link to listing.js file: https://github.com/creativecommons/cc-resource-archive/blob/main/docs/_assets/js/listing.js
Implementation
Problem
In the
_assets/js/listing.jsfile, to make the resources visible, the use of dynamic styling has been done.Description
Instead of creating a new style element for the displaying of resource cards, It will be better to use a css property of
display: nonevia a class based approach. we can create a new utility class for the task.The link to
listing.jsfile: https://github.com/creativecommons/cc-resource-archive/blob/main/docs/_assets/js/listing.jsImplementation