Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Jun 9, 2023
1 parent 9f941b7 commit f75d3ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/generic.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</div>

</div>
<div class="item s"><div class="label pos-90"><span class="label__text">hole</span></div></div>
<div class="item s"><div class="label pos-90"><span class="text">hole</span></div></div>
<div class="item s"></div>
<div class="item s"></div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions examples/watch.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</div>
<div class="ring-3 items-12 offset-270">
<svg class="z-svg">
<circle class="percent hour" style="--stroke: 60"/>
<circle class="svg-progress hour" style="--stroke: 60"/>
</svg>
</div>
<div class="ring-3">
Expand All @@ -64,12 +64,12 @@
</div>
<div class="ring-2">
<svg class="z-svg">
<circle class="percent minute" />
<circle class="svg-progress minute" />
</svg>
</div>
<div class="ring-1">
<svg class="z-svg">
<circle class="percent second" />
<circle class="svg-progress second" />
</svg>
</div>
</div>
Expand Down Expand Up @@ -101,9 +101,9 @@
const minuteDigital = document.querySelector('.d-m');
const secondDigital = document.querySelector('.d-s');

const svgh = document.querySelector('.percent.hour');
const svgm = document.querySelector('.percent.minute');
const svgs = document.querySelector('.percent.second');
const svgh = document.querySelector('.svg-progress.hour');
const svgm = document.querySelector('.svg-progress.minute');
const svgs = document.querySelector('.svg-progress.second');

// Set the transform style of each hand element with angle correction
hourHand.style.setProperty("--angle", hourAngle)
Expand Down

0 comments on commit f75d3ea

Please sign in to comment.