PDA

View Full Version : BBCodee help


Irishnotsane
05-02-2020, 01:57 PM
Hi,

Can anyone tell me how I can edit the BBCode below so that upon clicking "Hide" it'll then display "Show" instead of displaying the original Warning: Contains inappropriate content

Thanks in advance!

<div class='spoiler'>
<button style='padding: 3px;' onclick="event.preventDefault ? event.preventDefault() : event.returnValue = false; $(this).parent().find('button').toggle(); $(this).parent().find('.scontent').first().slideTo ggle(); ">Warning: Contains inappropriate content</button>
<button style=' display: none; padding: 3px;' onclick="event.preventDefault ? event.preventDefault() : event.returnValue = false; $(this).parent().find('button').toggle(); $(this).parent().find('.scontent').first().slideTo ggle(); ">Hide</button>
<div class='scontent' style='display: none;'>
{param}
</div>
</div>

Seven Skins
05-03-2020, 08:26 PM
Try this..

<div class='spoiler'>
<button style='padding: 3px;' onclick="event.preventDefault ? event.preventDefault() : event.returnValue = false; $(this).parent().find('button').toggle(); $(this).parent().find('.scontent').first().slideTo ggle(); ">Show</button>
<button style=' display: none; padding: 3px;' onclick="event.preventDefault ? event.preventDefault() : event.returnValue = false; $(this).parent().find('button').toggle(); $(this).parent().find('.scontent').first().slideTo ggle(); ">Hide</button>
<div class='scontent' style='display: none;'>
{param}
</div>
</div>

Irishnotsane
05-04-2020, 07:30 AM
Thanks for your reply!

Sorry should have been more clear.
I need it so that it displays "Warning: Contains inappropriate content" then once clicked it'll display "Hide" then once you click "Hide" it'll then only display "Show" instead of the original message of Warning: Contains inappropriate content