Commit 95098553 authored by Medicean's avatar Medicean

(Easter egg: Loading) Christmas Easter egg

parent 04972513
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* 自动检查更新每24小时触发一次(GitHub 访问频率限制) * 自动检查更新每24小时触发一次(GitHub 访问频率限制)
* 插件市场默认窗口大小调整 * 插件市场默认窗口大小调整
* Loading 界面增加了圣诞节彩蛋,偶尔跟风过个节
## 2018/12/05 `(v2.0.2)` ## 2018/12/05 `(v2.0.2)`
......
...@@ -85,6 +85,17 @@ window.addEventListener('load', () => { ...@@ -85,6 +85,17 @@ window.addEventListener('load', () => {
}); });
} }
/**
* 加载界面 UI 修改
*/
function loadingUI() {
let now = new Date();
/** 加载圣诞节 loading 效果 */
if(now.getMonth()+1 == 12) {
document.getElementById('loading').classList.add('loading_christmas');
}
}
loadingUI();
// 开始加载css // 开始加载css
loadCSS('ant-static://libs/bmenu/bmenu.css') loadCSS('ant-static://libs/bmenu/bmenu.css')
.then(() => loadCSS('ant-static://libs/toastr/toastr.min.css')) .then(() => loadCSS('ant-static://libs/toastr/toastr.min.css'))
......
...@@ -11,11 +11,18 @@ html, body, #container, #loading { ...@@ -11,11 +11,18 @@ html, body, #container, #loading {
position: fixed; position: fixed;
background-color: #FFF; background-color: #FFF;
text-align: center; text-align: center;
background-image: url(ant-static://imgs/load.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 50% 50%; background-position: 50% 50%;
} }
.loading_default {
background-image: url(ant-static://imgs/load.png);
}
.loading_christmas {
background-image: url(ant-static://imgs/load-christmas.png);
}
/*sidebar.bubble*/ /*sidebar.bubble*/
.dhxsidebar_bubble { .dhxsidebar_bubble {
width: auto !important; width: auto !important;
......
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
<script src="ant-src://load.entry.js"></script> <script src="ant-src://load.entry.js"></script>
</head> </head>
<body> <body>
<div id="loading"></div> <div id="loading" class="loading_default"></div>
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment