View Single Post
Old 06-06-2015, 02:44 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
It looks like a nested list is meant:

Code:
<ul>
<li>Colophon</li>
<li>Capitoli
    <ul id="spoiler">
    <li>Capitolo 1</li>
    <li>Capitolo 2</li>
    ...
    </ul></li>
<li>Archivio Audio</li>
</ul>
Or you should apply the display and onclick properties to the individual items:

Code:
<ul>
<li>Colophon</li>
<li>Capitoli</li>
<li class="spoiler" style="display:none">Capitolo 1</li>
<li class="spoiler" style="display:none">Capitolo 2</li>
...
<li>Archivio Audio</li>
</ul>
(and modify the javascript so that it alters the display property for each and every li element with class="spoiler")
Jellby is offline   Reply With Quote