forked from pcimino/enyo-mvc-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmvcAppDebug.html
47 lines (44 loc) · 2.04 KB
/
mvcAppDebug.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Enyo MVC Web App</title>
<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">
<script type="text/javascript">
// resize for mobile
if(window.innerWidth <= 800 && window.innerHeight <= 600) {
document.write('<meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=1.0, user-scalable=yes">')
} else {
document.write('<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">')
}
</script>
<!-- Less.js (uncomment for client-side rendering of less stylesheets; leave commented to use only CSS) -->
<!-- <script src="enyo/tools/minifier/node_modules/less/dist/less-1.3.3.min.js"></script> -->
<!-- enyo (debug) -->
<script src="enyo/enyo.js"></script>
<!-- application (debug) -->
<script src="source/package.js" type="text/javascript"></script>
<!-- Socket.io support -->
<script src="lib/socket.io/socket.io.js"></script>
</head>
<body class="enyo-unselectable">
<script type="text/javascript">
// resize for mobile
if(window.innerWidth <= 800 && window.innerHeight <= 600) {
document.write('<meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=1.0, user-scalable=no">')
} else {
document.write('<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">')
}
function isCanvasSupported(){
var elem = document.createElement('canvas');
return !!(elem.getContext && elem.getContext('2d'));
}
if (!isCanvasSupported()) {
location = "index.html"
}
</script>
</body>
</html>