mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
Fixed loading spinner example
This commit is contained in:
parent
26d1ca739d
commit
6c0b1b8c2c
@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- <script src="../dist/iife/spine-webgl.js"></script> -->
|
||||
<script src="./spine-webgl.min.js"></script>
|
||||
<script src="../dist/iife/spine-webgl.js"></script>
|
||||
<!-- <script src="./spine-webgl.min.js"></script> -->
|
||||
<title>JS Library Showcase</title>
|
||||
<style>
|
||||
body {
|
||||
@ -621,10 +621,10 @@
|
||||
element.disabled = true;
|
||||
await widget.loadingPromise;
|
||||
const skeleton = widget.skeleton;
|
||||
widget.skeleton = null;
|
||||
widget.loading = true;
|
||||
setTimeout(() => {
|
||||
element.disabled = false;
|
||||
widget.skeleton = skeleton;
|
||||
widget.loading = false;
|
||||
}, 1000)
|
||||
}
|
||||
function toggleSpinner(element) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user