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:Emi/monobook.js"
< User:Emi
Jump to navigation
Jump to search
(Replaced content with 'alert('test');') |
|||
Line 1: | Line 1: | ||
− | + | function collapseSiteAnnounce() | |
+ | { | ||
+ | var tableIndex = 0; | ||
+ | var NavigationBoxes = new Object(); | ||
+ | var Tables = document.getElementsByTagName( "table" ); | ||
+ | |||
+ | for ( var i = 0; i < Tables.length; i++ ) { | ||
+ | if ( hasClass( Tables[i], "collapsible" ) ) { | ||
+ | tableIndex++; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | for ( var i = 0; i < tableIndex; i++ ) { | ||
+ | if ( NavigationBoxes[i].getAttribute("id") == "siteannounce" ) { | ||
+ | collapseTable( i ); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | collapseSiteAnnounce(); |
Revision as of 21:58, 2 April 2010
function collapseSiteAnnounce()
{
var tableIndex = 0;
var NavigationBoxes = new Object();
var Tables = document.getElementsByTagName( "table" );
for ( var i = 0; i < Tables.length; i++ ) {
if ( hasClass( Tables[i], "collapsible" ) ) {
tableIndex++;
}
}
for ( var i = 0; i < tableIndex; i++ ) {
if ( NavigationBoxes[i].getAttribute("id") == "siteannounce" ) {
collapseTable( i );
}
}
}
collapseSiteAnnounce();