EnhancedPrinting 2.1

With this script and some CSS you easily can enhance the print layout of your website with additional information (as footnes), like showing the referring URL of links, marking them if they're external or the explanation of an abbreviation (<abbr>-tag).

(The initial version of this script was made for an article in the German "Webstandards-Magazin" (3/09).)



Details

Author
Fabian Beiner
Current version
2.1
GitHub
FabianBeiner/MooTools-Enhanced-Printing
Downloads
2183
Category
Utilities
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_:
    • core/1.2.4: '*'
    • more/1.2.4.2: 'URI'
    • more/1.2.4.2: 'Date'

How to use

Syntax

new EnhancedPrinting(content[, options]);

You have to include EnhancedPrinting.css or copy the styles into your CSS.

Arguments

  • content - (mixed) The element or the id of the element with the printable content.
  • options (object, optional) The options object described below:

Options

  • headings - (boolean) Default: true. Whether to show headers containing the title, url and last modified date of the document.
  • infoString - (string) How the information about the document is displayed. Placeholders: *url* and the keys of Date.format for the last modified date. Defaults to the american string '(%url% last edited at %x %X)'.
  • links - (boolean) Default: true. Whether to display footnotes containing the url of the link.
  • favicons - (boolean) Default: true: Whether to show favicons before the url.
  • abbr - (boolean) Default: true. Whether to show footnotes containing the expansions of the <abbr>-tags.

Screenshot

Screenshot


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus