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