diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/components/popup.reel | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz |
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/components/popup.reel')
-rw-r--r-- | js/components/popup.reel/compass_app_log.txt | 48 | ||||
-rwxr-xr-x | js/components/popup.reel/config.rb | 9 | ||||
-rw-r--r-- | js/components/popup.reel/css/popup.css | 43 | ||||
-rwxr-xr-x | js/components/popup.reel/css/popup.scss | 52 | ||||
-rw-r--r-- | js/components/popup.reel/popup.html | 37 | ||||
-rw-r--r-- | js/components/popup.reel/popup.js | 245 |
6 files changed, 434 insertions, 0 deletions
diff --git a/js/components/popup.reel/compass_app_log.txt b/js/components/popup.reel/compass_app_log.txt new file mode 100644 index 00000000..8a3fb984 --- /dev/null +++ b/js/components/popup.reel/compass_app_log.txt | |||
@@ -0,0 +1,48 @@ | |||
1 | 2011-06-28 18:13:06 create css/popup.css | ||
2 | 2011-06-28 18:13:12 identical css/popup.css | ||
3 | 2011-06-28 18:14:08 overwrite css/popup.css | ||
4 | 2011-06-28 18:14:20 overwrite css/popup.css | ||
5 | 2011-06-28 18:14:29 overwrite css/popup.css | ||
6 | 2011-06-28 18:17:23 overwrite css/popup.css | ||
7 | 2011-06-28 18:17:27 overwrite css/popup.css | ||
8 | 2011-06-28 18:17:56 overwrite css/popup.css | ||
9 | 2011-06-28 18:18:09 overwrite css/popup.css | ||
10 | 2011-06-28 18:20:30 overwrite css/popup.css | ||
11 | 2011-06-28 18:22:35 overwrite css/popup.css | ||
12 | 2011-06-28 18:24:12 overwrite css/popup.css | ||
13 | 2011-06-28 18:24:23 overwrite css/popup.css | ||
14 | 2011-06-28 18:24:33 overwrite css/popup.css | ||
15 | 2011-06-28 18:25:17 overwrite css/popup.css | ||
16 | 2011-06-28 18:26:21 overwrite css/popup.css | ||
17 | 2011-06-28 18:26:33 overwrite css/popup.css | ||
18 | 2011-06-28 18:26:42 overwrite css/popup.css | ||
19 | 2011-06-28 18:26:57 overwrite css/popup.css | ||
20 | 2011-06-28 18:29:57 overwrite css/popup.css | ||
21 | 2011-06-28 18:30:14 overwrite css/popup.css | ||
22 | 2011-06-28 18:30:23 overwrite css/popup.css | ||
23 | 2011-06-28 18:30:48 overwrite css/popup.css | ||
24 | 2011-06-28 18:31:03 overwrite css/popup.css | ||
25 | 2011-06-29 10:18:31 overwrite css/popup.css | ||
26 | 2011-06-29 10:18:47 overwrite css/popup.css | ||
27 | 2011-06-29 10:37:19 overwrite css/popup.css | ||
28 | 2011-06-29 10:40:29 overwrite css/popup.css | ||
29 | 2011-06-29 10:45:37 overwrite css/popup.css | ||
30 | 2011-06-29 10:45:53 identical css/popup.css | ||
31 | 2011-06-29 10:46:52 overwrite css/popup.css | ||
32 | 2011-06-29 10:47:02 identical css/popup.css | ||
33 | 2011-06-29 13:30:47 overwrite css/popup.css | ||
34 | 2011-06-29 13:31:14 overwrite css/popup.css | ||
35 | 2011-12-20 17:06:48 overwrite css/popup.css | ||
36 | 2011-12-22 11:29:15 overwrite css/popup.css | ||
37 | 2011-12-22 11:29:24 identical css/popup.css | ||
38 | 2011-12-22 11:30:05 overwrite css/popup.css | ||
39 | 2011-12-22 11:30:33 overwrite css/popup.css | ||
40 | 2011-12-22 11:30:51 overwrite css/popup.css | ||
41 | 2011-12-22 11:32:30 overwrite css/popup.css | ||
42 | 2011-12-22 11:33:06 overwrite css/popup.css | ||
43 | 2011-12-22 11:33:12 overwrite css/popup.css | ||
44 | 2011-12-22 11:33:32 identical css/popup.css | ||
45 | 2011-12-22 11:33:36 overwrite css/popup.css | ||
46 | 2011-12-22 11:34:48 overwrite css/popup.css | ||
47 | 2012-01-26 11:42:18 overwrite css/popup.css | ||
48 | 2012-01-26 11:42:20 overwrite css/popup.css | ||
diff --git a/js/components/popup.reel/config.rb b/js/components/popup.reel/config.rb new file mode 100755 index 00000000..9b55af19 --- /dev/null +++ b/js/components/popup.reel/config.rb | |||
@@ -0,0 +1,9 @@ | |||
1 | # Require any additional compass plugins here. | ||
2 | # Set this to the root of your project when deployed: | ||
3 | http_path = "/" | ||
4 | css_dir = "css" | ||
5 | sass_dir = "css" | ||
6 | images_dir = "img" | ||
7 | javascripts_dir = "../" | ||
8 | # To enable relative paths to assets via compass helper functions. Uncomment: | ||
9 | # relative_assets = true | ||
diff --git a/js/components/popup.reel/css/popup.css b/js/components/popup.reel/css/popup.css new file mode 100644 index 00000000..9eb91760 --- /dev/null +++ b/js/components/popup.reel/css/popup.css | |||
@@ -0,0 +1,43 @@ | |||
1 | @charset "UTF-8"; | ||
2 | /* <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> */ | ||
7 | /* line 12, popup.scss */ | ||
8 | .default_popup { | ||
9 | position: absolute; | ||
10 | width: auto; | ||
11 | float: left; | ||
12 | font-family: 'Droid Sans', sans-serif; | ||
13 | color: #FFF; | ||
14 | background: #494949; | ||
15 | border: 1px solid #292929; | ||
16 | border-radius: 8px; | ||
17 | padding: 8px; | ||
18 | box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8); | ||
19 | pointerEvents: auto; | ||
20 | } | ||
21 | |||
22 | /* line 32, popup.scss */ | ||
23 | .default_popup .content { | ||
24 | overflow: auto; | ||
25 | float: left; | ||
26 | } | ||
27 | |||
28 | /* line 38, popup.scss */ | ||
29 | .default_popup .tooltip { | ||
30 | position: absolute; | ||
31 | overflow: hidden; | ||
32 | } | ||
33 | |||
34 | /* line 44, popup.scss */ | ||
35 | .default_popup .tooltip span { | ||
36 | -webkit-transform: rotate(45deg); | ||
37 | width: 12px; | ||
38 | height: 12px; | ||
39 | margin: 3px; | ||
40 | display: block; | ||
41 | background: #494949; | ||
42 | border: 1px solid #292929; | ||
43 | } | ||
diff --git a/js/components/popup.reel/css/popup.scss b/js/components/popup.reel/css/popup.scss new file mode 100755 index 00000000..782165a4 --- /dev/null +++ b/js/components/popup.reel/css/popup.scss | |||
@@ -0,0 +1,52 @@ | |||
1 | @charset "UTF-8"; | ||
2 | /* <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> */ | ||
7 | |||
8 | $grey_dark: #292929; | ||
9 | $grey_light: #494949; | ||
10 | |||
11 | .default_popup | ||
12 | { | ||
13 | //MUST HAVE TO ALLOW FOR SIZE AJUSTMENTS | ||
14 | position: absolute; | ||
15 | width: auto; | ||
16 | float: left; | ||
17 | |||
18 | //TEXT STYLES | ||
19 | font-family: 'Droid Sans', sans-serif; | ||
20 | color: #FFF; | ||
21 | |||
22 | //BACKGROUND AND CONTAINER | ||
23 | background: $grey_light; | ||
24 | border: 1px solid $grey_dark; | ||
25 | border-radius: 8px; | ||
26 | padding: 8px; | ||
27 | box-shadow: 0px 0px 8px rgba(0, 0, 0, .8); | ||
28 | pointerEvents: auto; | ||
29 | } | ||
30 | |||
31 | .default_popup .content | ||
32 | { | ||
33 | overflow: auto; | ||
34 | float: left; | ||
35 | } | ||
36 | |||
37 | .default_popup .tooltip | ||
38 | { | ||
39 | position: absolute; | ||
40 | overflow: hidden; | ||
41 | } | ||
42 | |||
43 | .default_popup .tooltip span | ||
44 | { | ||
45 | -webkit-transform:rotate(45deg); | ||
46 | width: 12px; | ||
47 | height: 12px; | ||
48 | margin: 3px; | ||
49 | display: block; | ||
50 | background: $grey_light; | ||
51 | border: 1px solid $grey_dark; | ||
52 | } \ No newline at end of file | ||
diff --git a/js/components/popup.reel/popup.html b/js/components/popup.reel/popup.html new file mode 100644 index 00000000..b6f147aa --- /dev/null +++ b/js/components/popup.reel/popup.html | |||
@@ -0,0 +1,37 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> --> | ||
7 | <html lang="en"> | ||
8 | <head> | ||
9 | |||
10 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
11 | |||
12 | <link rel="stylesheet" type="text/css" href="css/popup.css"> | ||
13 | |||
14 | <script type="text/montage-serialization"> | ||
15 | { | ||
16 | "owner": { | ||
17 | "module": "js/components/Popup.reel", | ||
18 | "name": "Popup", | ||
19 | "properties": { | ||
20 | "element": {"#": "default_popup"} | ||
21 | } | ||
22 | } | ||
23 | } | ||
24 | </script> | ||
25 | |||
26 | </head> | ||
27 | |||
28 | <body> | ||
29 | |||
30 | <div id="default_popup" class="default_popup"> | ||
31 | <div class="tooltip"><span/></div> | ||
32 | <div class="content"></div> | ||
33 | </div> | ||
34 | |||
35 | </body> | ||
36 | |||
37 | </html> \ No newline at end of file | ||
diff --git a/js/components/popup.reel/popup.js b/js/components/popup.reel/popup.js new file mode 100644 index 00000000..ae483ea9 --- /dev/null +++ b/js/components/popup.reel/popup.js | |||
@@ -0,0 +1,245 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | //////////////////////////////////////////////////////////////////////// | ||
8 | // | ||
9 | var Montage = require("montage/core/core").Montage, | ||
10 | Component = require("montage/ui/component").Component; | ||
11 | //////////////////////////////////////////////////////////////////////// | ||
12 | //Exporting as Popup | ||
13 | exports.Popup = Montage.create(Component, { | ||
14 | //////////////////////////////////////////////////////////////////// | ||
15 | // | ||
16 | hasTemplate: { | ||
17 | value: true | ||
18 | }, | ||
19 | //////////////////////////////////////////////////////////////////// | ||
20 | // | ||
21 | _content: { | ||
22 | numerable: false, | ||
23 | value: null | ||