-
Notifications
You must be signed in to change notification settings - Fork 63
/
v2.html
64 lines (59 loc) · 3.1 KB
/
v2.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="lib/_npm/goldenlayout/goldenlayout-base.css" />
<link rel="stylesheet" type="text/css" href="lib/_npm/goldenlayout/goldenlayout-dark-theme.css" />
<link rel="stylesheet" type="text/css" href="lib/_npm/smooth-scrollbar/smooth-scrollbar.css">
<link rel="stylesheet" type="text/css" href="lib/_npm/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="lib/_npm/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="css/contextmenu.css" />
<link rel="stylesheet" type="text/css" href="css/HexViewer.css" />
<link rel="stylesheet" type="text/css" href="css/v2.css" />
<script src="lib/_npm/smooth-scrollbar/smooth-scrollbar.js"></script>
<script src="lib/yaml.js"></script>
<script src="js/extensions.js"></script>
<script src="js/kaitaiFsFiles.js"></script>
<script src="js/AmdLoader.js"></script>
<script src="lib/thenBy.js"></script>
<script>
async function init(){
loader.paths = {
"big-integer": "lib/_npm/BigInteger/BigInteger",
jquery: "lib/_npm/jquery/jquery.min",
ace: "lib/_npm/ace",
bootstrap: "lib/_npm/bootstrap/js/bootstrap.min",
"yamljs": "lib/yaml",
"KaitaiStream": "lib/_npm/kaitai-struct/KaitaiStream",
"kaitai-struct-compiler": "lib/_npm/kaitai-struct-compiler/kaitai-struct-compiler"
};
["bowser", "jstree", "localforage", "goldenlayout", "vue", "dateformat"].forEach(
name => loader.paths[name] = `lib/_npm/${name}/${name}`);
let componentLoader = (await loader.getLoadedModule('ui/ComponentLoader')).exports.componentLoader;
//console.log('componentLoader', componentLoader);
loader.beforeLoadHook = async module => {
// console.log('module loading: ', module.url);
if(/ui.(Parts|Components)/.exec(module.url)){
//console.log('load template for', module.url);
await componentLoader.loadTemplate(module.url.replace(/\.js$/, ".html").replace(/js\/ui/, "src/ui"));
} else if (module.url.indexOf("bootstrap") !== -1)
window["jQuery"] = (await loader.getLoadedModule('jquery')).exports;
};
require(["autorefresh2"]);
require(["v1/app.unsupportedBrowser"]);
require(["v2"]);
};
init();
</script>
</head>
<body>
<div id="unsupportedBrowser">
Your browser is not supported. Features may be or may not be working. <a href="http://outdatedbrowser.com/" target="_blank">Please use the latest Chrome or Firefox.</a>
<i class="closeBtn glyphicon glyphicon-remove" style="cursor: pointer"></i>
</div>
<noscript>
<div id="noscript">This app requires Javascript to work. <a href="http://enable-javascript.com/" target="_blank">Learn how to enable Javascript.</a></div>
</noscript>
</body>
</html>