Skip to content
Snippets Groups Projects
Commit 6ae8e50c authored by HauErn Lien's avatar HauErn Lien
Browse files

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
<!-- main.html -->
{% extends "layout.html" %}
{% block title %}Main Page{% endblock %}
{% block lead %}
欢迎来到我的网站
{% endblock %}
{% block page_content %}
<h2>这是主要内容。</h2>
<p>更多内容在这里。</p>
{% endblock %}
......@@ -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)
})
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment