Open main menu

Changes

MediaWiki:Common.js

406 bytes added, 5 years ago
no edit summary
window.protectedNamespace = [ "2020", "2021", "2022", "2023", "2024", "2025" ];
 
$( document ).ready( function(){
if( mw.config.get('wgIsMainPage') )
$('#p-UIF').children().find('a').attr('target', '_blank');
protectedNamespace = [ "2020", "2021", "2022", "2023", "2024", "2025" ];
if ( mw.config.get( 'wgPageName' ) === "Special:Badtitle" ){
$('#pt-login').hide();
ModifySidebar( 'Resources', 'Stakeholder Meeting', 'https://universityinnovation.org/wiki/2020:Training/Stakeholder_Meeting' );
ModifySidebar( 'Resources', 'Silicon Valley Meetup 2021', 'https://universityinnovation.org/wiki/2020:Training/Silicon_Valley_Meetup_2021' );
// Make Scurrent page non clickable
$('.portal .body > ul').children().each( function(){
link = $( this ).children()[0].href;
if ( link === window.location.href ) {
$( $( this ).children()[0]).css({
"pointer-events": "none",
"cursor": "default",
"color": "#000",
"font-weight": "bold"
})
}
} );
 
} else {
$('#p-Session').remove();