index.html 13.9 KB
<!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">&nbsp;</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>