|
ASCIIsvg.js (ver 1.2) download pageASCIIsvg.js is freely available under the GNU General Public License. The current version is 1.2 (what's new). It is very easy to use ASCIIsvg.js on your own webpages. If you use it on a webpage, please put a link to www.chapman.edu/~jipsen/asciisvg.html on that webpage and send me an email at jipsen@chapman.edu with the URL so that I can add a link on the users page. (Also send me an email if you have problems or would like to provide some feedback.) Here is the script: ASCIIsvg.js (right-click on the link and choose "Save Target As..." if your browser does not display the JavaScript code). To use ASCIIsvg, you also need to download the file d.svg (right-click on the link and choose "Save Target As..."). This dummy file is used by the Adobe Plugin to store the dynamically generated picture. To write your own HTML file that uses ASCIIsvg.js, save your file with the standard .html extension and use the following lines at the top of your file: <html> <head> <script type="text/javascript" src="ASCIIsvg.js"></script> <title>your title...</title> </head> <body> Note that ASCIIsvg.js and d.svg should be in the same folder as your HTML file. That's it!Check that the HTML file is viewable by IE+Adobe SVGviewer and SVG enabled Mozilla/Firefox. Here is a sample file that you can save and modify to suit your local needs. |