Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
readme.txt | 2013-08-29 | 2.7 kB | |
flyer.js | 2013-08-29 | 31.9 kB | |
booklet.html | 2013-08-29 | 96.8 kB | |
print2.0-1.1.zip | 2013-08-29 | 32.4 kB | |
Totals: 4 Items | 163.8 kB | 0 |
Need to get some information out to the masses? This javascript program gives you the tools to print posters and booklets with an easy interface that does most of the work for you, even the HTML itself! The coolest feature is that it creates a new "qr" tag, allowing you to add QR codes to your printout with as little effort as creating a hyperlink. Right now we only know that it works on Firefox. It may work on other browsers, but don't count on it. booklet.html: Open this HTML file in Firefox to get started making booklets. It explains everything as you go. flyer.js: This one's almost as easy as the HTML file. Since any poster can be made using a simple HTML file, I created a JavaScript file that makes the process even simpler. Put the .JS file in the same folder as your HTML file, then include the following code somewhere in your HTML: <script language=javascript src=flyer.js></script> This will enable you to generate QR codes using an HTML tag. Example: <qr href=http://www.sourceforge.net size=3> The "href" and "size" attributes are required, but there are two other attributes which are optional: "mode" and "align". The default "mode" is to draw the QR code on a HTML5 canvas then turn it into an "image" that you can wrap text around with the "align" attribute: <qr href=http://www.sourceforge.net size=3 align=left> or: <qr href=http://www.sourceforge.net size=3 align=right> If that doesn't work, try the "canvas" mode instead, though it doesn't let you wrap text: <qr href=http://www.sourceforge.net size=3 mode=canvas> Then the last resort is "table" mode, which draws the QR code by making an HTML table and coloring each square black or white: <qr href=http://www.sourceforge.net size=3 mode=table> List of QR modes: table canvas image Anonymous printing using the "scramble" function: All color printers embed timestamps and serial numbers into all their printouts in the form of yellow dots that are almost invisible to the naked eye. This is done to help the government track down the authors of documents more easily. That's why we included this "scramble" feature. If we did it right, your printer's embedded tracking data will be drowned out in a sea of yellow noise. To activate, bind the "scramble" function to your HTML body's "onload" event: Before: <body> After: <body onload="scramble();"> Toggle the feature on and off by double-clicking the page. credits: Javascript QR Encoder, Copyright 2010, tz@execpc.com, released under GPLv3 zdez.org/qrenc2.html