Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make spoiler buttons work again #2

Open
DosAmp opened this issue Oct 10, 2017 · 0 comments
Open

Make spoiler buttons work again #2

DosAmp opened this issue Oct 10, 2017 · 0 comments
Assignees

Comments

@DosAmp
Copy link
Member

DosAmp commented Oct 10, 2017

Two problems have to be solved so that spoiler buttons as implemented in MyCode also work on whfefe:

  • the quote scrubbing function must be modified to both detect the opening (<blockquote style="display:none;" class="spoiler">) and closing quote tag of spoiler containers and leave them alone
  • the Javascript code in tags must be fixed, preferably in an external script

Currently broken example:

<li><!-- ... -->
<br>
<div>
<button type="button" onclick="this.update('Spoiler '+(this.next('blockquote').toggle().visible()?'verstecken':'anzeigen'));">Spoiler anzeigen</button><br>
<blockquote style="display:none;" class="spoiler"><!-- content of spoiler goes here -->
<!-- {/blockquote} tag is missing here, which also clobbers $quotedepth and throws off nested quotes/spoilers -->
</div><!-- ... --></li>
@DosAmp DosAmp self-assigned this Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant