From 6d5820c7376d6b86d100484feb7e932fb95a5caa Mon Sep 17 00:00:00 2001 From: Michael Asimakopoulos Date: Thu, 17 Dec 2015 01:09:24 +0200 Subject: [PATCH] mask colour applied using ng-style instead of jquery --- dist/nz-tour.js | 19 ++++++------------- dist/nz-tour.min.js | 2 +- src/nz-tour.js | 19 ++++++------------- 3 files changed, 13 insertions(+), 27 deletions(-) diff --git a/dist/nz-tour.js b/dist/nz-tour.js index 6365f26..e24d3c3 100755 --- a/dist/nz-tour.js +++ b/dist/nz-tour.js @@ -278,16 +278,16 @@ '
', ' ', '
', - ' ', - ' ', + ' ', + ' ', '
', ' ', '', '
', - '
', - '
', - '
', - '
', + '
', + '
', + '
', + '
', '
' ].join(' '), link: function($scope, el) { @@ -343,13 +343,6 @@ margin = 7; } - // Mask Background Color - els.masks_top.add(els.masks_right).add(els.masks_bottom).add(els.masks_left).css({ - 'background-color': config.mask.color - }); - - - // Step Update Listener var stepUpdater = $scope.$on('step', updateStep); // Thottle for 60fps diff --git a/dist/nz-tour.min.js b/dist/nz-tour.min.js index c03573b..cd06415 100644 --- a/dist/nz-tour.min.js +++ b/dist/nz-tour.min.js @@ -1 +1 @@ -!function(){function t(t,e,r,n){t[_removeEventListener](s+e,"wheel"==i?r:o,n||!1)}function e(t,e,r,a){t[n](s+e,"wheel"==i?r:o,a||!1)}function o(t){!t&&(t=window.event);var e={originalEvent:t,target:t.target||t.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==t.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){t.preventDefault?t.preventDefault():t.returnValue=!1}};return"mousewheel"==i?(e.deltaY=-1/40*t.wheelDelta,t.wheelDeltaX&&(e.deltaX=-1/40*t.wheelDeltaX)):e.deltaY=t.detail,callback(e)}var r=angular.module("nzTour",[]);if(r.factory("nzTour",["$q","$rootScope","$compile","$timeout",function(t,e,o,r){function n(e){return e||t.reject("No Tour Specified!"),e.steps.length||t.reject("No steps were found in that tour!"),k.current?i().then(function(){return c(e)}):c(e)}function i(){return p().then(function(){return u(!1)}).then(function(){return k.current.promise.reject(),k.current=!1,!0})}function s(){k.current&&v()}function a(){return k.current||k.current.reject(),p().then(m).then(function(){k.current.step++}).then(g)}function f(){return p().then(function(){return k.current.step>0?(k.current.step--,!0):t.reject()}).then(g)}function l(e){var o=t.defer();return e>0&&e<=k.current.tour.steps.length?p().then(function(){k.current.step=e-1}).then(g):(o.reject(),o.promise)}function c(e){e.config=angular.extendDeep({},k.config,e.config);var o=function(t){if(!angular.isArray(t))return!1;for(var e=0;e