slitaz-forge view 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
line source
1 <!-- Start of footer and copy notice -->
2 <div id="copy">
3 <p>
4 Copyright &copy; <span class="year"></span> <a href="http://www.slitaz.org/">SliTaz</a> -
5 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
6 </p>
7 <!-- End of copy -->
8 </div>
10 <!-- Bottom and logo's -->
11 <div id="bottom">
12 <p>
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>
14 </p>
15 <p>
16 <script type="text/javascript">
17 function QRCodePNG(str, obj) {
18 try {
19 return QRCode.generatePNG(str, {ecclevel: 'H'});
20 }
21 catch (any) {
22 var element = document.createElement("script");
23 element.src = "/static/qrcode.js";
24 element.type ="text/javascript";
25 element.onload = function() {
26 obj.src = QRCode.generatePNG(str, {ecclevel: 'H'});
27 };
28 document.body.appendChild(element);
29 }
30 }
31 </script>
32 <img src="/static/qr.png" alt="#" onmouseover="this.title = location.href"
33 onclick="this.src = QRCodePNG(location.href, this)" />
34 </p>
35 </div>
37 </body>
38 </html>