diff --git a/client/deploy.bat b/client/deploy.bat new file mode 100644 index 0000000..5492ef4 --- /dev/null +++ b/client/deploy.bat @@ -0,0 +1,7 @@ +mkdir \\aroltd.com\aroltd\scape +mkdir \\aroltd.com\aroltd\scape\bin +copy /y /b index.html \\aroltd.com\aroltd\scape +copy /y /b error.html \\aroltd.com\aroltd\scape +copy /y /b style.css \\aroltd.com\aroltd\scape +copy /y /b bin\scape.js \\aroltd.com\aroltd\scape\bin +copy /y /b bin\lib.js \\aroltd.com\aroltd\scape\bin \ No newline at end of file diff --git a/client/error.html b/client/error.html index 6855bde..ece9cb2 100644 --- a/client/error.html +++ b/client/error.html @@ -24,7 +24,7 @@ font-style: italic; } - #content { + .content { width: 25%; min-width: 300px; max-width: 600px; @@ -32,6 +32,16 @@ padding: 30px 0; } + @media screen and (max-width: 480px) { + .content { + width: 75%; + } + } + + .hidden { + display: none; + } + ul { list-style: none; padding: 0; @@ -66,15 +76,22 @@ window.onload = function() { var url = window.location.href; url = url.substr(url.lastIndexOf("?") + 1); - var features = url.split("&")[0].split("=")[1]; + var params = url.split("&"); + var features = params[0].split("=")[1]; - for(var i = 1; i <= features.length; ++i) - document.getElementById("supchk"+ i).className = features[i-1] == "1" ? "mark check" : "mark cross"; + if(params.length >= 2) { + document.getElementById("noSupport").className = "content hidden"; + document.getElementById("error").className = "content"; + document.getElementById("errorText").innerText = decodeURIComponent(params[0].split("=")[1]); + } else { + for(var i = 1; i <= features.length; ++i) + document.getElementById("supchk"+ i).className = features[i-1] == "1" ? "mark check" : "mark cross"; + } }
-