aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debug.html10
-rw-r--r--index.html20
2 files changed, 17 insertions, 13 deletions
diff --git a/debug.html b/debug.html
index 90a3e85..7aaddf6 100644
--- a/debug.html
+++ b/debug.html
@@ -2,11 +2,11 @@
<html>
<head>
<title>Enyo Bootplate App</title>
- <link rel="shortcut icon" href="assets/favicon.ico">
+ <link rel="shortcut icon" href="assets/favicon.ico"/>
<!-- -->
- <meta http-equiv="Content-Type" content="text/html; charset=utf8">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf8"/>
+ <meta name="apple-mobile-web-app-capable" content="yes"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<!-- enyo (debug) -->
<script src="enyo/enyo.js"></script>
<!-- application (debug) -->
@@ -14,7 +14,7 @@
</head>
<body class="enyo-unselectable">
<script>
- new App().write();
+ new App().renderInto(document.body);
</script>
</body>
</html>
diff --git a/index.html b/index.html
index e0e05cc..0117800 100644
--- a/index.html
+++ b/index.html
@@ -2,21 +2,25 @@
<html>
<head>
<title>Enyo Bootplate App</title>
- <link rel="shortcut icon" href="assets/favicon.ico">
+ <link rel="shortcut icon" href="assets/favicon.ico"/>
<!-- -->
- <meta http-equiv="Content-Type" content="text/html; charset=utf8">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf8"/>
+ <meta name="apple-mobile-web-app-capable" content="yes"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<!-- css -->
- <link href="build/enyo.css" rel="stylesheet">
- <link href="build/app.css" rel="stylesheet">
+ <link href="build/enyo.css" rel="stylesheet"/>
+ <link href="build/app.css" rel="stylesheet"/>
<!-- js -->
<script src="build/enyo.js"></script>
- <script src="build/app.js" onerror="alert('No application build found, redirecting to debug.html.'), location='debug.html';"></script>
+ <script src="build/app.js"></script>
</head>
<body class="enyo-unselectable">
<script>
- new App().write();
+ if (!window.App) {
+ alert('No application build found, redirecting to debug.html.');
+ location = 'debug.html';
+ }
+ new App().renderInto(document.body);
</script>
</body>
</html>