chris-ELM
2/18/2016 - 5:45 PM

Simple string check to see which version of storyline is running - either flash or html5 only works if teh default html file names are used.

Simple string check to see which version of storyline is running - either flash or html5 only works if teh default html file names are used. * marked for futher dev to make comprehensive.

function storylineTypeCheck(){
    var pathname = window.location.pathname;
    var strID = pathname.substr(pathname.length - 6, pathname.length).split(".")[0];
    if (strID === "5") {
        return "html5";
    }else{
        return "swf";
    }
}