Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Nov 14, 2024
1 parent 6c0ee7b commit 536caaa
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,40 +52,28 @@
to { opacity: 1; }
}

#spinner {
#hourglass {
width: 128px;
height: 128px;
position: absolute;
top: calc(50% - 64px);
left: calc(50% - 64px);
visibility: hidden;
transform: translate(-50%, -50%);
animation: spin 1s infinite linear;
}

#spinner.display {
#hourglass.display {
visibility: visible;
}

@keyframes spin {
from {
transform: rotate(0deg);
}

to {
transform: rotate(360deg);
}
}
</style>
</head>

<body>
<div class="container">
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>
<img id="spinner" src="assets/hourglass.webp" />
<img id="hourglass" src="assets/hourglass.webp" />
<script>
const spinner = document.getElementById("spinner");
spinner.classList.add("display");
const hourglass = document.getElementById("hourglass");
hourglass.classList.add("display");
const canvas = document.getElementById("canvas");

var Module = {
Expand All @@ -98,7 +86,7 @@
const uint8View = new Uint8Array(data);
FS.writeFile("/bundle.7z", uint8View);
Module.callMain();
spinner.classList.remove("display");
hourglass.classList.remove("display");
});
},
};
Expand Down

0 comments on commit 536caaa

Please sign in to comment.