Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 743 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 743 Bytes

Lunicorn!

handling iframes with grace and chill.

installing

download the packaged files in /dist (.min.js should work, but may be buggy) these files contain pym.js, so if your project already includes pym, you'll want to build an alternate.

or

you could npm at the github version of the module if you play that way.

using

<script src='lunicorn-0.1.0.js'></script>
<div id="gimme-an-iframe"></div>

<script>
  var domId="gimme-an-iframe" //domId sans #
  var url="luncicorn.biz/external_widget/datusertho")
  
  Luncicorn.createIframe(domId, url)
<script>

et VIOLA!

Todo:

  • We still have to make the flash messaging stuff work off of ziv.
  • We should probably have it give a userId, rather than url