-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.html
More file actions
64 lines (63 loc) · 2.19 KB
/
app.html
File metadata and controls
64 lines (63 loc) · 2.19 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web App</title>
<style>
html,body { height:100% }
</style>
<script type="text/javascript">
var app_html_version = "1.5.3"
function Script(src) {
var script = document.createElement("script")
script.setAttribute("type","text/javascript")
script.setAttribute("src",src)
document.getElementsByTagName("head")[0].appendChild(script)
}
var app_prefix=""
var app, global_args, app_base
var doc
var head=document.head;
(function() {
var tmp = document.location.pathname.split("#")[0].split("/")
if (tmp[tmp.length-1] == "app.html") {
// file:///path/to/app.html#appname
// http://host/path/to/app.html#appname
appbase = "app.html#"
app = [ "", "app" ].concat(document.location.hash.slice(1).split("/"))
} else {
// http://host/app/appname
// http://host/app/appname/args
appbase = "/app/"
app_prefix="/"
app=document.location.pathname.split("/")
}
Script(app_prefix+"compat.js")
Script(app_prefix+"app.js")
var app2 = app.slice(3)
app=app[2] // [app.length-1]
var str = document.location.search, x=[]
if (str) {
if (str[0] == "?") str = str.slice(1,str.length)
x=str.split("+")
}
console.log(app,app2,x)
global_args = [ app ].concat(app2).concat(x)
document.title = app
})();
</script>
</head>
<body onload="doc=document.body;js(app,function() {$del('tmp')})" style="background:linear-gradient(rgb(158,3,255),rgb(0,0,0))">
<div id="tmp" style="position:fixed; right:50%; bottom:25%; height:100%;">
<div style="background-color:rgb(79,1,128);border:10px solid white;opacity:1;left:50%;position:relative;top:50%;color:rgb(255,255,0)"">
<center style='font-size:10vw'>WebApp</center>
<center style='font-size:3em'>Version <span id="version">1.5.3</span></center>
</div>
</div>
<noscript>
<div style="position:fixed; left:0px; top:0px; width:100%; height:10%; z-order:9999; background-color:black; color:white;">
<center><h1>Please enable Javascript in your browser and reload the page to continue.</h1></center>
</div>
</noscript>
</body>
</html>