mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
29 lines
546 B
HTML
29 lines
546 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<script src="../../build/spine-widget.js"></script>
|
|
<link rel="stylesheet" href="../css/spine-player.css">
|
|
</head>
|
|
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
<div id="player"></div>
|
|
</body>
|
|
<script>
|
|
window.addEventListener("message", function (event) {
|
|
new spine.SpinePlayer(document.getElementById("player"), event.data);
|
|
}, false);
|
|
</script>
|
|
</body>
|
|
</html> |