From 71114877e8e5409e37dc5a4c03015408f8e905fc Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 31 Mar 2019 07:26:37 -0400 Subject: #801 rip out bower, move to unmanaged externals --- www/external/origjs/videogular-cuepoints.js | 52 ----------------------------- 1 file changed, 52 deletions(-) delete mode 100644 www/external/origjs/videogular-cuepoints.js (limited to 'www/external/origjs/videogular-cuepoints.js') diff --git a/www/external/origjs/videogular-cuepoints.js b/www/external/origjs/videogular-cuepoints.js deleted file mode 100644 index 6bfc3c6f..00000000 --- a/www/external/origjs/videogular-cuepoints.js +++ /dev/null @@ -1,52 +0,0 @@ -(function(){ -'use strict'; -angular.module('uk.ac.soton.ecs.videogular.plugins.cuepoints', []) - .directive( - 'vgCuepoints', - [function() { - return { - restrict: 'E', - require: '^videogular', - templateUrl: function(element, attrs) { - return attrs.templateUrl || 'videogular-cuepoints/cuepoints.html'; - }, - scope: { - cuepoints: '=vgCuepointsConfig', - theme: '=vgCuepointsTheme', - }, - link: function($scope, elem, attr, API) { - // shamelessly stolen from part of videogular's updateTheme function - function updateTheme(value) { - if (value) { - var headElem = angular.element(document).find("head"); - headElem.append(""); - } - } - - var calcLeft = function(cuepoint) { - if (API.totalTime === 0) return '-1000'; - - var videoLength = API.totalTime / 1000; - return (cuepoint.time * 100 / videoLength).toString(); - }; - - $scope.onCuepointClick = function(cuepoint){ - API.seekTime(cuepoint.time); - }; - - $scope.cuepointStyle = function(cuepoint) { - return { - left: calcLeft(cuepoint) + '%' - }; - } - - updateTheme($scope.theme); - }, - }; - }]) - .run(['$templateCache', function($templateCache) { - $templateCache.put('videogular-cuepoints/cuepoints.html', - '' - ); - }]); -})(); -- cgit v1.2.3