Skip to content

joethun/EmulatorJS-With-Cores

Repository files navigation

Note

This project was not created by me. See link above.

Example HTML:

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>

About

A mirror of the current release of EmulatorJS so you can use it without a server

Topics

Resources

Stars

Watchers

Forks