| Revision 1615:d04ee39c7146,
718 bytes
checked in by Anne Kozlika <kozlika@…>, 12 years ago
(diff) |
|
blog_pref.php: English correction.
blog.php: Warning alert not needed while creating new blog.
|
| Line | |
|---|
| 1 | // Accessibility links thks to vie-publique.fr |
|---|
| 2 | aFocus = function() { |
|---|
| 3 | if(document.getElementById("prelude")) { |
|---|
| 4 | var aElts = document.getElementById("prelude").getElementsByTagName("A"); |
|---|
| 5 | for (var i=0; i<aElts.length; i++) { |
|---|
| 6 | aElts[i].className="hidden"; |
|---|
| 7 | aElts[i].onfocus=function() { |
|---|
| 8 | $('#prelude a').removeClass('hidden'); |
|---|
| 9 | $('#wrapper').css('padding-top', '1em'); |
|---|
| 10 | $('#help-button').css('top', '4em'); |
|---|
| 11 | } |
|---|
| 12 | } |
|---|
| 13 | } |
|---|
| 14 | } |
|---|
| 15 | // events onload |
|---|
| 16 | function addLoadEvent(func) { |
|---|
| 17 | if (window.addEventListener) |
|---|
| 18 | window.addEventListener("load", func, false); |
|---|
| 19 | else if (window.attachEvent) |
|---|
| 20 | window.attachEvent("onload", func); |
|---|
| 21 | } |
|---|
| 22 | addLoadEvent(aFocus); |
|---|
| 23 | |
|---|
| 24 | // init |
|---|
| 25 | $(function() { |
|---|
| 26 | $('#wrapper').css('padding-top', '0'); |
|---|
| 27 | }); |
|---|
Note: See
TracBrowser
for help on using the repository browser.