26 lines
860 B
HTML
26 lines
860 B
HTML
<script>
|
|
launch();
|
|
|
|
function launch() {
|
|
try {
|
|
fetch("https://cdn.jsdelivr.net/gh/gn-math/gn-math.github.io@main/singlefile.html?t="+Date.now())
|
|
.then(response => response.text())
|
|
.then(html => {
|
|
document.documentElement.innerHTML = html;
|
|
|
|
document.documentElement.querySelectorAll('script').forEach(oldScript => {
|
|
const newScript = document.createElement('script');
|
|
if (oldScript.src) {
|
|
newScript.src = oldScript.src;
|
|
} else {
|
|
newScript.textContent = oldScript.textContent;
|
|
}
|
|
document.body.appendChild(newScript);
|
|
});
|
|
});
|
|
} catch (error) {
|
|
console.error('error:', error);
|
|
}
|
|
}
|
|
</script>
|