summaryrefslogtreecommitdiff
path: root/www/external/videogular2.2.1/videogular-cuepoints.min.js
blob: ccb5e5c1127fff0ecda36a1a4252055480c28743 (plain)
1
!function(){"use strict";angular.module("uk.ac.soton.ecs.videogular.plugins.cuepoints",[]).directive("vgCuepoints",[function(){return{restrict:"E",require:"^videogular",templateUrl:function(e,t){return t.templateUrl||"videogular-cuepoints/cuepoints.html"},scope:{cuepoints:"=vgCuepointsConfig",theme:"=vgCuepointsTheme"},link:function(e,t,n,i){e.onCuepointClick=function(e){i.seekTime(e.time)},e.cuepointStyle=function(e){return{left:function(e){if(0===i.totalTime)return"-1000";var t=i.totalTime/1e3;return(100*e.time/t).toString()}(e)+"%"}},function(e){e&&angular.element(document).find("head").append("<link rel='stylesheet' href='"+e+"'>")}(e.theme)}}}]).run(["$templateCache",function(e){e.put("videogular-cuepoints/cuepoints.html",'<vg-cuepoint ng-repeat="cuepoint in cuepoints.points" ng-click="onCuepointClick(cuepoint)" ng-style="cuepointStyle(cuepoint)"></vg-cuepoint>')}])}();