Update sysauth.htm
This commit is contained in:
parent
f40309d61e
commit
0769b35f4c
@ -109,8 +109,13 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var input = document.getElementsByName('luci_password')[0];
|
||||
if (input)
|
||||
input.focus();
|
||||
//]]></script>
|
||||
<%
|
||||
if (bgcount == 0) then
|
||||
if (bgcount == 0 ) then
|
||||
local bingjson = "{}"
|
||||
local http = require "socket.http"
|
||||
local bing = http.request("http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US")
|
||||
@ -119,9 +124,6 @@
|
||||
end
|
||||
%>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
var input = document.getElementsByName('luci_password')[0];
|
||||
if (input)
|
||||
input.focus();
|
||||
try {
|
||||
var bing = <%=bingjson%>;
|
||||
var bg = "https://www.bing.com" + bing.images[0].url;
|
||||
@ -130,7 +132,7 @@
|
||||
console.log("can not access bing api");
|
||||
$(".login-page").css("background-image", "url(<%=media%>/img/bg1.jpg)");
|
||||
}
|
||||
//]]></script>
|
||||
//]]></script>
|
||||
<% elseif (bgcount > 0 and currentBg["type"] ~= "mp4") then%>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
console.log("can not access bing api");
|
||||
|
Loading…
x
Reference in New Issue
Block a user