forked from CJM-Player/CJMPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
youtube.html
142 lines (110 loc) · 3.65 KB
/
youtube.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link type="text/css" rel="stylesheet" href="style.css"/>
</head>
<body>
<!-- <form id="form1">
<div id="output"></div>
What would you like to search?
<br>
<input id="searchInput" text="text" name="search">
<input id="search" type="submit">
</form> -->
<input type="text" id="searchInput">
<button id="search">Search</button>
</div>
<br>
<div id="container">
<div id="columns">
<h3>Search Results</h3>
<div id="searchcolumn">
<iframe width="350" height="320"
src="https://www.youtube.com/embed/b6m-XlOxjbk?autoplay=0">
</iframe>
<iframe width="350" height="320"
src="https://www.youtube.com/embed/b6m-XlOxjbk?autoplay=0">
</iframe>
<iframe width="350" height="320"
src="https://www.youtube.com/embed/b6m-XlOxjbk?autoplay=0">
</iframe>
</div>
<h3>Your Videos</h3>
<div id="uservidcol1">
<iframe width="350" height="320"
src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=0">
</iframe>
<iframe width="350" height="320"
src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=0">
</iframe>
<iframe width="350" height="320"
src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=0">
</iframe>
</div>
<h3 style="color: grey">_</h3>
<div id="uservidcol2">
<iframe width="350" height="320"
src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=0">
</iframe>
<iframe width="350" height="320"
src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=0">
</iframe>
<iframe width="350" height="320"
src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=0">
</iframe>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.1.js"></script>
<script src="app.js"></script>
<!-- // var to_be_run_on_server_response = function(youtube_video) {
// console.log(youtube_video);
// };
// var videos_array = [];
// var get_videos = function() {
// // console.log(searchTerm);
// // console.log(encodeURI(searchTerm));
// var userInput = $('#input1').val();
// $.ajax({
// url: "https://api.imgur.com/3/gallery/search?q=" + userInput,
// headers: {
// "Authorization": "Client-ID e3776adbe9c5fb9"
// },
// success: function(response) {
// // console.log(response);
// // console.log(response.data);
// videos_array = _.map(response.data, function(item) {
// // console.log(item);
// return video_factory(item.link, item.title);
// });
// // console.log(pictures_array);
// _.each(pictures_array, function(item) {
// // console.log(item);
// item.render();
// });
// }
// });
// };
// $("#form1").submit(function(e) {
// e.preventDefault();
// });
// var video_factory = function(url, title) {
// var video = {
// video_url: url,
// video_title: title,
// $el: $('<div>').appendTo($('body')),
// render: function() {
// this.$el.append([
// $('<div>').html('<img alt="' + this.picture_title + '" src="' + this.picture_url + '">'),
// ]);
// }
// };
// return picture;
// };
// $.get('https://www.googleapis.com/youtube/v3/search?part=snippet&q=' + q + '&key=AIzaSyAUcyyoRT0BzGf2oDK17-BWlw4HJjQ5lNw').success(to_be_run_on_server_response);
// console.log(getrequest);
-->
</body>
</html>