window.protectedNamespace = [ "2020", "2020_talk", "2021", "2021_talk", "2022", "2022_talk", "2023", "2024", "2025" ];
// $( document ).ready( function(){
});
}
// CategoryTree
$('.CategoryTreeLabelPage').first().prev().before("---------------------------<br>");
$('.CategoryTreeEmptyBullet').each( function(){
if( $(this).next().next().val() === undefined){
$(this).parent().hide();
}
});
// CategoryTree Sorting
items.sort( function(a, b){
if( $( a ).find(".CategoryTreeLabelNs14").length === 0 && $(a).find(".CategoryTreeLabelNs3762").length === 0 && $(a).find(".CategoryTreeLabelNs3752").length === 0 && $(a).find(".CategoryTreeLabelNs3756").length === 0 ){ return 0; }
// Get text of the category link
// If nothing is found, status will remain same
if( firstMatch === null && secondMatch === null ) {
if ( firstText.includes("Faculty Champion:") ){ // Now campare with second element if( secondText.includes("School:") || secondText.includes("Priorities:") ){ return -1; } else { return 0; } } else if( firstText.includes("School:") ){ // Now campare with second element if( secondText.includes("Faculty Champion:") ){ return 1; } else if( secondText.includes("Priorities:") ){ return -1; } else { return 0; } } else if( firstText.includes("Priorities:") ){ // Now campare with second element if( secondText.includes("Faculty Champion:") || secondText.includes("School:") ){ return 1; } else { return 0; } } else { return 0; }
}
});
container.append( items );
// CategoryTree
$('.CategoryTreeLabelPage').first().prev().before("---------------------------<br>");
$('.CategoryTreeEmptyBullet').each( function(){
if( $(this).next().next().val() === undefined){
$(this).parent().hide();
}
});
});
ModifySidebar( 'navigation', 'Back to Main Page', 'https://universityinnovation.org/wiki/Main_Page' );
} else {
ModifySidebar( 'navigation', 'Back to Overview', 'https://universityinnovation.org/wiki/2020'+ mw.config.get( 'wgCanonicalNamespace' ).slice(0,4) + ':Training_Overview' );
}
mw.loader.using( 'mediawiki.api', function(){
// Gadget-HotCat
if( mw.config.get("wgUserGroups").indexOf("bureaucrat") !== -1) { mw.loader.load( '/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );}
// Gadget - QRCode
//_responsive chabges
var _object='<div class="_dummylogo"><div class="_logo"></div><a onclick="openmenu(this);" data-val="false" href="javascript:void(0);" class="_nav"><svg height="40" viewBox="0 0 40 40" width="40"><g> <path d="M35.7,18.04H4c-1.66,0-3,1.24-3,2.77s1.35,2.77,3,2.77H35.7c1.66,0,3-1.24,3-2.77S37.36,18.04,35.7,18.04z"/><path d="M35.7,6.98H4c-1.66,0-3,1.24-3,2.77s1.35,2.77,3,2.77H35.7c1.66,0,3-1.24,3-2.77S37.36,6.98,35.7,6.98z"/><path d="M35.7,29.11H4c-1.66,0-3,1.24-3,2.77c0,1.53,1.35,2.77,3,2.77H35.7c1.66,0,3-1.24,3-2.77C38.7,30.34,37.36,29.11,35.7,29.11z"/></g></svg></a></div>';
function addlogo(){
var width = $(window).width();
//console.log('>>>>>>>>',width);
if(width<=1200){
$('._rstring #mw-head').prepend(_object);
// console.log('<<<<<<<<<<<<',$('body').hasClass('._rstring'));
}else{
$('._rstring #mw-head').find('._dummylogo').remove();
}
}
function openmenu(ctrl){
var know = $(ctrl).attr('data-val');
console.log(know);
if(know=='false'){
$('._rstring #mw-panel').addClass('_show');
$(ctrl).attr('data-val','true');
$(ctrl).find('g').html('<path d="M35.7,18.04H4c-1.66,0-3,1.24-3,2.77s1.35,2.77,3,2.77H35.7c1.66,0,3-1.24,3-2.77S37.36,18.04,35.7,18.04z"/><path d="M35.7,6.98H4c-1.66,0-3,1.24-3,2.77s1.35,2.77,3,2.77H35.7c1.66,0,3-1.24,3-2.77S37.36,6.98,35.7,6.98z"/><path d="M35.7,29.11H4c-1.66,0-3,1.24-3,2.77c0,1.53,1.35,2.77,3,2.77H35.7c1.66,0,3-1.24,3-2.77C38.7,30.34,37.36,29.11,35.7,29.11z"/>');
}else{
$('._rstring #mw-panel').removeClass('_show');
$(ctrl).attr('data-val','false');
$(ctrl).find('g').html('<path d="M35.7,18.04H4c-1.66,0-3,1.24-3,2.77s1.35,2.77,3,2.77H35.7c1.66,0,3-1.24,3-2.77S37.36,18.04,35.7,18.04z"/><path d="M35.7,6.98H4c-1.66,0-3,1.24-3,2.77s1.35,2.77,3,2.77H35.7c1.66,0,3-1.24,3-2.77S37.36,6.98,35.7,6.98z"/><path d="M35.7,29.11H4c-1.66,0-3,1.24-3,2.77c0,1.53,1.35,2.77,3,2.77H35.7c1.66,0,3-1.24,3-2.77C38.7,30.34,37.36,29.11,35.7,29.11z"/>');
}
}
$(document).ready(function(){
// alert();
$("._responsive").closest('body').addClass('_rstring');
var know=$("._responsive").closest('body').addClass('_rstring');
$(know).promise().done(function() {
addlogo();
});
});