* Removes tabindex property from all links on the current slide, sets * tabindex = -1 for all links on other slides. Prevents slides from appearing * out of control.
()
| 62 | * out of control. |
| 63 | */ |
| 64 | function updateTabIndex() { |
| 65 | var allLinks = document.querySelectorAll('.slide a'); |
| 66 | var position = currentPosition(); |
| 67 | var currentPageLinks = document.getElementById('slide-' + position).querySelectorAll('a'); |
| 68 | var i; |
| 69 | |
| 70 | for (i = 0; i < allLinks.length; i++) { |
| 71 | allLinks[i].setAttribute('tabindex', -1); |
| 72 | } |
| 73 | |
| 74 | for (i = 0; i < currentPageLinks.length; i++) { |
| 75 | currentPageLinks[i].removeAttribute('tabindex'); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Determines whether or not we are currently in full screen mode |
no test coverage detected