CodePen

HTML

            
              
            
          
!
via HTML Inspector

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              function loadLicenseTxt() {
    if (typeof window.device !== "undefined") { // running in PhoneGap

        $.get('README.txt', function (data) {
            var divLicense = document.getElementById("licensetext");
            divLicense.innerText = data;
        });
    }  else {
        // running as web app from Browser, so use iframe to display the README.txt
        console.log("***Test: read README.txt iframe");

        var licPage = document.getElementById("licensepage");
        var licEle = document.getElementById("licensetext");

        var frmEle = document.createElement("iframe");

        // Web page 
        frmEle.setAttribute("src", "README.txt");

        frmEle.style.height = window.innerHeight * 0.88 + "px";
        frmEle.style.width = window.innerWidth * 0.995 + "px";

        licPage.replaceChild(frmEle, licEle);

        frmEle.setAttribute('id', "licensetext");
    }
}
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................