forked from apache/incubator-annotator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (31 loc) · 1.07 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="Apache Software Foundation">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Apache Annotator Incubating</title>
<script src="system.js"></script>
<script src="system-config.js"></script>
<script>
System.import('webcomponents.js');
System.import('systemjs-hot-reloader').then((connect) => {
connect({ host: window.location.origin });
});
/**
* Wipe the document body, replacing it with the import.
*/
function render() {
requestAnimationFrame(() => {
const link = document.querySelector('[rel=import]');
const { body, documentElement } = document;
const clone = link.import.body.cloneNode(true);
documentElement.replaceChild(clone, body);
});
}
</script>
<link href="https://annotator.apache.org" rel="import" onload="render()">
</head>
<body></body>
</html>