index.html
13.9 KB
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="en" ng-app="Player">
<head ng-controller="PlayerController">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=Yes">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Nutrition Learning Program</title>
<!-- Bootstrap -->
<link href="themes/default/css/bootstrap/3.3.6/bootstrap.css" rel="stylesheet">
<!-- CUSTOM CSS -->
<link href="themes/default/css/custom/custom.css" rel="stylesheet" />
<link href="libs/mediaplayer/css/ui-player.css" rel="stylesheet" />
<!-- END CUSTOM CSS -->
</head>
<body ng-cloak>
<div class="preloader">
<div class="status"> </div>
</div>
<div id="myVideo" ng-controller="PlayerController">
<div class="container-fluid">
<div class="row">
<div class="pink-container">
<nav class="navbar-fixed-top navbar">
<div class="container-fluid">
<div class="navbar-header">
<button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<img ng-src="{{course.headerLogo}}">
</div>
<div class="navbar-collapse collapse" id="navbar">
<ul class="nav navbar-nav navbar-right">
<!--<li class="dropdown">
<a href="" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Marker Tools</a>
<ul class="dropdown-menu" aria-labelledby="dLabel">
<li><a href="#">Pen</a></li>
<li><a href="#">Highlighter</a></li>
<li><a href="#">Eraser</a></li>
<li class="divider"></li>
<li class="disabled"><a href="#"> Erase all </a></li>
<li class="disabled"><a href="#"> End Drawing </a></li>
</ul>
</li>-->
<li class="dropdown">
<a href="" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Transcript</a>
<div class=" dropdown-menu">
<ul class="dropdown-transcript" aria-labelledby="dLabel" ng-bind-html="getActiveTranscript()"></ul>
</div>
</li>
</ul>
</div>
</div>
</nav>
<!--page-content div-->
<div class="page-content" ng-init="init()">
<ng-view></ng-view>
<div class="slide-button visible-xs">
<a class="prev" href="" ng-click="previous()"><i class="glyphicon glyphicon-menu-left"></i></a>
<a class="next" href="" ng-click="next()"><i class="glyphicon glyphicon-menu-right"></i></a>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<!--<video id="player1" src="small.mp4" style="width:100%; height:100%;" class='embed-responsive-item'></video>
<audio id="player1" src="1_wlcome.wav"></audio>
<audio id="player2" src="1_wlcome.wav"></audio>-->
<div class="videobar">
<div class="video-player">
<footer class="footer text-right hidden-xs">
<div class="copyright" ng-bind-html="course.copyrightNote"></div>
</footer>
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-8 col-xs-12">
<div id="control-toggle">
<table class="table footer-control">
<tr>
<td width="50">
<a id="bottom-div" class="btn"> <span class="visible-xs"><i class="glyphicon glyphicon-th-list"></i></span> <span class="hidden-xs">Table of content</span> </a>
<div class="dropdown-bottom" id="backdrop">
<form class="form-inline">
<div class="form-group">
<div class="input-group">
<!--TODO: Binding for search-->
<input type="text" class="form-control" id="exampleInputAmount" ng-model="searchFilter" ng-change="textChange(searchFilter)" placeholder="Search...">
<div class="input-group-addon">
<a class="glyphicon glyphicon-search" ng-hide="isVisible"></a>
<a id="searchclear" class="glyphicon glyphicon-remove" data-ng-click="clearSearch(this)" ng-show="isVisible"></a>
</div>
</div>
</div>
</form>
<div class="panel-search">
<div ng-hide="isVisible" class="panel-group" id="accordion" role="tablist" aria-multiselectable="true" ng-repeat="section in course.sections">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading{{section.sectionNumber}}">
<div class="panel-title">
<div class="media" data-toggle="collapse" data-parent="#accordion" href="#collapse{{section.sectionNumber}}" aria-expanded="true" aria-controls="collapse{{section.sectionNumber}}">
<div class="media-left"> <img ng-src="{{section.thumbnailImage}}"> </div>
<div class="media-body media-middle"> <a href="" ng-click="jumpToSection(section)">{{section.sectionTitle}}</a> </div>
</div>
</div>
</div>
<div id="collapse{{section.sectionNumber}}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading{{section.sectionNumber}}">
<div class="panel-body" ng-repeat="slide in section.slides">
<div class="media">
<div class="media-left"> <img ng-src="{{slide.thumbnailImage}}"> </div>
<div class="media-body media-middle"> <a href="" ng-click="jumpToSlide(slide, $index, $parent.$index)">{{slide.slideTitle}}</a> </div>
</div>
</div>
</div>
</div>
</div>
<!-- SEARCH LIST -->
<div class="search-list" ng-show="isVisible">
<h3>Search Results:</h3>
<ul ng-repeat="section in course.sections">
<li ng-repeat="slide in section.slides | filter:{searchText: searchFilter}:false">
<a href="" ng-click="jumpToSlide(slide, (slide.id - 1), $parent.$index)">{{ slide.searchText | limitTo: 25 }}{{slide.searchText.length > 25 ? '...' : ''}}</a>
</li>
</ul>
</div>
<!-- END SEARCH LIST -->
</div>
</div>
</td>
<td class="play text-center" width="50"><a ng-hide="currentAudioPaused" href="javascript:void(0);" id="iplay" ng-click="pauseAudio()"><i class="glyphicon glyphicon-play" ng-hide="currentAudioPaused"></i></a><a ng-show="currentAudioPaused" href="javascript:void(0);" ng-click="playAudio()" id="ipause"><i class="glyphicon glyphicon-pause" ng-show="currentAudioPaused"></i></a></td>
<td style="position:relative;" class="progress-hide" id="player-progress">
<div class="progress-level progress-level-l"></div>
<div class="slide-progress">{{getCurrentSlideNumber(activeSectionIndex, activeSlideIndex)}}/{{numberOfSlides}}</div>
<div class="play-time-left play-time-left-l">{{ currentTime() | date:'mm:ss':'+0000' }} </div>
<span class="seprator">/</span>
<div class="play-time-right play-time-right-l">{{ timeLeft() | date:'mm:ss':'+0000' }}</div>
<div class="progress progress-l" id="progress1">
<div class="progress-bar" role="progressbar" aria-valuemin="50"> </div>
</div>
</td>
<td width="20" style="position:relative;">
<div class="hide-volume">
<div id="slider-vertical"></div>
</div>
<a href="#" class="volume-control play"><i class="glyphicon glyphicon-volume-up "></i></a>
</td>
<td class="play hidden-xs hidden-sm" width="10"><a href="javascript:void(0);" onclick="javascript: FullScreenMode();"><i class="glyphicon glyphicon-fullscreen"></i></a></td>
<!-- <td class="visible-xs" width="125" align="right">
</td>-->
</tr>
</table>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-4 col-xs-12 hidden-xs">
<div class="slide-button hidden-xs">
<a class="prev" href="" ng-click="previous()">Prev</a>
<a class="next" href="" ng-click="next()">Next</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="libs/jquery/1.11.3/jquery.min.js"></script>
<script src="themes/default/scripts/bootstrap/3.3.6/bootstrap.min.js"></script>
<script src="libs/angular/1.4.9/angular.min.js"></script>
<script src="libs/angular/1.4.9/angular-sanitize.min.js"></script>
<script src="libs/angular/1.4.9/angular-route.min.js"></script>
<script src="libs/videogular/videogular.min.js"></script>
<script src="libs/videogular/vg-controls.min.js"></script>
<script src="app/main/Player.js"></script>
<script src="app/controllers/PlayerController.js"></script>
<script>
$('.carousel').carousel({
interval: false
});
</script>
<script>
// makes sure the whole site is loaded
jQuery(window).load(function () {
// will first fade out the loading animation
jQuery(".status").fadeOut();
// will fade out the whole DIV that covers the website.
jQuery(".preloader").delay(1000).fadeOut("slow");
})
</script>
<script>
//Table of Contents toggle
$("#bottom-div").click(function (e) {
e.stopPropagation()
$(".dropdown-bottom").show();
});
$(document).mouseup(function (e) {
var container = $("#backdrop");
if (!container.is(e.target) // if the target of the click isn't the container...
&& container.has(e.target).length === 0) // ... nor a descendant of the container
{
container.hide();
}
});
</script>
</body>
</html>