Commit 2567c03f authored by François Cartegnie's avatar François Cartegnie 🤞

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

parent b7f09562
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
</div> </div>
<div class="footer"> <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> </div>
</div> </div>
......
...@@ -81,4 +81,11 @@ $(function () { ...@@ -81,4 +81,11 @@ $(function () {
return false; return false;
}); });
$('#stream_host').val(stream_server); $('#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