Skip to content

Commit

Permalink
deploy: 2c77557
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Oct 20, 2024
1 parent 2fa5719 commit b0682a7
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions webasm/webgpu.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,45 +61,6 @@ <h1>RGFW WebASM Example &nbsp;&nbsp;&nbsp;&nbsp;
</canvas>
</div>


<script async src="../examples/webgpu/webgpu.js"> </script>
<script>
document.addEventListener("DOMContentLoaded", function (event) {
if (document.querySelector('Component') == null) {
var script = document.querySelector('script[src="../examples/webgpu/webgpu.js"]')
document.head.removeChild(script)
}
});
</script>

<script async src="../webgpu.js"> </script>
<script>
document.addEventListener("DOMContentLoaded", function (event) {
if (document.querySelector('Component') == null) {
var script = document.querySelector('script[src="../webgpu.js"]')
document.head.removeChild(script)
}
});
</script>

<div id="log"></div>

<script>
(function () {
var logContainer = document.getElementById('log');
var originalLog = console.log;

console.log = function (message) {
if (typeof message === 'object') {
message = JSON.stringify(message, null, 2);
}
logContainer.innerHTML += message + '\n';
logContainer.scrollTop = logContainer.scrollHeight; // Auto-scroll to the bottom
originalLog.apply(console, arguments);
};
})();
</script>

<script type='text/javascript'>
var Module = {
print: (function() {
Expand Down Expand Up @@ -155,6 +116,45 @@ <h1>RGFW WebASM Example &nbsp;&nbsp;&nbsp;&nbsp;
</script>
{{{ SCRIPT }}}



<script async src="../examples/webgpu/webgpu.js"> </script>
<script>
document.addEventListener("DOMContentLoaded", function (event) {
if (document.querySelector('Component') == null) {
var script = document.querySelector('script[src="../examples/webgpu/webgpu.js"]')
document.head.removeChild(script)
}
});
</script>

<script async src="../webgpu.js"> </script>
<script>
document.addEventListener("DOMContentLoaded", function (event) {
if (document.querySelector('Component') == null) {
var script = document.querySelector('script[src="../webgpu.js"]')
document.head.removeChild(script)
}
});
</script>

<div id="log"></div>

<script>
(function () {
var logContainer = document.getElementById('log');
var originalLog = console.log;

console.log = function (message) {
if (typeof message === 'object') {
message = JSON.stringify(message, null, 2);
}
logContainer.innerHTML += message + '\n';
logContainer.scrollTop = logContainer.scrollHeight; // Auto-scroll to the bottom
originalLog.apply(console, arguments);
};
})();
</script>
</body>

</html>

0 comments on commit b0682a7

Please sign in to comment.