Fable Widget

There are two different fable widgets available: a 200-pixel version (good for blog sidebars) or a 400-pixel version (which is also available in a Canvas-friendly version). To create these widgets, I have chosen the 100 shortest fables in the Library currently; the 400-pixel version is prose only, while the 200-pixel version contains both prose and verse. Each item in the widget contains a link back to the blog post page for the book that the fable comes from.  You can see the widget in action here (and in the sidebar of this blog too):


Here is the code you need for each, including a Canvas-friendly version:

200 PIXELS

<script type="text/javascript"> var display = " " </script><script type="text/javascript" src="https://widgets.lauragibbs.net/aesop/randomfable200.js"></script>

400 PIXELS

<script type="text/javascript"> var display = " " </script><script type="text/javascript" src="https://widgets.lauragibbs.net/aesop/randomfable400.js"></script>

CANVAS 400 PIXELS

<iframe src="https://widgets.lauragibbs.net/canvas/aesopfable.html" width="450" height="1800"></iframe>


No comments:

Post a Comment