Commit 2567c03f authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: web intf: Ease mobile intf url access with QR-Code

parent b7f09562
......@@ -255,7 +255,7 @@
</div>
<div class="footer">
VLC <?vlc print(vlc.misc.version() .. " - Lua Web Interface - " .. vlc.misc.copyright()) ?>
VLC <?vlc print(vlc.misc.version() .. ' - Lua Web Interface - <a id="mobileintflink" href="/mobile.html">Mobile Interface</a> - ' .. vlc.misc.copyright()) ?>
</div>
</div>
</div>
......
......@@ -81,4 +81,11 @@ $(function () {
return false;
});
$('#stream_host').val(stream_server);
$('#mobileintflink').click(function () {
var urlimg = location.href + '/mobile.html';
var codeimg = $('<img width="350" height="350" alt="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;
});
})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment