slitaz-dev-tools rev 231

may resize qrcode
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 26 09:27:03 2014 +0200 (2014-06-26)
parents 31695e9c1c85
children cb4d9f3aa7d8
files slitaz-mercurial-style/templates/slitaz/footer.tmpl
line diff
     1.1 --- a/slitaz-mercurial-style/templates/slitaz/footer.tmpl	Sun Jun 22 18:46:15 2014 +0200
     1.2 +++ b/slitaz-mercurial-style/templates/slitaz/footer.tmpl	Thu Jun 26 09:27:03 2014 +0200
     1.3 @@ -4,6 +4,7 @@
     1.4  <script type="text/javascript">
     1.5  	function QRCodePNG(str, obj) \{
     1.6  		try \{
     1.7 +			obj.height = obj.width += 300;
     1.8  			return QRCode.generatePNG(str, \{ecclevel: 'H'});
     1.9  		}
    1.10  		catch (any) \{