-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
30 lines (27 loc) · 918 Bytes
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<script src="countryCodeToName.js"></script>
<script src="mapData.js"></script>
</head>
<body>
<script>
var arr = [];
for (key in isoCountries) {
var json_obj = JSON.parse(Get('https://api.themoviedb.org/3/movie/now_playing?api_key=39fda37c1a2b7aca9c188eb7d67a34e1&page=1®ion=' + key));
if (json_obj.results.length > 10) {
arr.push(key);
}
}
for (let index = 0; index < arr.length; index++) {
const element = arr[index];
document.write(element + "</br>");
}
</script>
</body>
</html>