v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Slitherrr/hideAnnouncements.js"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Created page with 'addOnloadHook( function () { if (document.getElementById('siteNotice').innerHTML == get_cookie('dfannounce')){ collapseTable(0); // the announcements table is a…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
addOnloadHook(
 
addOnloadHook(
 
     function () {
 
     function () {
      if (document.getElementById('siteNotice').innerHTML == get_cookie('dfannounce')){
+
/*    if (document.getElementById('siteNotice').innerHTML == get_cookie('dfannounce')){
 
         collapseTable(0); // the announcements table is assumed to be collapsableTable0 in this case.  This could be different depending on skin.
 
         collapseTable(0); // the announcements table is assumed to be collapsableTable0 in this case.  This could be different depending on skin.
       }
+
       }*/
 +
/*document.getElementById('siteNotice').style.display = 'none';*/
 +
      collapseTable(0);
 
     }
 
     }
 
);
 
);

Latest revision as of 15:34, 8 April 2010

addOnloadHook(
    function () {
/*     if (document.getElementById('siteNotice').innerHTML == get_cookie('dfannounce')){
        collapseTable(0); // the announcements table is assumed to be collapsableTable0 in this case.  This could be different depending on skin.
      }*/
/*document.getElementById('siteNotice').style.display = 'none';*/
      collapseTable(0);
    }
);