Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 18:34, 16 December 2022
188 bytes added
,
1 year ago
no edit summary
Line 252:
Line 252:
if ($tables.length == 0) return;
if ($tables.length == 0) return;
−
$tables.each(function() {
+
$tables.each(function(
i
) {
if ($(this).hasClass('header-fixed-done')) return;
if ($(this).hasClass('header-fixed-done')) return;
if ($(this).hasClass('mw-collapsed')) {
if ($(this).hasClass('mw-collapsed')) {
+
console.debug('header-fixed: collapsed: ' + i)
$(this).find('.mw-collapsible-text').click(function() {
$(this).find('.mw-collapsible-text').click(function() {
−
setTimeout(function() { initializeStickyHeader(); },
500
);
+
console.debug('header-fixed: click: ' + i)
+
setTimeout(function() { initializeStickyHeader(); },
1000
);
})
})
return;
return;
Line 303:
Line 305:
*/
*/
$(this).addClass('header-fixed-done');
$(this).addClass('header-fixed-done');
+
console.debug('header-fixed: fixed: ' + i)
});
});
}
}
Line 329:
Line 332:
}
}
*/
*/
−
initializeStickyHeader();
+
setTimeout(function() {
initializeStickyHeader(
); }, 1000
);
//})
//})
});
});
がか
cssedit, gkautomate
6,926
edits