forked from color-coding/ibas-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (47 loc) · 1.75 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
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<title>ibas apps</title>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript" src="./ibas/3rdparty/spin.min.js"></script>
<script type="text/javascript" src="./ibas/3rdparty/jquery.min.js"></script>
<script type="text/javascript" src="./ibas/3rdparty/require.min.js"></script>
<script type="text/javascript">
require([
"./shell/loader.min"
], function () {
// 加载成功
try {
var app = new loader.Application();
app.noCache = true;
app.minLibrary = true;
app.run("./");
} catch (error) {
window.location.href = "ibas/diagnosis/index.html";
console.error(error.toString());
console.warn("Please check if the browser supports es6.");
}
}, function () {
// 加载失败
alert(arguments[0]);
});
</script>
</head>
<body class="sapUiBody" id="content">
<div id="spinner"></div>
<script type="text/javascript">
(function () {
var opts = {
lines: 13, length: 28, width: 14, radius: 42, scale: 0.25, corners: 1,
color: '#000', opacity: 0.25, rotate: 0, direction: 1, speed: 1, trail: 60,
fps: 20, zIndex: 2e9, className: 'spinner', top: '50%', left: '50%', shadow: false,
hwaccel: false, position: 'absolute'
};
var target = document.getElementById('spinner');
var spinner = new Spinner(opts).spin(target);
}());
</script>
</body>
</html>