Note
This project was not created by me. See link above.
This allows you to use it on hosting platforms with ease, such as Google Sites.
<!doctype html>
<html>
<body>
<script>
ejs();
function ejs() {
try {
fetch("https://cdn.jsdelivr.net/gh/joethun/EmulatorJS-With-Cores@main/EmulatorJS.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>
</body>
</html>