-
Notifications
You must be signed in to change notification settings - Fork 54
/
index.html
43 lines (40 loc) · 1.43 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Weex Vue Demo</title>
<meta name="viewport" content="width=750, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="format-detection" content="telephone=no, email=no" />
<style>html,body{width:100%;height:100%;margin:0;padding:0;}</style>
<script src="./node_modules/vue/dist/vue.runtime.js"></script>
<script src="./node_modules/weex-vue-render/dist/index.js"></script>
<script src="./assets/phantom-limb.js"></script>
</head>
<body>
<div id="root"></div>
<script>
/**
* these iife is just for the convenience for the showcase of demos.
* you can import a jsbundle by wrapping it in a <script> tag.
* e.g. <script src="./dist/landing.web.js"></*script>
*/
;(function () {
var defaultPage = 'landing.web.js'
var match = location.search.match(new RegExp('[?|&]page=([^&]+)'))
var page = match && match[1]
if (!page) {
return location.href = location.href.replace(/\?|$/, function(f) {
var query = '?page=' + defaultPage
return f ? query + '&' : query
})
}
var $script = document.createElement('script')
$script.src = './dist/' + page
document.body.appendChild($script)
})()
</script>
</body>
</html>