Replies

Mar 11, 2020 6 years ago
ahoy
kicks butts
User Avatar

Hey all!

I’m getting my feet wet with JavaScript and I wanted to try some things out on a profile. I noticed that on the sCode page, there is a little disclaimer that mentions CSS/JS quirks in profiles, so I assume they’re at least partially supported? I know profiles wonk out when using square brackets, so I guess I could host a script externally, but I don’t want to sink time into trying if this has already been tried and failed.

Does anyone have experience with this, and if so, have you noticed any limitations? Have you seen any example profiles out there using JS successfully?

Thanks in advance! ✨

[edit]

Answer:

It looks like some JavaScript and jQuery is supported. The profile pages utilize Bootstrap 4 CSS and JS, which means that we can piggyback off of any of the defined selectors/example code within the Bootstrap documentation, and ultimately implement things like accordion-style collapsible sections, which is pretty neat. Their documentation is pretty friendly, very thorough, and provides a ton of examples that are well explained.

I'll play with it some more and see what I can come up with. Just wanted to share the answer that I found for anyone who might want this information!

TL;DR: Profiles support some JavaScript.

? [tot=ahoy] ?

Please log in to reply to this topic.