Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
update doc and ariaLabel defualt value
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmester committed Mar 13, 2020
1 parent 1ab85da commit 1d6c84c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/a11y-carousel.min.js

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ <h3>HTML</h3>
<h3>JS</h3>

<pre><code class="javascript">var slider = new A11yCarousel("#my-slider", { // Use an ID not a class
autoplay: true,
// Your settings
dots: true,
arrows: true,
className: 'my-super-slider'
className: 'my-super-slider',
ariaLabel: 'News Highlights'
});</code></pre>

<h2 id="settings">Settings</h2>
Expand Down Expand Up @@ -226,7 +226,7 @@ <h2 id="settings">Settings</h2>
ariaLabel
</td>
<td>
Slideshow description (string)
Slideshow (string)
</td>
<td>
What's in your carousel? Example : News Highlights
Expand Down Expand Up @@ -316,7 +316,7 @@ <h2 id="settings">Settings</h2>
</div>

<h2 id="starter">SASS Starter</h2>
<p>Here is a sass starter width Font Awesome 5 Free:</p>
<p>Because I'm nice, here is a sass starter width Font Awesome 5 Free:</p>
<div id="slideshow">
<div>
<img src="http://placehold.jp/40/2d53fe/ffffff/920x300.jpg?text=SLIDE%201" alt="illustration image 1">
Expand Down Expand Up @@ -450,12 +450,13 @@ <h2 id="starter">SASS Starter</h2>
document.addEventListener("DOMContentLoaded", function(event) {
var slider = new A11yCarousel("#demo", {
dots: true,
className: 'demo-slider'
className: 'demo-slider',
ariaLabel: 'Demo Slider'
});
var starter = new A11yCarousel("#slideshow", {
autoplay: true,
dots: true,
className: 'slideshow'
className: 'slideshow',
ariaLabel: 'Demo Slider for SASS Starter'
});
hljs.initHighlightingOnLoad();
});
Expand Down
2 changes: 1 addition & 1 deletion src/a11y-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class A11yCarousel {
pauseOnHover: true,
className: `a11y-carousel`,
ariaRoledescription: `carousel`,
ariaLabel: `Slideshow description`,
ariaLabel: `Slideshow`,
playText: `Start slide show`,
pauseText: `Stop slide show`,
previousText: `Previous`,
Expand Down
Loading

0 comments on commit 1d6c84c

Please sign in to comment.