-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (68 loc) · 2.6 KB
/
index.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JYM FYTNES</title>
<link rel="stylesheet" href="static/css/styles.css">
</head>
<body>
<h1>JYM FYTNES</h1>
<!-- Add the tabs at the top of the page -->
<div class="tab">
<button class="tablinks" onclick="openTab(event, 'HomePage')">Home Page</button>
<button class="tablinks" onclick="openTab(event, 'Classes')">Classes</button>
<button class="tablinks" onclick="openTab(event, 'Account')">Account</button>
<button class="tablinks" onclick="openTab(event, 'Events')">Events</button>
<!-- Add the sign in tab -->
<button class="tablinks right" onclick="openTab(event, 'SignIn')">Sign In</button>
</div>
<!-- Add the content for each tab -->
<div id="HomePage" class="tabcontent">
<h3>Home Page</h3>
<p>Home page content goes here.</p>
</div>
<div id="Classes" class="tabcontent">
<h3>Classes</h3>
<p>Classes content goes here.</p>
</div>
<div id="Account" class="tabcontent">
<h3>Account</h3>
<p>Account content goes here.</p>
</div>
<div id="Events" class="tabcontent">
<h3>Events</h3>
<p>Events content goes here.</p>
</div>
<!-- Add the sign in tab content -->
<div id="SignIn" class="tabcontent">
<h3>Sign In</h3>
<p>Sign in content goes here.</p>
</div>
<!-- Show error or success messages if there are any -->
{% with messages = get_flashed_messages(with_categories=true) %}
<!-- Check to see if there are any messages to show -->
{% if messages %}
{% for category, message in messages %}
<p class="alert {{ category }}">{{ message }}</p>
{% endfor %}
{% endif %}
{% endwith %}
<!-- Add some JavaScript to handle the tab switching -->
<script>
function openTab(evt, tabName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(tabName).style.display = "block";
evt.currentTarget.className += " active";
}
</script>
</body>
</html>