Scott Humphrey
WBWeb Bae
•Created by Scott Humphrey on 3/27/2023 in #❓︱questions
Chrome Extension
Not too much no but it’s an area I’m trying to explore more, I have a basic understanding
11 replies
WBWeb Bae
•Created by Scott Humphrey on 3/16/2023 in #❓︱questions
Attributes 'Copy to Clipboard' not woking on Collection list.
I fixed it dude, used the copy sibling attribute instead and all worked.
17 replies
WBWeb Bae
•Created by Scott Humphrey on 3/16/2023 in #❓︱questions
Attributes 'Copy to Clipboard' not woking on Collection list.
This fixed the modal pop issues
17 replies
WBWeb Bae
•Created by Scott Humphrey on 3/16/2023 in #❓︱questions
Attributes 'Copy to Clipboard' not woking on Collection list.
// Select all modal trigger buttons
const modalTriggerButtons = document.querySelectorAll('.resource-ci .resource-card_form-trigger');
// Add click event listener to each button
modalTriggerButtons.forEach((button) => {
button.addEventListener('click', () => {
// Retrieve the ID of the modal to open
const modalId = button.getAttribute('data-modal');
// Select the modal with the matching ID that is a child of the same parent element as the button
const parentItem = button.closest('.resource-ci');
const modal = parentItem.querySelector(#${modalId});
// Open the selected modal
modal.classList.add('is-open');
});
})
17 replies
WBWeb Bae
•Created by Scott Humphrey on 3/16/2023 in #❓︱questions
Attributes 'Copy to Clipboard' not woking on Collection list.
unfortunately that didn't seem to work. Having trouble with this one, I've added a gated card too that pops up a form which is placed inside the CMS item but when clicking it opens all forms for for each item. Taking a break from it and will tackle it fresh again later or tomorrow.
Thanks for any advice in the meantime.
17 replies
WBWeb Bae
•Created by Scott Humphrey on 3/16/2023 in #❓︱questions
Attributes 'Copy to Clipboard' not woking on Collection list.
17 replies