angular-transit
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -13,37 +13,41 @@ if ($) { window.$ = $; } else if (jQuery) { window.$ = jQuery }; | ||
var el = $($element[0]); | ||
angular.element(document).ready(function() { | ||
$attrs.$observe('slide', function(val) { | ||
var el = $($element[0]); | ||
var ms = 500; | ||
var delay = 0; | ||
$attrs.$observe('slide', function(val) { | ||
if (val.indexOf(' ') != -1) { | ||
var ms = 500; | ||
var delay = 0; | ||
var arr = val.split(' '); | ||
if (val.indexOf(' ') != -1) { | ||
var first = true; | ||
var arr = val.split(' '); | ||
arr.map(function(arrv) { | ||
if (first == true) { | ||
val = arrv; | ||
first = false; | ||
} | ||
var first = true; | ||
arrv = arrv.split(':'); | ||
arr.map(function(arrv) { | ||
if (first == true) { | ||
val = arrv; | ||
first = false; | ||
} | ||
if (arrv[0] == 'ms') { | ||
ms = parseInt(arrv[1]); | ||
} else { | ||
delay = parseInt(arrv[1]); | ||
} | ||
}) | ||
arrv = arrv.split(':'); | ||
} | ||
if (arrv[0] == 'ms') { | ||
ms = parseInt(arrv[1]); | ||
} else { | ||
delay = parseInt(arrv[1]); | ||
} | ||
}) | ||
if (val == "true" || val == true) { | ||
el.delay(delay).slideDown(ms); | ||
} else { | ||
el.delay(delay).slideUp(ms); | ||
} | ||
} | ||
if (val == "true" || val == true) { | ||
el.delay(delay).slideDown(ms); | ||
} else if (val == "false" || val == false) { | ||
el.delay(delay).slideUp(ms); | ||
} | ||
}) | ||
}) | ||
@@ -63,38 +67,42 @@ | ||
var el = $($element[0]); | ||
angular.element(document).ready(function() { | ||
$attrs.$observe('fade', function(val) { | ||
var el = $($element[0]); | ||
var ms = 500; | ||
var delay = 0; | ||
$attrs.$observe('fade', function(val) { | ||
if (val.indexOf(' ') != -1) { | ||
var ms = 500; | ||
var delay = 0; | ||
var arr = val.split(' '); | ||
if (val.indexOf(' ') != -1) { | ||
var first = true; | ||
var arr = val.split(' '); | ||
arr.map(function(arrv) { | ||
var first = true; | ||
if (first == true) { | ||
val = arrv; | ||
first = false; | ||
} | ||
arr.map(function(arrv) { | ||
arrv = arrv.split(':'); | ||
if (first == true) { | ||
val = arrv; | ||
first = false; | ||
} | ||
if (arrv[0] == 'ms') { | ||
ms = parseInt(arrv[1]); | ||
} else { | ||
delay = parseInt(arrv[1]); | ||
} | ||
}) | ||
arrv = arrv.split(':'); | ||
} | ||
if (arrv[0] == 'ms') { | ||
ms = parseInt(arrv[1]); | ||
} else { | ||
delay = parseInt(arrv[1]); | ||
} | ||
}) | ||
if (val == "true" || val == true) { | ||
el.delay(delay).fadeIn(ms); | ||
} else { | ||
el.delay(delay).fadeOut(ms); | ||
} | ||
} | ||
if (val == "true" || val == true) { | ||
el.delay(delay).fadeIn(ms); | ||
} else if (val == "false" || val == false){ | ||
el.delay(delay).fadeOut(ms); | ||
} | ||
}) | ||
}) | ||
@@ -101,0 +109,0 @@ |
109
index.js
@@ -11,37 +11,41 @@ (function(window, $, angular, undefined) {'use strict'; | ||
var el = $($element[0]); | ||
angular.element(document).ready(function() { | ||
$attrs.$observe('slide', function(val) { | ||
var el = $($element[0]); | ||
var ms = 500; | ||
var delay = 0; | ||
$attrs.$observe('slide', function(val) { | ||
if (val.indexOf(' ') != -1) { | ||
var ms = 500; | ||
var delay = 0; | ||
var arr = val.split(' '); | ||
if (val.indexOf(' ') != -1) { | ||
var first = true; | ||
var arr = val.split(' '); | ||
arr.map(function(arrv) { | ||
if (first == true) { | ||
val = arrv; | ||
first = false; | ||
} | ||
var first = true; | ||
arrv = arrv.split(':'); | ||
arr.map(function(arrv) { | ||
if (first == true) { | ||
val = arrv; | ||
first = false; | ||
} | ||
if (arrv[0] == 'ms') { | ||
ms = parseInt(arrv[1]); | ||
} else { | ||
delay = parseInt(arrv[1]); | ||
} | ||
}) | ||
arrv = arrv.split(':'); | ||
} | ||
if (arrv[0] == 'ms') { | ||
ms = parseInt(arrv[1]); | ||
} else { | ||
delay = parseInt(arrv[1]); | ||
} | ||
}) | ||
if (val == "true" || val == true) { | ||
el.delay(delay).slideDown(ms); | ||
} else { | ||
el.delay(delay).slideUp(ms); | ||
} | ||
} | ||
if (val == "true" || val == true) { | ||
el.delay(delay).slideDown(ms); | ||
} else if (val == "false" || val == false) { | ||
el.delay(delay).slideUp(ms); | ||
} | ||
}) | ||
}) | ||
@@ -61,38 +65,42 @@ | ||
var el = $($element[0]); | ||
angular.element(document).ready(function() { | ||
$attrs.$observe('fade', function(val) { | ||
var el = $($element[0]); | ||
var ms = 500; | ||
var delay = 0; | ||
$attrs.$observe('fade', function(val) { | ||
if (val.indexOf(' ') != -1) { | ||
var ms = 500; | ||
var delay = 0; | ||
var arr = val.split(' '); | ||
if (val.indexOf(' ') != -1) { | ||
var first = true; | ||
var arr = val.split(' '); | ||
arr.map(function(arrv) { | ||
var first = true; | ||
if (first == true) { | ||
val = arrv; | ||
first = false; | ||
} | ||
arr.map(function(arrv) { | ||
arrv = arrv.split(':'); | ||
if (first == true) { | ||
val = arrv; | ||
first = false; | ||
} | ||
if (arrv[0] == 'ms') { | ||
ms = parseInt(arrv[1]); | ||
} else { | ||
delay = parseInt(arrv[1]); | ||
} | ||
}) | ||
arrv = arrv.split(':'); | ||
} | ||
if (arrv[0] == 'ms') { | ||
ms = parseInt(arrv[1]); | ||
} else { | ||
delay = parseInt(arrv[1]); | ||
} | ||
}) | ||
if (val == "true" || val == true) { | ||
el.delay(delay).fadeIn(ms); | ||
} else { | ||
el.delay(delay).fadeOut(ms); | ||
} | ||
} | ||
if (val == "true" || val == true) { | ||
el.delay(delay).fadeIn(ms); | ||
} else if (val == "false" || val == false){ | ||
el.delay(delay).fadeOut(ms); | ||
} | ||
}) | ||
}) | ||
@@ -108,2 +116,3 @@ | ||
module.exports = 'angularTransit'; |
{ | ||
"name": "angular-transit", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Simple transitions for your Angular application using jQuery transitions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7678
170