HTML import test 3
This commit is contained in:
parent
876b4bc281
commit
00db4bbede
@ -1,5 +1,15 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="import" href="https://glenwing.github.io/docs">
|
<link rel="import" href="../docs.html">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
<body id="mainbody">
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var link = document.querySelector('link[rel="import"]');
|
||||||
|
var content = link.import;
|
||||||
|
|
||||||
|
document.getElementById('mainbody').innerHTML = content.documentElement.innerHTML;
|
||||||
|
</script>
|
Loading…
x
Reference in New Issue
Block a user