aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-25 10:58:01 -0700
committerValerio Virgillito2012-06-25 10:58:01 -0700
commitd24243239f38704580bb3561a3959688b171809b (patch)
tree2941bd302a2e7b00c1629f1bd9a29a8c6c267619 /js
parent287f2f31d5feff4dc4c564c5929f8fbea3273813 (diff)
parentbaa9d992a1fc3eb99b53838d898970d7b2be2c65 (diff)
downloadninja-d24243239f38704580bb3561a3959688b171809b.tar.gz
Merge pull request #334 from joseeight/FileIO
Modifying HTML template
Diffstat (limited to 'js')
-rwxr-xr-xjs/document/helpers/url-parser.js2
-rwxr-xr-xjs/io/templates/files/html.txt6
2 files changed, 7 insertions, 1 deletions
diff --git a/js/document/helpers/url-parser.js b/js/document/helpers/url-parser.js
index 5e71d148..7bded27d 100755
--- a/js/document/helpers/url-parser.js
+++ b/js/document/helpers/url-parser.js
@@ -53,7 +53,7 @@ exports.UrlParser = Montage.create(Component, {
53 //Getting file URI (not URL since we must load through I/O API) 53 //Getting file URI (not URL since we must load through I/O API)
54 var css = {}, file; 54 var css = {}, file;
55 css.cssUrl = href.split(this.application.ninja.coreIoApi.rootUrl)[1]; 55 css.cssUrl = href.split(this.application.ninja.coreIoApi.rootUrl)[1];
56 css.fileUri = this.application.ninja.coreIoApi.cloudData.root + css.cssUrl; 56 css.fileUri = this.application.ninja.coreIoApi.cloudData.root + unescape(css.cssUrl);
57 //Loading data from CSS file 57 //Loading data from CSS file
58 file = this.application.ninja.coreIoApi.readFile({uri: css.fileUri}); 58 file = this.application.ninja.coreIoApi.readFile({uri: css.fileUri});
59 //Checking for file to be writable on disk 59 //Checking for file to be writable on disk
diff --git a/js/io/templates/files/html.txt b/js/io/templates/files/html.txt
index 3449ae39..33d50c49 100755
--- a/js/io/templates/files/html.txt
+++ b/js/io/templates/files/html.txt
@@ -10,6 +10,12 @@
10 <meta name="generator" content="Motorola Mobility Ninja"> 10 <meta name="generator" content="Motorola Mobility Ninja">
11 11
12 <style type="text/css"> 12 <style type="text/css">
13 html, body {
14 width: 100%;
15 height: 100%;
16 margin: 0;
17 padding: 0;
18 }
13 </style> 19 </style>
14 20
15 </head> 21 </head>