HTML Import Links Final

This commit is contained in:
Glenwing 2017-08-18 16:27:49 -07:00
parent d193f0b746
commit 0489836c88
3 changed files with 51 additions and 0 deletions

17
adapters/index.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html id="page">
<head>
<link rel="import" href="../adapters.html">
</head>
<body>
</body>
</html>
<script>
var link = document.querySelector('link[rel="import"]');
var content = link.import;
document.getElementById('page').innerHTML = content.documentElement.innerHTML;
</script>

17
diu/index.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html id="page">
<head>
<link rel="import" href="../diu.html">
</head>
<body>
</body>
</html>
<script>
var link = document.querySelector('link[rel="import"]');
var content = link.import;
document.getElementById('page').innerHTML = content.documentElement.innerHTML;
</script>

17
flickerer/index.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html id="page">
<head>
<link rel="import" href="../flickerer.html">
</head>
<body>
</body>
</html>
<script>
var link = document.querySelector('link[rel="import"]');
var content = link.import;
document.getElementById('page').innerHTML = content.documentElement.innerHTML;
</script>