slitaz-forge annotate usbkey/tail.php @ rev 568

chub, doc, forum, floppies, mirror-info, pkgs, pro, tank: on demand qrcode script load
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 22 18:37:40 2014 +0200 (2014-06-22)
parents 40ad99b9e839
children ba908ef4f9ff
rev   line source
pascal@204 1 <!-- Start of footer and copy notice -->
pascal@204 2 <div id="copy">
pascal@204 3 <p>
pascal@204 4 Copyright &copy; <span class="year"></span> <a href="http://www.slitaz.org/">SliTaz</a> -
pascal@204 5 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
pascal@204 6 </p>
pascal@204 7 <!-- End of copy -->
pascal@204 8 </div>
pascal@204 9
pascal@204 10 <!-- Bottom and logo's -->
pascal@204 11 <div id="bottom">
pascal@204 12 <p>
pascal@204 13 <a href="http://validator.w3.org/check?uri=referer"><img src="/static/xhtml10.png" alt="Valid XHTML 1.0" title="Code validé XHTML 1.0" style="width: 80px; height: 15px;" /></a>
pascal@204 14 </p>
pascal@348 15 <p>
pascal@348 16 <script type="text/javascript">
pascal@539 17 function QRCodePNG(str, obj) {
pascal@539 18 try {
pascal@539 19 return QRCode.generatePNG(str, {ecclevel: 'H'});
pascal@539 20 }
pascal@539 21 catch (any) {
pascal@539 22 var element = document.createElement("script");
pascal@539 23 element.src = "/static/qrcode.js";
pascal@539 24 element.type ="text/javascript";
pascal@539 25 element.onload = function() {
pascal@539 26 obj.src = QRCode.generatePNG(str, {ecclevel: 'H'});
pascal@539 27 };
pascal@539 28 document.body.appendChild(element);
pascal@539 29 }
pascal@539 30 }
pascal@348 31 </script>
pascal@539 32 <img src="/static/qr.png" alt="#" onmouseover="this.title = location.href"
pascal@539 33 onclick="this.src = QRCodePNG(location.href, this)" />
pascal@348 34 </p>
pascal@204 35 </div>
pascal@204 36
pascal@204 37 </body>
pascal@204 38 </html>