Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
2567c03f
Commit
2567c03f
authored
Nov 27, 2011
by
François Cartegnie
🤞
Browse files
Qt: web intf: Ease mobile intf url access with QR-Code
parent
b7f09562
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/lua/http/index.html
View file @
2567c03f
...
...
@@ -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>
...
...
share/lua/http/js/ui.js
View file @
2567c03f
...
...
@@ -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
;
});
})
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment