-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
58 lines (51 loc) · 1.33 KB
/
main.html
File metadata and controls
58 lines (51 loc) · 1.33 KB
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>User Anagram Engine</title>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: #111;
}
</style>
</head>
</head>
<body bgcolor="#E6E6FA">
{% if user%}
<ul>
<li><a href="/wordlist">AddWords</a></li>
<li><a href="{{ url }}">Logout</a></li>
</ul>
<center><font size="5"> {{ welcome }} {{ user.email() }} </font><br/></center>
<center><font size="3">Search for anagrams</font><br/>
<form method="get" action="/">
<input type="text" name="value_2" pattern="[A-Za-z]{3,}" title="Enter alphabets only" value=""><br/>
<input type="submit" name="button" value="Search"/>
</form></center>
{% for x in anagramlist %}
<center><p>{{ x }}<form method="get" action="/"><input type="hidden" value="{{ loop.index }}" name="index"/>
</form></center></p>
{% endfor %}
{% else %}
<center><font size="5"><p>Hello guest welcome to the application</p></font></center>
<center><font size="3"> <p>you can {{ url_string }} <a href='{{ url }}'>here</a></p></font></center>
{% endif %}
</body>
</html>