-module (demos_qr).
-include_lib ("nitrogen_core/include/wf.hrl").

main() -> #template { file="./templates/demos46.html" }.

title() -> "QR Codes".
headline() -> "QR Codes".

left() -> 
        <script src='/nitrogen/qrcode.min.js'></script>
    The <code>#qr{}</code> element lets you easily add a QR code to your
    page or application.  If no data is specified, the QR code will default
    to the current URL.",

right() -> [
    #h2{text="300 pixel QR code of current page" },

  #h2{text="QR code of Nitrogen on Github"},

  #h2{text="QR code of some text"},
  #qr{data="What if I told you you could build a website without writing javascript?"}

event(_) -> ok.