Large

Simplepedia

By Grant Stavely Last update Jul 16, 2010 — Installed 21,596 times.

TOC toggle & print (previously Toggle TOC link gone???)

in
Subscribe to TOC toggle & print (previously Toggle TOC link gone???) 7 posts, 2 voices



auscompgeek User

I found today that Simplepedia/Devpedia removes the show/hide link for the contents. Consequently I found myself having to save the bookmarklet to show/hide the TOC. Please put back the link.

 
Grant Stavely Script's Author

I brought it back for you.

 
auscompgeek User

Thank you very much, now when I print, it will be easier to hide the contents. :)
I wonder how it got hidden in the first place.

 
Grant Stavely Script's Author

I never use it, so I hid it.

Simplepedia doesn't have a print version but it would be trivial to add one. Then I could force the Table of Contents table to be hidden in the print version, and take the screen version's toggle away again.

 
auscompgeek User

Using Simplepedia's CSS is a printable version!

 
Grant Stavely Script's Author

CSS provides a specific attribute for 'screen' and 'print' versions of a document. Most sites just have one for 'all', but I could easily make a 'print' version of Simplepedia. Footnote hyperlinks and top/bottom navigation make no sense for a print version, they might as well disappear. I'll experiment this weekend hopefully.

 
auscompgeek User

you've got a point there...

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel