in Website/public/js/predLOS.js [37:51]
function toggleImg(){
// toggle begtween the Exp and non-Exp versions of the image
// get the current src
var imgNow = $('#nameImg').attr('src');
imgNow = imgNow.substring(imgNow.indexOf("/")+1);
var newImg;
console.log(imgNow);
if (imgNow.substring(0,3) == "Exp") {
newImg = imgNow.substring(3);
} else {
newImg = "Exp" + imgNow;
}
console.log(newImg)
$("#nameImg").attr("src","img/" + newImg)
}