| Revision 3706:170617361020,
427 bytes
checked in by franck <carnet.franck.paul@…>, 8 years ago
(diff) |
|
use strict and no more linter warnings/errors as far as possible
|
| Line | |
|---|
| 1 | /*global $ */ |
|---|
| 2 | 'use strict'; |
|---|
| 3 | |
|---|
| 4 | $(function() { |
|---|
| 5 | if ($('#prelude').length > 0) { |
|---|
| 6 | $('#prelude a') |
|---|
| 7 | .addClass('hidden') |
|---|
| 8 | .focus(function() { |
|---|
| 9 | $('#prelude a').removeClass('hidden'); |
|---|
| 10 | $('#wrapper, #help-button, #collapser').addClass('with-prelude'); |
|---|
| 11 | }); |
|---|
| 12 | |
|---|
| 13 | $('body').on('click', '#prelude a[href="#help"]', function(e) { |
|---|
| 14 | e.preventDefault(); |
|---|
| 15 | $('#help-button a').focus(); |
|---|
| 16 | }); |
|---|
| 17 | } |
|---|
| 18 | }); |
|---|
Note: See
TracBrowser
for help on using the repository browser.