summaryrefslogtreecommitdiff
path: root/www/lib/videogular-overlay-play/vg-overlay-play.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/lib/videogular-overlay-play/vg-overlay-play.js')
-rw-r--r--www/lib/videogular-overlay-play/vg-overlay-play.js89
1 files changed, 44 insertions, 45 deletions
diff --git a/www/lib/videogular-overlay-play/vg-overlay-play.js b/www/lib/videogular-overlay-play/vg-overlay-play.js
index a5142f07..1cf2cc35 100644
--- a/www/lib/videogular-overlay-play/vg-overlay-play.js
+++ b/www/lib/videogular-overlay-play/vg-overlay-play.js
@@ -1,5 +1,5 @@
/**
- * @license videogular v1.3.2 http://videogular.com
+ * @license videogular v1.4.4 http://videogular.com
* Two Fucking Developers http://twofuckingdevelopers.com
* License: MIT
*/
@@ -22,56 +22,55 @@
"use strict";
angular.module("com.2fdevs.videogular.plugins.overlayplay", [])
.run(
- ["$templateCache", function ($templateCache) {
- $templateCache.put("vg-templates/vg-overlay-play",
- '<div class="overlayPlayContainer" ng-click="onClickOverlayPlay()">\
- <div class="iconButton" ng-class="overlayPlayIcon"></div>\
- </div>');
- }]
-)
- .directive(
- "vgOverlayPlay",
- ["VG_STATES", function (VG_STATES) {
- return {
- restrict: "E",
- require: "^videogular",
- scope: {},
- templateUrl: function (elem, attrs) {
- return attrs.vgTemplate || 'vg-templates/vg-overlay-play';
- },
- link: function (scope, elem, attr, API) {
- scope.onChangeState = function onChangeState(newState) {
- switch (newState) {
- case VG_STATES.PLAY:
- scope.overlayPlayIcon = {};
- break;
+ ["$templateCache", function ($templateCache) {
+ $templateCache.put("vg-templates/vg-overlay-play",
+ '<div class="overlayPlayContainer" ng-click="onClickOverlayPlay()">\
+ <div class="iconButton" ng-class="overlayPlayIcon"></div>\
+ </div>');
+ }]
+ )
+ .directive("vgOverlayPlay", ["VG_STATES",
+ function (VG_STATES) {
+ return {
+ restrict: "E",
+ require: "^videogular",
+ scope: {},
+ templateUrl: function (elem, attrs) {
+ return attrs.vgTemplate || 'vg-templates/vg-overlay-play';
+ },
+ link: function (scope, elem, attr, API) {
+ scope.onChangeState = function onChangeState(newState) {
+ switch (newState) {
+ case VG_STATES.PLAY:
+ scope.overlayPlayIcon = {};
+ break;
- case VG_STATES.PAUSE:
- scope.overlayPlayIcon = {play: true};
- break;
+ case VG_STATES.PAUSE:
+ scope.overlayPlayIcon = {play: true};
+ break;
- case VG_STATES.STOP:
- scope.overlayPlayIcon = {play: true};
- break;
- }
- };
+ case VG_STATES.STOP:
+ scope.overlayPlayIcon = {play: true};
+ break;
+ }
+ };
- scope.onClickOverlayPlay = function onClickOverlayPlay(event) {
- API.playPause();
- };
+ scope.onClickOverlayPlay = function onClickOverlayPlay(event) {
+ API.playPause();
+ };
- scope.overlayPlayIcon = {play: true};
+ scope.overlayPlayIcon = {play: true};
- scope.$watch(
- function () {
- return API.currentState;
- },
- function (newVal, oldVal) {
- scope.onChangeState(newVal);
- }
- );
+ scope.$watch(
+ function () {
+ return API.currentState;
+ },
+ function (newVal, oldVal) {
+ scope.onChangeState(newVal);
+ }
+ );
+ }
}
}
- }
]);