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(){
if(window.location.pathname.substring(window.location.pathname.lastIndexOf("/") + 1 === "Textbook_of_clinical_trials"){
    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>");
$("#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>");
}
}

Revision as of 16:42, 25 October 2019

$(document).ready(function(){ 

if(window.location.pathname.substring(window.location.pathname.lastIndexOf("/") + 1 === "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>");
}








});