(Ak: Uusi sivu: <includeonly></includeonly>) |
Ei muokkausyhteenvetoa |
||
| (58 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 1: | Rivi 1: | ||
<includeonly></includeonly> | <includeonly> | ||
<script type="text/javascript"> | |||
function <!--{$id|default:lakebarofix|escape:'html'}-->_jQueryTest() { | |||
if ( typeof window.jQuery == 'undefined' ) { | |||
setTimeout( function(){ <!--{$id|default:lakebarofix|escape:'html'}-->_jQueryTest() }, 300); | |||
} else { | |||
<!--{$id|default:lakebarofix|escape:'html'}-->_func(); | |||
} | |||
} | |||
setTimeout( function(){ <!--{$id|default:lakebarofix|escape:'html'}-->_jQueryTest() }, 100); | |||
function <!--{$id|default:lakebarofix|escape:'html'}-->_func() { | |||
//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() { | |||
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> | |||
</includeonly> | |||


