MediaWiki:Vector.js: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
$(document).ready(function(){  
$(document).ready(function(){  
function getCurentFileName(){
    var pagePathName= window.location.pathname;
    return pagePathName.substring(pagePathName.lastIndexOf("/") + 1);
}


if(getCurrentFileName() === "Textbook_of_clinical_trials"){
if(getCurrentFileName() === "Textbook_of_clinical_trials"){
Line 8: Line 13:




function getCurentFileName(){
 
    var pagePathName= window.location.pathname;
    return pagePathName.substring(pagePathName.lastIndexOf("/") + 1);
}






});
});

Revision as of 16:40, 25 October 2019

$(document).ready(function(){ 

function getCurentFileName(){
    var pagePathName= window.location.pathname;
    return pagePathName.substring(pagePathName.lastIndexOf("/") + 1);
}

if(getCurrentFileName() === "Textbook_of_clinical_trials"){
$("#wikidocNav").prepend("<p><b>Study Tools</b><a href='https://www.wikidoc.org/index.php/GFR'>GFR calculation</a>|<a href='https://www.wikidoc.org/index.php/TIMI_risk_score'>TIMI Risk Score</a>|<a href='https://www.wikidoc.org/index.php/The_GRACE_risk_score'>Grace Risk Score</a></p>");
}








});