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>
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>