-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.html
55 lines (43 loc) · 1.76 KB
/
layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="https://static.igem.wiki/common/icons/favicons/igem-2022.svg"/>
<link rel="license" href="https://creativecommons.org/licenses/by/4.0/"/>
<!-- Bootstrap CSS -->
<link href="{{ url_for('static', filename = 'bootstrap.min.css') }}" rel="stylesheet">
<!-- Custom CSS -->
<link href="{{ url_for('static', filename = 'style.css') }}" rel="stylesheet">
<title>{% block title %}{% endblock %} | IIT-Roorkee - iGEM 2023</title>
</head>
<body>
<!-- Navigation -->
{% include 'menu.html' %}
<!-- Page Content -->
{% block page_content %}{% endblock %}
<video id="v0" tabindex="0" autobuffer preload>
<source src="{{ url_for('static', filename = 'bottomside.mp4') }}"/>
Your browser does not support the video tag.
</video>
<script>
var vid = document.getElementById("v0");
// Pause video on load
vid.pause();
// Pause video on document scroll (stops autoplay once scroll started)
window.onscroll = function () {
vid.pause();
};
// Refresh video frames on an interval for smoother playback
setInterval(function () {
vid.currentTime = window.pageYOffset / 400;
}, 40);
</script>
<!-- Footer: MUST mention license AND have a link to team wiki's repository on gitlab.igem.org -->
{% include 'footer.html' %}
<!-- Bootstrap Bundle with Popper -->
<script src="{{ url_for('static', filename = 'bootstrap.bundle.min.js') }}" ></script>
<script src="../static/arrow.js"></script>
</body>
</html>