Skip to content

Instantly share code, notes, and snippets.

@ufo22940268
Created December 23, 2020 06:59
Show Gist options
  • Save ufo22940268/cd6c8a6ccc10b888f47e2e58b611ea60 to your computer and use it in GitHub Desktop.
Save ufo22940268/cd6c8a6ccc10b888f47e2e58b611ea60 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
.banner {
height: 300px;
background: aquamarine;
}
</style>
</head>
<body>
<div class="banner">
<h1>Header</h1>
</div>
<section>
</section>
<div class="banner">
<h1>Foot</h1>
</div>
</body>
<script type="text/javascript">
(async () => {
const response = await fetch("http://localhost:63342/test/84d1369d2a97cb2150a3922897248912.html?_ijt=i2l1dv051h9dp9g0qp72g48673");
document.querySelector('section').innerHTML = await response.text();
})();
</script>
</html>
@ufo22940268
Copy link
Author

ufo22940268 commented Dec 23, 2020

Load html from local server because the CORS restriction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment