My Posts
Post Details | Date Published | Views | Likes |
---|
05-16-2023
10:00 AM
2 Likes
@chadscott
Thanks again for a great script. I just looked into it again today, and I wanted to change the color of the button, and it was not working from what I had seen in other scripts. I finally found out why.
on line 40, you have
el.classList.add('Button','button-primary','element_toggler');
which gives me a gray button (which may have been your intention), but If I change button-primary to Button--primary I get the blue color box selection. I wanted the button to be green, so I used Button--success.
So to get the primary blue color, button has to be capitalized and the double hyphen is needed.
Ron
... View more