60 lines
2.0 KiB
HTML
60 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>科普视频</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav>
|
|
<ul>
|
|
<li><a href="{{ url_for('index') }}">homepage</a></li>
|
|
<li><a href="{{ url_for('signin') }}">Sign In</a></li>
|
|
<li><a href="{{ url_for('signup') }}">Sign Up</a></li>
|
|
<li><a href="{{ url_for('dashboard') }}">Dashboard</a></li>
|
|
{% if 'user' in session %}
|
|
<li><a href="{{ url_for('user') }}">User Profile</a></li>
|
|
<li><a href="{{ url_for('logout') }}">Logout</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
<main>
|
|
<div class="container">
|
|
<div class="content">
|
|
<h1>科普视频</h1>
|
|
<video id="videoPlayer" controls>
|
|
<source src="{{ url_for('static', filename='1.mp4') }}" type="video/mp4">
|
|
Your browser does not support the video tag.
|
|
</video>
|
|
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<footer>
|
|
<div class="footer-container">
|
|
<div class="footer-item"><a href="{{url_for('aboutus')}}"><strong>About Us</strong></a></div>
|
|
<div class="footer-item"><a href="https://flask.palletsprojects.com"><strong>About Flask</strong></a></div>
|
|
<div class="footer-item"><a href="http://www.scuec.edu.cn"><strong>About SCEUC</strong></a></div>
|
|
</div>
|
|
</footer>
|
|
<script>
|
|
const video = document.getElementById('videoPlayer');
|
|
|
|
function playVideo() {
|
|
video.play();
|
|
}
|
|
|
|
function pauseVideo() {
|
|
video.pause();
|
|
}
|
|
|
|
function setVolume(value) {
|
|
video.volume = value;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|