Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tsinghua
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zhefu Li
Tsinghua
Commits
6ae8e50c
Commit
6ae8e50c
authored
5 months ago
by
HauErn Lien
Browse files
Options
Downloads
Patches
Plain Diff
Update 2 files
- /wiki/pages/main.html - /wiki/pages/tryhomepage.html
parent
47384078
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
wiki/pages/main.html
+13
-0
13 additions, 0 deletions
wiki/pages/main.html
wiki/pages/tryhomepage.html
+3
-13
3 additions, 13 deletions
wiki/pages/tryhomepage.html
with
16 additions
and
13 deletions
wiki/pages/main.html
0 → 100644
+
13
−
0
View file @
6ae8e50c
<!-- main.html -->
{% extends "layout.html" %}
{% block title %}Main Page{% endblock %}
{% block lead %}
欢迎来到我的网站
{% endblock %}
{% block page_content %}
<h2>
这是主要内容。
</h2>
<p>
更多内容在这里。
</p>
{% endblock %}
This diff is collapsed.
Click to expand it.
wiki/pages/tryhomepage.html
+
3
−
13
View file @
6ae8e50c
...
...
@@ -71,10 +71,7 @@
opacity
:
0
;
transition
:
ease-in-out
0.5s
;
}
/* Main content */
#main-content
{
display
:
none
;
}
</style>
</head>
...
...
@@ -90,16 +87,10 @@
<h4>
Logo.
</h4>
</header>
<div
id=
"main-content"
>
{% extends "layout.html"}
{% block title%} Main Page {% endblock%}
</div>
<script>
let
intro
=
document
.
querySelector
(
'
.intro
'
);
let
logo
=
document
.
querySelector
(
'
.logo-header
'
);
let
logoSpan
=
document
.
querySelectorAll
(
'
.logo
'
);
let
mainContent
=
document
.
getElementById
(
'
main-content
'
);
window
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
setTimeout
(()
=>
{
...
...
@@ -122,9 +113,8 @@
setTimeout
(()
=>
{
intro
.
style
.
top
=
'
-100vh
'
;
setTimeout
(()
=>
{
intro
.
style
.
display
=
'
none
'
;
mainContent
.
style
.
display
=
'
block
'
;
},
1000
);
window
.
location
.
href
=
'
/main
'
;
},
1000
);
},
2300
)
})
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment