switch (window.location.protocol) { case "http:": include('http://www..js'); break; case "https:": include('https://ssl..js'); break; default: include('http://www..js'); break; }
Attention in classroom
switch (window.location.protocol) { case "http:": include('http://www..js'); break; case "https:": include('https://ssl..js'); break; default: include('http://www..js'); break; }