Compare commits

..

No commits in common. "cc8b6ed9e77f739ba0e9cd2ec18b314228af2ecb" and "7a7ded23df5e4700b99bb42c8047d7cad43d47fe" have entirely different histories.

View File

@ -16,15 +16,14 @@ $(function () {
window.$body = $('body');
/*! 登录界面背景切换 */
$('[data-supersized]').each(function (i, el) {
el.idx = 0, el.imgs = [], el.state = setInterval(function () {
el.imgs.length > 0 && $body.css({
backgroundImage: 'url(' + (el.imgs[++el.idx] || el.imgs[el.idx = 0]) + ')'
});
}, 5000) && el.dataset.supersized.split(',').forEach(function (url) {
/*! 后台界面背景切换 */
$('[data-supersized]').map(function () {
var idx = 0, imgs = [];
window.setInterval(function () {
imgs.length > 0 && $body.css({backgroundImage: 'url(' + (imgs[++idx] || imgs[idx = 0]) + ')'});
}, 5000) && this.dataset.supersized.split(',').forEach(function (url) {
layui.img(url, function () {
el.imgs.push(url);
imgs.push(url);
});
});
});