Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (44 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 9: | Rivi 9: | ||
} | } | ||
} | } | ||
setTimeout( function(){ <!--{$id|default:lakebarofix|escape:'html'}-->_jQueryTest() }, | setTimeout( function(){ <!--{$id|default:lakebarofix|escape:'html'}-->_jQueryTest() }, 100); | ||
function <!--{$id|default:lakebarofix|escape:'html'}-->_func() { | function <!--{$id|default:lakebarofix|escape:'html'}-->_func() { | ||
jQuery( '#firstHeading' ).html( ' | //jQuery( 'head' ).append( '<link rel="manifest" href="/w/resources/assets/katuma/katuma.webmanifest">' ); | ||
var name = "<!--{$name|default:X|escape:'html'}-->"; | |||
if ( name != 'X' ) { | |||
if ( jQuery( '#firstHeading' ).html() != 'Testijärvibarometri' ) { | |||
jQuery( '#firstHeading' ).html( name ); | |||
} | |||
} | |||
jQuery( '.jwCollapseClose' ).on( 'click', function() { | jQuery( '.jwCollapseClose' ).on( 'click', function() { | ||
jQuery( [ document.documentElement, document.body ] ).animate({ | |||
var eTop = jQuery( this ).parents( '.jwCollapse' ).first().find( '.jwCollapseToggle' ).first().offset().top; | |||
var vTop = jQuery( window ).scrollTop(); | |||
if ( eTop < vTop ) { | |||
jQuery( [ document.documentElement, document.body ] ).animate({ | |||
scrollTop: jQuery( this ).parents( '.jwCollapse' ).first().offset().top | |||
}, 100 ); | |||
} | |||
}); | }); | ||
setTimeout( function() { jQuery( '.mw-customtoggle' ).on( 'click', function() { | |||
if ( !jQuery ( this ).parent( '.mw-collapsible' ).hasClass( 'mw-collapsed' ) ) { | |||
for ( var c in window.jwobschart ) { | |||
window.jwobschartresize( window.jwobschart[ c ].memo ); | |||
} | |||
} | |||
}); }, 500 ); | |||
} | } | ||
</script> | </script> | ||
</includeonly> | </includeonly> | ||


