-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (48 loc) · 1.96 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
<!DOCTYPE html>
<html>
<head>
<title>YouTube API</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css">
<script src="https://www.youtube.com/iframe_api"></script>
</head>
<body>
<a>Log in | Sign up</a>
<div class="container">
<br>
<div class="header-container">
<h1>YouTube API Search</h1>
</div>
<div class="search-bar">
<input type="text" id="search" placeholder="Search for videos">
<button id="search-button">Search</button>
<button id="addKeywordButton" class="add-button">+</button>
</div>
<div id="keywordPopup" class="popup" style="display: none;">
<br>
<input type="text" id="customKeyword" placeholder="Enter custom keyword">
<button id="submitKeyword">Save</button>
<button id="clearAllKeywords">Clear All</button>
<button id="cancelKeyword">Cancel</button>
</div>
<div class="category-buttons">
<button class="category-button" data-category="JavaScript">JavaScript</button>
<button class="category-button" data-category="Computing">Computing</button>
</div>
<br>
<div class="row">
<div class="col-md-12">
<div id="videos"></div>
</div>
</div>
</div>
<div id="loading" style="display: none">
<p>Loading...</p>
</div>
<div id="error" style="display:none">
<p>An error occurred while fetching videos.</p>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="ytsearch.js"></script>
</body>
</html>