-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdictionary.html
More file actions
41 lines (37 loc) · 1.19 KB
/
dictionary.html
File metadata and controls
41 lines (37 loc) · 1.19 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
{% extends 'dashboard/index.html' %}
{% load static %}
{% block content %}
<section class='text-center container'>
<h2>Student Dictionary</h2>
<p>Enter any word to get the phonetics, definition and an example for the word</p>
<form action="" method="post">
{% csrf_token %}
{{form}}
<input class="btn btn-danger" type="submit" value="Submit">
</form><br>
<div class="content-section p-0 mt-5">
{% if input %}
<div class="custom-header">
<h2>{{input}}</h2>
<h6>{{phonetics}}</h6>
<audio id="player" src="{{audio}}"></audio>
<div>
<a onclick="document.getElementById('player').play()"<i class='fa fa-volume-up fa-2x'></i></a>
</div>
</div>
<hr class="p-0 m-0">
<p class="float-left">
<h4>Definition: {{definition}}</h4>
<h4>Example: {{example}}</h4>
</p>
Synonyms:
{% for synonym in synonyms %}
{{synonym}}
{% endfor %}
<hr>
</div>
{% else %}
<h2>Sorry, API request limit exceeded</h2>
{% endif %}
</section>
{% endblock content %}