Dotclear

source: inc/admin/default-templates/js/prelude.js @ 1056:b67f949a98f8

Revision 1056:b67f949a98f8, 544 bytes checked in by JcDenis, 13 years ago (diff)
  • Twig know loaded in dcCore
  • Admin context now loaded in admin prepend and avavailable under $_ctx
  • Copy admin theme features in default-templates
  • New URL argument to serve theme file as ?tf=my_theme_file
Line 
1// Accessibility links thks to vie-publique.fr
2aFocus = 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                    this.className="";
9               }
10          }
11     }
12}
13// events onload
14function addLoadEvent(func) {
15     if (window.addEventListener)
16          window.addEventListener("load", func, false);
17     else if (window.attachEvent)
18          window.attachEvent("onload", func);
19}
20addLoadEvent(aFocus);
Note: See TracBrowser for help on using the repository browser.

Sites map