PageSourceSearch

https://science.org.au/themes/custom/aas/js/interactiveDome/utils/styleSocialMediaIcons.js

js science.org.au collected 2026-09-24 08:28:23 UTC 983 bytes, 30 lines download raw bytes

1const styleSocialMediaIcons = () => {
2  const listItems = Object.values(document.querySelectorAll('.social-links'));
3
4  listItems.forEach((item, index) => {
5    if (index === 1) {
6      const socialMediaIcons = Object.values(item.children[0].children);
7
8      socialMediaIcons.forEach((socialMedia) => {
9        socialMedia.style.border = 0;
10        socialMedia.style.borderRadius = '10px';
11        socialMedia.firstChild.style.borderRadius = '10px';
12        socialMedia.firstChild.style.width = '41px';
13        socialMedia.firstChild.style.height = '41px';
14      });
15    }
16    if (index === 2) {
17      const socialMediaLink = Object.values(item.lastElementChild.children);
18
19      socialMediaLink.forEach((media) => {
20        if (media.firstChild.style !== undefined) {
21          media.firstChild.style.borderRadius = '3px';
22        } else {
23          media.firstChild.nextSibling.style.borderRadius = '3px';
24        }
25      });
26    }
27  });
28};
29
30export default styleSocialMediaIcons;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.