aboutsummaryrefslogtreecommitdiff
path: root/js/document/templates
diff options
context:
space:
mode:
authorKris Kowal2012-07-06 11:52:06 -0700
committerKris Kowal2012-07-06 15:01:48 -0700
commit648ee61ae84216d0236e0dbc211addc13b2cfa3a (patch)
tree8f0f55557bd0c47a84e49c1977c950645d284607 /js/document/templates
parentaedd14b18695d031f695d27dfbd94df5614495bb (diff)
downloadninja-648ee61ae84216d0236e0dbc211addc13b2cfa3a.tar.gz
Expand tabs
Diffstat (limited to 'js/document/templates')
-rw-r--r--js/document/templates/app/main.js10
-rwxr-xr-xjs/document/templates/banner/index.html118
-rwxr-xr-xjs/document/templates/html/index.html66
-rwxr-xr-xjs/document/templates/preview/banner.html92
4 files changed, 143 insertions, 143 deletions
diff --git a/js/document/templates/app/main.js b/js/document/templates/app/main.js
index 6b15bb24..4f1abcf3 100644
--- a/js/document/templates/app/main.js
+++ b/js/document/templates/app/main.js
@@ -27,10 +27,10 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28POSSIBILITY OF SUCH DAMAGE. 28POSSIBILITY OF SUCH DAMAGE.
29</copyright> */ 29</copyright> */
30var Montage = require("montage/core/core").Montage, 30var Montage = require("montage/core/core").Montage,
31 Component = require("montage/ui/component").Component, 31 Component = require("montage/ui/component").Component,
32 Template = require("montage/ui/template").Template, 32 Template = require("montage/ui/template").Template,
33 TemplateCreator = require("tools/template/template-creator").TemplateCreator; 33 TemplateCreator = require("tools/template/template-creator").TemplateCreator;
34 34
35 35
36//var njmodelGet = function njmodelGet() { 36//var njmodelGet = function njmodelGet() {
@@ -85,7 +85,7 @@ exports.Main = Montage.create(Component, {
85 var componentRequire = component[data.name]; 85 var componentRequire = component[data.name];
86 var componentInstance = componentRequire.create(); 86 var componentInstance = componentRequire.create();
87 87
88 componentInstance.identifier = data.identifier; 88 componentInstance.identifier = data.identifier;
89 componentInstance.addEventListener("firstDraw", self, false); 89 componentInstance.addEventListener("firstDraw", self, false);
90 90
91 componentInstance.element = element; 91 componentInstance.element = element;
diff --git a/js/document/templates/banner/index.html b/js/document/templates/banner/index.html
index 8b602867..c6c994ab 100755
--- a/js/document/templates/banner/index.html
+++ b/js/document/templates/banner/index.html
@@ -31,29 +31,29 @@ POSSIBILITY OF SUCH DAMAGE.
31 31
32 32
33<!-- 33<!--
34 NOTE(s): 34 NOTE(s):
35 All elements in the head of the document to be exclude from I/O 35 All elements in the head of the document to be exclude from I/O
36 must set the 'data-ninja-template' 36 must set the 'data-ninja-template'
37 data-ninja-template="true" 37 data-ninja-template="true"
38--> 38-->
39<html> 39<html>
40 40
41 <head> 41 <head>
42 42
43 <style type="text/css" id="nj-stage-stylesheet" data-ninja-template="true"> 43 <style type="text/css" id="nj-stage-stylesheet" data-ninja-template="true">
44 * { 44 * {
45 -webkit-animation: none !important; 45 -webkit-animation: none !important;
46 -webkit-transition-duration: 0s !important; 46 -webkit-transition-duration: 0s !important;
47 -webkit-animation-duration: 0s !important; 47 -webkit-animation-duration: 0s !important;
48 -webkit-animation-name: none !important; 48 -webkit-animation-name: none !important;
49 -webkit-animation-fill-mode: none !important; 49 -webkit-animation-fill-mode: none !important;
50 } 50 }
51 51
52 body { 52 body {
53 margin: 0; 53 margin: 0;
54 padding: 0; 54 padding: 0;
55 position: absolute; 55 position: absolute;
56 } 56 }
57 57
58 html { 58 html {
59 overflow: scroll; 59 overflow: scroll;
@@ -65,38 +65,38 @@ POSSIBILITY OF SUCH DAMAGE.
65 background: #666; 65 background: #666;
66 } 66 }
67 67
68 .active-element-outline { 68 .active-element-outline {
69 outline: #adff2f solid 2px; 69 outline: #adff2f solid 2px;
70 } 70 }
71 71
72 .nj-preset-transition { 72 .nj-preset-transition {
73 -webkit-transition: all 450ms linear !important; 73 -webkit-transition: all 450ms linear !important;
74 } 74 }
75 75
76 ninjaloadinghack { 76 ninjaloadinghack {
77 display: none; 77 display: none;
78 } 78 }
79 79
80 ninja-viewport, ninja-content { 80 ninja-viewport, ninja-content {
81 display: block; 81 display: block;
82 margin: 0; 82 margin: 0;
83 padding: 0; 83 padding: 0;
84 border: 0; 84 border: 0;
85 position: absolute; 85 position: absolute;
86 overflow: visible; 86 overflow: visible;
87 top: 0; 87 top: 0;
88 left: 0; 88 left: 0;
89 background: transparent; 89 background: transparent;
90 } 90 }
91 91
92 ninja-viewport { 92 ninja-viewport {
93 background: #FFF; 93 background: #FFF;
94 } 94 }
95 95
96 ninja-content { 96 ninja-content {
97 -webkit-transform-style: preserve-3d; 97 -webkit-transform-style: preserve-3d;
98 -webkit-transform: perspective(1400) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); 98 -webkit-transform: perspective(1400) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
99 } 99 }
100 100
101 ::-webkit-scrollbar { width: 11px; height: 11px; } 101 ::-webkit-scrollbar { width: 11px; height: 11px; }
102 ::-webkit-scrollbar-button:start:decrement, ::-webkit-scrollbar-button:end:increment { display: none; } 102 ::-webkit-scrollbar-button:start:decrement, ::-webkit-scrollbar-button:end:increment { display: none; }
@@ -144,11 +144,11 @@ POSSIBILITY OF SUCH DAMAGE.
144 set: function() { 144 set: function() {
145 } 145 }
146 }); 146 });
147 </script> 147 </script>
148 148
149 <!-- TODO: Determine if loading Montage is always needed or if it could be done author-time or on file open --> 149 <!-- TODO: Determine if loading Montage is always needed or if it could be done author-time or on file open -->
150 150
151 <script type="text/javascript" data-package="../app" src="../../../../node_modules/montage/montage.js" data-ninja-template="true"></script> 151 <script type="text/javascript" data-package="../app" src="../../../../node_modules/montage/montage.js" data-ninja-template="true"></script>
152 152
153 <script type="text/montage-serialization" data-ninja-template="true"> 153 <script type="text/montage-serialization" data-ninja-template="true">
154 { 154 {
@@ -158,18 +158,18 @@ POSSIBILITY OF SUCH DAMAGE.
158 } 158 }
159 </script> 159 </script>
160 160
161 </head> 161 </head>
162 162
163 <body> 163 <body>
164 164
165 <ninjaloadinghack></ninjaloadinghack> 165 <ninjaloadinghack></ninjaloadinghack>
166 166
167 <ninja-viewport> 167 <ninja-viewport>
168 168
169 <ninja-content></ninja-content> 169 <ninja-content></ninja-content>
170 170
171 </ninja-viewport> 171 </ninja-viewport>
172 172
173 </body> 173 </body>
174 174
175</html> 175</html>
diff --git a/js/document/templates/html/index.html b/js/document/templates/html/index.html
index 2677ade6..18fe2a0c 100755
--- a/js/document/templates/html/index.html
+++ b/js/document/templates/html/index.html
@@ -31,34 +31,34 @@ POSSIBILITY OF SUCH DAMAGE.
31 31
32 32
33<!-- 33<!--
34 NOTE(s): 34 NOTE(s):
35 All elements in the head of the document to be exclude from I/O 35 All elements in the head of the document to be exclude from I/O
36 must set the 'data-ninja-template' 36 must set the 'data-ninja-template'
37 data-ninja-template="true" 37 data-ninja-template="true"
38--> 38-->
39 39
40<!-- TODO: Determine if loading Montage is always needed or if it could be done author-time or on file open --> 40<!-- TODO: Determine if loading Montage is always needed or if it could be done author-time or on file open -->
41 41
42<html> 42<html>
43 43
44 <head> 44 <head>
45 45
46 <style type="text/css" id="nj-stage-stylesheet" data-ninja-template="true"> 46 <style type="text/css" id="nj-stage-stylesheet" data-ninja-template="true">
47 * { 47 * {
48 -webkit-animation: none !important; 48 -webkit-animation: none !important;
49 -webkit-transition-duration: 0s !important; 49 -webkit-transition-duration: 0s !important;
50 -webkit-animation-duration: 0s !important; 50 -webkit-animation-duration: 0s !important;
51 -webkit-animation-name: none !important; 51 -webkit-animation-name: none !important;