var chinese1 = window.location.href; var $chin1 = "0"; console.log("thefont from window.location.href " + chinese1); var theindex1 = chinese1.indexOf("ch="); if (theindex1 > 0 ) { $chin1 = chinese1.substring(theindex1+3,theindex1+4) console.log("$chin1 " + $chin1); } console.log(" 2 $chin1 " + $chin1); if ($chin1 == "1") { $chin1 = "C"; } else { $chin1 = ""; } console.log("THE CHIN EQUALS " + $chin1); $(".slideshow").html("
  • ");