From: Francois Cartegnie Date: Sun, 27 Nov 2011 20:32:32 +0000 (+0100) Subject: Qt: web intf: Ease mobile intf url access with QR-Code X-Git-Tag: 1.3.0-git~2 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2567c03f4c36be2d4b99a2744ded28890fd94618;p=vlc Qt: web intf: Ease mobile intf url access with QR-Code --- diff --git a/share/lua/http/index.html b/share/lua/http/index.html index 3f79537308..2d84163fc7 100644 --- a/share/lua/http/index.html +++ b/share/lua/http/index.html @@ -255,7 +255,7 @@ diff --git a/share/lua/http/js/ui.js b/share/lua/http/js/ui.js index 50a0df4b26..7fe3207ad2 100644 --- a/share/lua/http/js/ui.js +++ b/share/lua/http/js/ui.js @@ -81,4 +81,11 @@ $(function () { return false; }); $('#stream_host').val(stream_server); + $('#mobileintflink').click(function () { + var urlimg = location.href + '/mobile.html'; + var codeimg = $('qrcode'); + codeimg.attr('src', 'http://chart.apis.google.com/chart?cht=qr&chs=350x350&chld=L&choe=UTF-8&chl=' + encodeURIComponent(urlimg)); + codeimg.dialog({width: 350, height: 350, title: 'QR-Code'}); + return false; + }); })