From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- node_modules/montage/ui/loading.reel/loading-0.svg | 3 + node_modules/montage/ui/loading.reel/loading-1.svg | 3 + node_modules/montage/ui/loading.reel/loading-2.svg | 3 + node_modules/montage/ui/loading.reel/loading-3.svg | 3 + node_modules/montage/ui/loading.reel/loading-4.svg | 3 + node_modules/montage/ui/loading.reel/loading-5.svg | 3 + .../montage/ui/loading.reel/loading-bg.svg | 31 +++++++++ node_modules/montage/ui/loading.reel/loading.css | 78 ++++++++++++++++++++++ node_modules/montage/ui/loading.reel/loading.html | 36 ++++++++++ node_modules/montage/ui/loading.reel/loading.js | 61 +++++++++++++++++ 10 files changed, 224 insertions(+) create mode 100755 node_modules/montage/ui/loading.reel/loading-0.svg create mode 100755 node_modules/montage/ui/loading.reel/loading-1.svg create mode 100755 node_modules/montage/ui/loading.reel/loading-2.svg create mode 100755 node_modules/montage/ui/loading.reel/loading-3.svg create mode 100755 node_modules/montage/ui/loading.reel/loading-4.svg create mode 100755 node_modules/montage/ui/loading.reel/loading-5.svg create mode 100755 node_modules/montage/ui/loading.reel/loading-bg.svg create mode 100755 node_modules/montage/ui/loading.reel/loading.css create mode 100755 node_modules/montage/ui/loading.reel/loading.html create mode 100755 node_modules/montage/ui/loading.reel/loading.js (limited to 'node_modules/montage/ui/loading.reel') diff --git a/node_modules/montage/ui/loading.reel/loading-0.svg b/node_modules/montage/ui/loading.reel/loading-0.svg new file mode 100755 index 00000000..87244e79 --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading-0.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/node_modules/montage/ui/loading.reel/loading-1.svg b/node_modules/montage/ui/loading.reel/loading-1.svg new file mode 100755 index 00000000..60ad8eaf --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading-1.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/node_modules/montage/ui/loading.reel/loading-2.svg b/node_modules/montage/ui/loading.reel/loading-2.svg new file mode 100755 index 00000000..dfa84864 --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading-2.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/node_modules/montage/ui/loading.reel/loading-3.svg b/node_modules/montage/ui/loading.reel/loading-3.svg new file mode 100755 index 00000000..af74427d --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading-3.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/node_modules/montage/ui/loading.reel/loading-4.svg b/node_modules/montage/ui/loading.reel/loading-4.svg new file mode 100755 index 00000000..402340ca --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading-4.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/node_modules/montage/ui/loading.reel/loading-5.svg b/node_modules/montage/ui/loading.reel/loading-5.svg new file mode 100755 index 00000000..1a473f16 --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading-5.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/node_modules/montage/ui/loading.reel/loading-bg.svg b/node_modules/montage/ui/loading.reel/loading-bg.svg new file mode 100755 index 00000000..2ad50a91 --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading-bg.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/node_modules/montage/ui/loading.reel/loading.css b/node_modules/montage/ui/loading.reel/loading.css new file mode 100755 index 00000000..ec90b10f --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading.css @@ -0,0 +1,78 @@ +/* + This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ +@-webkit-keyframes montage-loading { + 0% { + opacity: 0; + } + 20% { + opacity: .9; + } + 40% { + opacity: .27; + } + 100% { + opacity: 0; + } +} +.montage-loading { + position: relative; + width: 30px; + height: 35px; + background-position: center center; + background-repeat: no-repeat; +} + +.montage-loading.animate { + background-image: url(loading-bg.svg); +} + +.montage-loading .section { + display: none; + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + background-position: center center; + background-repeat: no-repeat; +} + +.montage-loading.animate .section { + display: block; + -webkit-transform: translateZ(0); + -webkit-animation-name: montage-loading; + -webkit-animation-duration: 1200ms; + -webkit-animation-iteration-count: infinite; +} + +.montage-loading .l0 { + background-image: url(loading-0.svg); + -webkit-animation-delay: -1000ms; +} + +.montage-loading .l1 { + background-image: url(loading-1.svg); + -webkit-animation-delay: -800ms; +} + +.montage-loading .l2 { + background-image: url(loading-2.svg); + -webkit-animation-delay: -600ms; +} + +.montage-loading .l3 { + background-image: url(loading-3.svg); + -webkit-animation-delay: -400ms; +} + +.montage-loading .l4 { + background-image: url(loading-4.svg); + -webkit-animation-delay: -200ms; +} + +.montage-loading .l5 { + background-image: url(loading-5.svg); +} diff --git a/node_modules/montage/ui/loading.reel/loading.html b/node_modules/montage/ui/loading.reel/loading.html new file mode 100755 index 00000000..7af7e1b8 --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading.html @@ -0,0 +1,36 @@ + + + + + + + + + + +
+
+
+
+
+
+
+
+ + diff --git a/node_modules/montage/ui/loading.reel/loading.js b/node_modules/montage/ui/loading.reel/loading.js new file mode 100755 index 00000000..f0574d72 --- /dev/null +++ b/node_modules/montage/ui/loading.reel/loading.js @@ -0,0 +1,61 @@ +/* + This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ +/** + @module "montage/ui/loading.reel" + @requires montage/core/core + @requires montage/ui/component +*/ +var Montage = require("montage").Montage, + Component = require("ui/component").Component; +/** + @class module:montage/ui/loading.Loading + @extends module:montage/ui/component.Component + */ + +var Loading = exports.Loading = Montage.create(Component,/** @lends module:"montage/ui/loading.reel".Loading# */ { +/** + Description TODO + @private +*/ + _loading: { + value: null + }, +/** + Description TODO + @type {Function} + @default null + */ + loading: { + get: function() { + return this._loading; + }, + set: function(isloading) { + if (this._loading !== isloading) { + this._loading = isloading; + this.needsDraw = true; + } + } + }, +/** + Description TODO + @function + */ + draw: { + value: function() { + var classList = this.element.classList, exists = classList.contains("animate"); + if (this.loading) { + if (!exists) { + classList.add("animate"); + } + } else { + if (exists) { + classList.remove("animate"); + } + + } + } + } +}); -- cgit v1.2.3