-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·73 lines (69 loc) · 3.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Assignment 4 - ThaoTruong</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.js"></script>
<script src="script.js"></script>
</head>
<body>
<h1>Popular movies</h1>
<div id="container">
<!-- Movie table -->
<table class="table table-hover table-bordered">
<thead class="table-info">
<tr>
<th scope="col">Title</th>
<th scope="col">Vote count</th>
<th scope="col">Vote average</th>
<th scope="col">Popularity</th>
<th scope="col">Release date</th>
</tr>
</thead>
<!-- Display AJAX call -->
<tbody id='result'></tbody>
</table>
<!-- Previous & Next -->
<a id='previous' href="#">≪Previous page</a> │
<a id='next' href="#">Next page≫</a>
<!-- Modal -->
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Release 30/7/2018</p>
<img src="https://image.tmdb.org/t/p/w500/AkJQpZp9WoNdj7pLYSj1L0RcMMN.jpg" alt="">
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<!-- End modal -->
</div><!-- End container -->
<script id='template' type="text/template">
{{#results}}
<tr>
<th scope="row" class='title' data-toggle="modal" data-tooltip="tooltip" data-placement="bottom" title="{{overview}}" data-trigger="click" data-target="#exampleModalCenter" data-value='{{id}}'>{{title}}</th>
<td>{{vote_count}}</td>
<td>{{vote_average}}</td>
<td>{{popularity}}</td>
<td>{{release_date}}</td>
</tr>
{{/results}}
</script>
</body>
</html>