Last active
August 29, 2015 14:06
-
-
Save jonlow/cbc09d76cfc8ab1ee29b to your computer and use it in GitHub Desktop.
Screen Reader only link that goes to the next page in the module. This example is in the context of an animation page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- /#transition --> | |
<!-- 1. Directly after the transition html | |
have a link that goes to the next page. Use the visuallyhidden class | |
to make sure that only the screen reader can access it --> | |
<a href="#" class="screenReaderBtn visuallyhidden">Go to the next page</a> | |
<script> | |
// 2. This JS just completes the page and navigates to the next page | |
// when you click on the link | |
$('.screenReaderBtn').click(function() { | |
T2.page.completePage(); | |
T2.navigation.nextPage(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment