Skip to content

Commit

Permalink
Update tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetan committed Feb 6, 2025
1 parent 36913c0 commit 7d3d6a7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions spine-ts/spine-webgl/example/webcomponent-tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -2782,15 +2782,15 @@
function createCircleOfDivs(numDivs = 8) {
const container = document.createElement('div');
container.style.position = 'relative';
container.style.width = '400px';
container.style.height = '400px';
container.style.width = '350px';
container.style.height = '350px';
container.style.backgroundColor = '#f3f4f6';
container.style.borderRadius = '50%';
container.style.display = 'flex';
container.style.justifyContent = 'center';
container.style.alignItems = 'center';

const radius = 150;
const radius = 140;

for (let i = 0; i < numDivs; i++) {
const angle = (i / numDivs) * 2 * Math.PI;
Expand All @@ -2799,8 +2799,8 @@

const div = document.createElement('div');
div.style.position = 'absolute';
div.style.width = '100px';
div.style.height = '100px';
div.style.width = '90px';
div.style.height = '90px';
div.style.backgroundColor = '#3b82f6';
div.style.borderRadius = '8px';
div.style.display = 'flex';
Expand Down Expand Up @@ -3185,7 +3185,6 @@

<div class="section vertical-split">

<div class="split-top split">
<div class="split-left">
A login UI made using the chibi stickers and a button made using Spine.
<p>
Expand All @@ -3211,7 +3210,7 @@


<span id="ruler" style="visibility: hidden; white-space: nowrap; position: absolute"></span>
<div style="background-color: white; width: 350px; padding: 30px; text-align: center;">
<div style="background-color: white; width: 250px; padding: 30px; text-align: center;">
<div style="display: flex; justify-content: center;">
<div style="width: 150px; height:150px; border-radius: 5%; border: 1px solid rgb(113, 113, 113); background-color: rgb(211, 211, 211); margin-bottom: 30px;">
<spine-widget
Expand Down Expand Up @@ -3413,7 +3412,6 @@

</script>

</div>

<div class="split-bottom">
<pre><code id="code-display">
Expand Down

0 comments on commit 7d3d6a7

Please sign in to comment.