From 2567c03f4c36be2d4b99a2744ded28890fd94618 Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Sun, 27 Nov 2011 21:32:32 +0100 Subject: [PATCH] Qt: web intf: Ease mobile intf url access with QR-Code --- share/lua/http/index.html | 2 +- share/lua/http/js/ui.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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; + }); }) -- 2.39.2