Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
95098553
Commit
95098553
authored
Dec 25, 2018
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Easter egg: Loading) Christmas Easter egg
parent
04972513
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
2 deletions
+21
-2
CHANGELOG.md
CHANGELOG.md
+1
-0
load.entry.js
source/load.entry.js
+11
-0
index.css
static/css/index.css
+8
-1
load-christmas.png
static/imgs/load-christmas.png
+0
-0
index.html
views/index.html
+1
-1
No files found.
CHANGELOG.md
View file @
95098553
...
...
@@ -23,6 +23,7 @@
*
自动检查更新每24小时触发一次(GitHub 访问频率限制)
*
插件市场默认窗口大小调整
*
Loading 界面增加了圣诞节彩蛋,偶尔跟风过个节
## 2018/12/05 `(v2.0.2)`
...
...
source/load.entry.js
View file @
95098553
...
...
@@ -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
loadCSS
(
'ant-static://libs/bmenu/bmenu.css'
)
.
then
(()
=>
loadCSS
(
'ant-static://libs/toastr/toastr.min.css'
))
...
...
static/css/index.css
View file @
95098553
...
...
@@ -11,11 +11,18 @@ html, body, #container, #loading {
position
:
fixed
;
background-color
:
#FFF
;
text-align
:
center
;
background-image
:
url(ant-static://imgs/load.png)
;
background-repeat
:
no-repeat
;
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*/
.dhxsidebar_bubble
{
width
:
auto
!important
;
...
...
static/imgs/load-christmas.png
0 → 100644
View file @
95098553
153 KB
views/index.html
View file @
95098553
...
...
@@ -7,6 +7,6 @@
<script
src=
"ant-src://load.entry.js"
></script>
</head>
<body>
<div
id=
"loading"
></div>
<div
id=
"loading"
class=
"loading_default"
></div>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment