cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cordova-windows git commit: CB-9870 updated hello world template
Date Thu, 29 Oct 2015 22:49:47 GMT
Repository: cordova-windows
Updated Branches:
  refs/heads/master bd87ef2ef -> f326e0029


CB-9870 updated hello world template


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/f326e002
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/f326e002
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/f326e002

Branch: refs/heads/master
Commit: f326e0029ee8e81a6d915f2345cb85563c9a5a32
Parents: bd87ef2
Author: Steve Gill <stevengill97@gmail.com>
Authored: Thu Oct 29 15:49:42 2015 -0700
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Thu Oct 29 15:49:42 2015 -0700

----------------------------------------------------------------------
 template/www/img/logo.png | Bin 11600 -> 21814 bytes
 template/www/index.html   |  23 +++++++++++++++--------
 template/www/js/index.js  |   2 ++
 3 files changed, 17 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f326e002/template/www/img/logo.png
----------------------------------------------------------------------
diff --git a/template/www/img/logo.png b/template/www/img/logo.png
index 86a48a8..9519e7d 100644
Binary files a/template/www/img/logo.png and b/template/www/img/logo.png differ

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f326e002/template/www/index.html
----------------------------------------------------------------------
diff --git a/template/www/index.html b/template/www/index.html
index daf12c4..646f9cb 100644
--- a/template/www/index.html
+++ b/template/www/index.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html>
 <!--
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
@@ -19,10 +19,20 @@
 -->
 <html>
     <head>
-        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-        <meta name="format-detection" content="telephone=no" />
-        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1,
minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
-        <link rel="stylesheet" type="text/css" href="css/index.css" />
+        <!--
+        Customize this policy to fit your own app's needs. For more guidance, see:
+            https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy
+        Some notes:
+            * gap: is required only on iOS (when using UIWebView) and is needed for JS->native
communication
+            * https://ssl.gstatic.com is required only on Android and is needed for TalkBack
to function properly
+            * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities.
To change this:
+                * Enable inline JS: add 'unsafe-inline' to default-src
+        -->
+        <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap:
https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
+        <meta name="format-detection" content="telephone=no">
+        <meta name="msapplication-tap-highlight" content="no">
+        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1,
minimum-scale=1, width=device-width">
+        <link rel="stylesheet" type="text/css" href="css/index.css">
         <title>Hello World</title>
     </head>
     <body>
@@ -35,8 +45,5 @@
         </div>
         <script type="text/javascript" src="cordova.js"></script>
         <script type="text/javascript" src="js/index.js"></script>
-        <script type="text/javascript">
-            app.initialize();
-        </script>
     </body>
 </html>

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f326e002/template/www/js/index.js
----------------------------------------------------------------------
diff --git a/template/www/js/index.js b/template/www/js/index.js
index 87b5660..c31cd83 100644
--- a/template/www/js/index.js
+++ b/template/www/js/index.js
@@ -47,3 +47,5 @@ var app = {
         console.log('Received Event: ' + id);
     }
 };
+
+app.initialize();
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message