-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
135 lines (117 loc) · 4.58 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
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
<!DOCTYPE html>
<html lang="en" ng-app="iamwatchingApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head
content must come *after* these tags -->
<title>iamwatching</title>
<!-- Bootstrap -->
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- header div start-->
<div class="header container">
<div class="navbar-header">
<label class="navbar-brand">
<i class="fa fa-play-circle"></i> iamwatching
</label>
</div>
</div>
<!-- header div end -->
<!-- main body starts -->
<div class="container" ng-controller="videoCtrl">
<div class="row">
<div class="video_title white-text">
<h4 class="page-header">{{playing.snippet.title}}</h4>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="video_screen">
<!-- Embed video -->
<youtube-video video-id="playing.id.videoId"></youtube-video>
<!-- <img class="img-responsive" src="img/640x360.jpg"> -->
</div>
</div>
<!-- search bar begins -->
<div class="col-md-4">
<div class="search_section">
<form>
<div class="well">
<h4>Search Video</h4>
<div class="input-group">
<input type="text" class="form-control" ng-model="searchTerm">
<span class="input-group-btn">
<button class="btn btn-default" ng-click="searchAndDisplay()" type="button">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</form>
<!-- /.input-group -->
<!-- search_list -->
<div class="search_list container">
<!-- <div class="row search-item" ng-repeat="video in vids.videos"> -->
<div class="row search-item" ng-repeat="video in vids.videos">
<div class="col-sm-6 col-md-6 col-xs-12">
<img class="img-reponsive" src="{{video.snippet.thumbnails.default.url}}"/>
</div>
<!-- <img class="img-reponsive" src="img/thumb.jpg"> -->
<div class="col-sm-6 col-md-6 col-xs-12">
<span>{{video.snippet.title}}</span>
</div>
<div class="col-sm-6 col-md-6 col-xs-12">
<button class="btn-small" ng-click="$parent.addToPlaylist(video)">
<span class="glyphicon glyphicon-plus-sign"></span>
</button>
</div>
</div>
</div>
<!-- search list ends -->
</div>
</div>
<!-- search bar ends -->
</div>
<div class="row playlist">
<div class="col-lg-12 white-text">
<h4>Playlist</h4>
</div>
<div class="col-sm-3 col-xs-6" ng-repeat="video in current_playlist">
<div class="row" ng-click="$parent.playVideo(video)">
<img class="img-reponsive" src="{{video.snippet.thumbnails.default.url}}"/>
</div>
<div class="row white-text">
<span>{{video.snippet.title}}</span>
</div>
</div>
</div>
<!-- playlist ends -->
</div>
<!-- main body ends -->
<!-- footer begins -->
<div class="container">
<div class="footer">
<div class="navbar-footer text-center">
<span>Developed by Abhinav Jha</span>
</div>
</div>
</div>
<script src="bower_components/angular/angular.min.js"></script>
<!-- Include YT library and angular youtube embed directive -->
<script src="js/angular-youtube-embed.js"></script>
<script src="js/angular-resource.min.js"></script>
<script src="https://www.youtube.com/iframe_api"></script>
<script src="js/controllers.js"></script>
</body>
</html>