|
|
| (未显示2个用户的29个中间版本) |
| 第1行: |
第1行: |
| /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | | /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ |
|
| |
| /* 随系统切换暗黑模式。 */
| |
| window.wpDarkModeAutoToggle = true;
| |
|
| |
|
| /* UTC时钟使用本地时区。 */ | | /* UTC时钟使用本地时区。 */ |
| window.LiveClockTimeZone = 'Asia/Shanghai'; | | window.LiveClockTimeZone = 'Asia/Shanghai'; |
|
| |
|
| /* 优化 */ | | /* 优化 */ |
| if (location.pathname === '/') { | | if (location.pathname === '/') { |
| history.replaceState({}, document.title, 'Index'); | | history.replaceState({}, document.title, 'Index'); |
| }
| |
|
| |
|
| |
| /* 百度统计代码 */
| |
| var _hmt = _hmt || [];
| |
| (function() {
| |
| var hm = document.createElement("script");
| |
| hm.src = "https://hm.baidu.com/hm.js?1d1f417946fa19c604c8a03880f407ed";
| |
| var s = document.getElementsByTagName("script")[0];
| |
| s.parentNode.insertBefore(hm, s);
| |
| })();
| |
|
| |
|
| |
|
| |
| if ( $.inArray( mw.config.get( 'wgCanonicalSpecialPageName' ), ['Upload']) != -1 ) {
| |
|
| |
| $( 'legend:nth(1)' ).wrapInner( '<a href="#" />' )
| |
| .click( function( e ) {
| |
| e.preventDefault(); // avoid jumping to the top (href=#)
| |
| $( '#mw-htmlform-description' ).toggle( 'fast' );
| |
| } )
| |
| $( '#mw-htmlform-description' ).delay( 500 ).hide( 'slow' ); // Hide by default, but delayed for to give other elements time to expand first
| |
|
| |
| $( 'legend:nth(2)' ).wrapInner( '<a href="#" />' )
| |
| .click( function( e ) {
| |
| e.preventDefault(); // avoid jumping to the top (href=#)
| |
| $( '#mw-htmlform-options' ).toggle( 'fast' );
| |
| } )
| |
| $( '#mw-htmlform-options' ).hide( ); // Hide by default
| |
| } | | } |
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
/* UTC时钟使用本地时区。 */
window.LiveClockTimeZone = 'Asia/Shanghai';
/* 优化 */
if (location.pathname === '/') {
history.replaceState({}, document.title, 'Index');
}