User:The Transhumanist/ViewAnnotationToggler.js: Difference between revisions

Content deleted Content added
add plus signs to fix alert errors
get scrollY in various spots for testing
Line 85:
 
function annoHide() {
y = window.scrollY;
alert( "running annoHide. y starting value:" + y);
 
Line 94 ⟶ 95:
 
y = window.scrollY;
 
alert( "y before removing menu item:" + y);
 
Line 104:
}
 
y = window.scrollY;
alert( "y before creating new menu item:" + y);
 
Line 109 ⟶ 110:
annoSwitch = mw.util.addPortletLink( 'p-tb', '#', 'Annotations \(show\)', 'ca-anno', 'Show the annotations', 'a' );
 
y = window.scrollY;
alert( "y before click handler:" + y);
 
Line 118 ⟶ 120:
} );
 
y = window.scrollY;
alert( "y after click handler/before window.scrollTo:" + y);
 
window.scrollTo(0, 2500y);
}