-
Notifications
You must be signed in to change notification settings - Fork 12.5k
/
Copy pathindex.html
42 lines (36 loc) · 1.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Input Web Page</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="static/js/output.js"></script>
</head>
<body>
<div class="container text-center mt-4">
<img src="https://www.wikipedia.org/portal/wikipedia.org/assets/img/[email protected]" height="150px" width="150px">
<h1>Wikipedia</h1>
</div>
<form action="/display" method="post" class="container mt-4" onsubmit="return validateForm()">
<div class="form-group">
<label for="topic">Topic Name:</label>
<input type="text" class="form-control" name='topic' id="topic" placeholder="Enter Topic" required>
</div>
<div class="form-group">
<label for="language">Select Language:</label>
<select name="language" id="language" class="form-control" required>
<option value="Select">Select</option>
{% for language in languages %}
<option value="{{ language }}">{{ language }}</option>
{% endfor %}
</select>
</div>
<input type="submit" value="Submit" class="btn btn-primary">
<input type="reset" value="Clear" class="btn btn-danger">
</form>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>