-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (63 loc) · 2.51 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
<html>
<head>
<title> Few Tube </title>
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet">
<link href="https://unpkg.com/vuetify/dist/vuetify.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<body>
<div id="app">
<v-app class="grey lighten-4">
<v-container fill-height>
<v-flex>
<v-flex xs12 md5 offset-xs1 offset-md3 class="text-xs-center">
<img @click="reset()" :class="logoSize+' mb-4 pointer'" src="https://upload.wikimedia.org/wikipedia/commons/3/34/YouTube_logo_%282017%29.png">
<v-layout row class=mb-4>
<v-flex>
<v-text-field hide-details
prepend-icon="videocam"
label="Search Video"
v-model="searchKeyword"
color="red"
solo
></v-text-field>
<v-progress-linear v-if="loading" height="3" class="ma-0" color="red" :indeterminate="true"></v-progress-linear>
</v-flex>
</v-layout>
</v-flex>
<v-layout wrap v-if="showSearchResults">
<v-flex xs6 v-for="video in searchResults" :key="video.id.video">
<v-flex elevation-3 class="ma-3 white pa-3">
<img class="pointer thumbnails" @click="showVideo(video)" :src="video.snippet.thumbnails.medium.url">
<v-flex class="pa-3">
<v-flex class="headline pointer hover-text"><div @click="showVideo(video)">{{video.snippet.title}}</div></v-flex>
<v-flex class="subheading">{{video.snippet.channelTitle}}</v-flex>
<v-flex class=caption> {{video.snippet.description}}</v-flex>
</v-flex>
</v-flex>
</v-flex>
</v-layout>
<v-dialog
v-model="videoDialog"
transition="dialog-bottom-transition"
max-width="640px"
>
<v-card>
<v-card-text class="pa-0">
<div id="player"></div>
</v-card-text>
</v-card>
</v-dialog>
</v-flex>
</v-container>
</v-app>
</div>
</body>
<script src="https://www.youtube.com/iframe_api"></script>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vuetify/dist/vuetify.js"></script>
<script src="https://apis.google.com/js/api.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="javascript.js"></script>
</html>