mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update login.js
This commit is contained in:
parent
5dbaa0f671
commit
20329007f5
@ -18,10 +18,9 @@ $(function () {
|
|||||||
|
|
||||||
/*! 登录界面背景切换 */
|
/*! 登录界面背景切换 */
|
||||||
$('[data-supersized]').each(function (i, el) {
|
$('[data-supersized]').each(function (i, el) {
|
||||||
el.idx = 0, el.imgs = [], el.state = setInterval(function () {
|
el.idx = 0, el.imgs = [], el.lazy = setInterval(function () {
|
||||||
el.imgs.length > 0 && $body.css({
|
if (el.imgs.length > 0) return;
|
||||||
backgroundImage: 'url(' + (el.imgs[++el.idx] || el.imgs[el.idx = 0]) + ')'
|
$body.css({backgroundImage: 'url(' + (el.imgs[++el.idx] || el.imgs[el.idx = 0]) + ')'});
|
||||||
});
|
|
||||||
}, 5000) && el.dataset.supersized.split(',').forEach(function (url) {
|
}, 5000) && el.dataset.supersized.split(',').forEach(function (url) {
|
||||||
layui.img(url, function () {
|
layui.img(url, function () {
|
||||||
el.imgs.push(url);
|
el.imgs.push(url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user