diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-19 19:50:55 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-20 10:01:05 -0300 |
commit | df5f6048e6a177b5ce3920d10a1249129c669a1f (patch) | |
tree | f94c984a6f21069c02e33a8b9184580916606041 /src/static/js/client/css-compatibility-assistant.js | |
parent | e254ad385d33739d3e6b4a04d79325e2bca840b8 (diff) |
client: client modules
Diffstat (limited to 'src/static/js/client/css-compatibility-assistant.js')
-rw-r--r-- | src/static/js/client/css-compatibility-assistant.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/static/js/client/css-compatibility-assistant.js b/src/static/js/client/css-compatibility-assistant.js new file mode 100644 index 00000000..6e7b15b5 --- /dev/null +++ b/src/static/js/client/css-compatibility-assistant.js @@ -0,0 +1,22 @@ +/* eslint-env browser */ + +export const info = { + id: 'cssCompatibilityAssistantInfo', + + coverArtContainer: null, + coverArtImageDetails: null, +}; + +export function getPageReferences() { + info.coverArtContainer = + document.getElementById('cover-art-container'); + + info.coverArtImageDetails = + info.coverArtContainer?.querySelector('.image-details'); +} + +export function mutatePageContent() { + if (info.coverArtImageDetails) { + info.coverArtContainer.classList.add('has-image-details'); + } +} |