-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocapi.html
74 lines (67 loc) · 2.79 KB
/
docapi.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
74
<!DOCTYPE html>
<html lang="en">
<head>
<title>Youtube API</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Youtube API for Ông Dev channel</h2>
<div class="container">
<h3>Get videos</h3>
<form class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" for="skip">skip:</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="skip" placeholder="skip" name="skip" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">limit:</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="limit" placeholder="limt" name="limit" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">playlistId (not required):</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="playlistId" placeholder="playlistId" name="playlistId">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="button" onclick="getVideos()" class="btn btn-default">Submit</button>
<button type="button" onclick="getVideos(1)" class="btn btn-default">Clear</button>
</div>
</div>
</form>
<div class="panel-body" id="resultVideos"></div>
</div>
<div class="container">
<h3>Get video by Id</h3>
<form class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" for="videoId">videoId:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="videoId" placeholder="videoId" name="videoId">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="button" onclick="getVideoId(0)" class="btn btn-default">Submit</button>
<button type="button" onclick="getVideoId(1)" class="btn btn-default">Clear</button>
</div>
</div>
</form>
<div class="panel-body" id="resultVideoId"></div>
</div>
</div>
<!-- <script></script> -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="./assets/js/index.js"></script>
</body>
</html>