Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodgath committed Aug 8, 2023
1 parent f5a4bc0 commit 636c45f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
###### v1.0.0 - Aug 5, 2023
```
= Initial release.
```
```
5 changes: 5 additions & 0 deletions demo/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,9 @@ body {
.code-box pre {
margin : 0;
font-size: 13px
}

/* Alter drag handle width */
#judo-scroller {
width: 60% !important;
}
6 changes: 4 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ <h2>360° degrees image spinner and rotation using JavaScript. </h2>
<img src="images/36.png" alt="Image 36">
</div>

<br><br><br>

<div class="accordion">
<div class="accordion-item">
<div class="accordion-header">HTML Code</div>
Expand Down Expand Up @@ -121,7 +123,7 @@ <h2>360° degrees image spinner and rotation using JavaScript. </h2>
<div class="code-box">
<pre><code class="language-javascript">&lt;script&gt;
document.addEventListener(&#39;DOMContentLoaded&#39;, function () {
judoSpin(&#39;.image-spin-box&#39;, { currImage: 1, enableDragHangle: true });
judoSpin(&#39;.image-spin-box&#39;, { currImage: 1, enableDragHandle: true });
});
&lt;/script&gt;</code></pre>
</div>
Expand All @@ -148,7 +150,7 @@ <h2>360° degrees image spinner and rotation using JavaScript. </h2>
document.addEventListener('DOMContentLoaded', function () {
judoSpin('.image-spin-box', {
currImage: 1,
enableDragHangle: true
enableDragHandle: true
});
});
</script>
Expand Down

0 comments on commit 636c45f

Please sign in to comment.