Skip to content

Commit

Permalink
Add tab index for keyboard ease of keyboard navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
OutOfBrain committed Oct 6, 2015
1 parent 59ce711 commit 0ee10e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -51,8 +51,8 @@ <h2 id='title-header'>
<div id='sql-header'>
<strong>SQL:</strong>
</div>
<textarea id='sql-input' rows=8 cols=40></textarea>
<a id='sql-link' href='#' class='btn btn-default'>Run SQL</a>
<textarea id='sql-input' rows=8 cols=40 tabindex='1'></textarea>
<a id='sql-link' href='#' class='btn btn-default' tabindex='2'>Run SQL</a>
</div>
<div class='results-container'>
<strong>Result:</strong>
Expand Down
2 changes: 1 addition & 1 deletion sqlteaching.js
Expand Up @@ -38,7 +38,7 @@ var show_is_correct = function(is_correct, custom_error_message) {
if (is_correct) {
is_correct_html = 'Congrats! That is correct!<br/>';
if (current_level < levels.length) {
is_correct_html += '<a href="#!' + levels[current_level]['short_name'] + '">Next Lesson</a>';
is_correct_html += '<a href="#!' + levels[current_level]['short_name'] + '" tabindex="3">Next Lesson</a>';
} else {
is_correct_html += 'That is currently the end of the tutorial. Please check back later for more!';
}
Expand Down

0 comments on commit 0ee10e7

Please sign in to comment.