-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
126 lines (118 loc) · 3.57 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html>
<head>
<title>Home Page</title>
<style>
body {
font-family: Arial;
background-color: whitesmoke;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
margin: 10;
}
h1 {
color: black;
margin: 0;
}
form {
background-color: white;
padding: 50px;
border-radius: 5px;
box-shadow: 0 5px 5px rgba(0,0,0,0.5);
max-width: 700px;
margin: auto;
}
label {
font-weight: bold;
display: block;
margin-top: 10px;
}
textarea, input[type="text"], input[type="email"] {
width: 100%;
padding: 8px;
margin-top: 6px;
border: 1px solid;
border-radius: 4px;
}
input[type="submit"] {
background-color: green;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
display: block;
width: 100%;
margin-top: 10px;
}
input[type="submit"]:hover {
background-color: darkgreen;
}
nav {
background-color: black;
overflow: hidden;
}
nav a {
float: left;
display: block;
color: white;
text-align: center;
padding: 8px 20px;
text-decoration: none;
}
nav a:hover, nav a.logo:hover {
background-color: darkgreen;
color: black;
}
nav a.logo {
padding: 0;
}
nav img {
display: block;
height: 25px;
padding: 4px 20px;
}
.header {
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
}
.header img {
height: 40px;
width: auto;
}
</style>
</head>
<body>
<nav>
<a href="/" class="logo"><img src="{{ url_for('static', filename='logo.png') }}"></a>
<a href="/about">About</a>
<a href="/references">References</a>
</nav>
<div class="header">
<img src="{{ url_for('static', filename='logo.png') }}">
<h1>ViralGeneClock</h1>
</div>
<form method="post" action="/run" id="myForm">
<label for="fasta_sequence">FASTA Sequence:</label>
<textarea id="fasta_sequence" name="fasta_sequence" rows="10" cols="80" placeholder="Enter FASTA sequences of the strains here..." required></textarea>
<label for="reference_genome">Reference Genome:</label>
<input type="text" id="reference_genome" name="reference_genome" placeholder="Enter reference genome ID from the FASTA header" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email address" required>
<input type="submit" value="Run">
</form>
<script>
document.getElementById('myForm').onsubmit = function() {
var email = document.getElementById('email').value;
var fasta = document.getElementById('fasta_sequence').value;
if (!email.includes('@') || fasta.trim() === '') {
alert('Please enter a valid email and FASTA sequence.');
return false;
}
return true;
};
</script>
</body>
</html>