Jump to content

Can't reproduce a spoiler button


Recommended Posts

Hello,

 

I am trying to reproduce this on my website: https://codepen.io/oloman/pen/ExvKJN

 

I copy the css code in the custom.css file of my theme, then I copy-paste the html code in a post of my forum.

 

This is the result I get:

 

Could contain: Text, Document, File, Page, Webpage

 

I correctly see the spoiler button and the first time the button works fine: I click on the pink "Spoiler" button and the text appears. But after I update the page, the text in the spoiler is not hidden anymore, if I cluck on the Spoiler button it gets grey (as it should be), but the text insie the spoiler is not hidden anymore.

 

Am I doing something wrong?

Thanks!

Link to comment
Share on other sites

Thanks for posting!

Unfortunately, this issue is beyond the scope of our technical support. 👩‍💻

Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications.

I've moved this to our Community Support area where other Invision Community owners will see it and help where they can.

Link to comment
Share on other sites

14 minutes ago, Nathan Explosion said:

Just curious - any reason for doing this, instead of using the native IPS spoiler?

Hello Nathan, yes, this is the problem I face wirh the native IPS spoiler: 

 

Link to comment
Share on other sites

On 7/2/2022 at 3:39 PM, Nathan Explosion said:

Just curious - any reason for doing this, instead of using the native IPS spoiler?

Hello Nathan,

 

Please have a look at these two records.

 

Record1: https://totallympics.com/databasetest/records/spoiler-test-1-r12/

Record2: https://totallympics.com/databasetest/records/spoiler-test-2-r10/

 

Record1 is correct, the spoiler works fine. I have copied html code and css code from here: https://codepen.io/oloman/pen/ExvKJN

 

Record2 was also correct, but after I edited the record one time, it gets wrong. If you edit Record1 and do any edit (even just add or remove a letter) and you save, you will also get the same result of Record1 (the spoiler button does not work, the text is shown even without clicking the button).

 

Can you replicate that as well?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...