Update sysauth.htm

This commit is contained in:
jerrykuku 2020-08-18 00:21:32 +08:00
parent f40309d61e
commit 0769b35f4c

View File

@ -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;