diff --git a/assets/Bases/frogBase.svg b/assets/Bases/frogBase.svg index adeba01ff76d4d27b2389a3a9654ae5e29e49fc0..0d7c2d057c36a7a44ae2daa4f306fe7484dea77a 100644 --- a/assets/Bases/frogBase.svg +++ b/assets/Bases/frogBase.svg @@ -28,14 +28,14 @@ <line fill="none" stroke="#FF0000" stroke-miterlimit="10" x1="1742.4" y1="2001.6" x2="1440" y2="1296"/> <line fill="none" stroke="#FF0000" stroke-miterlimit="10" x1="2145.6" y1="1598.4" x2="1440" y2="1296"/> <line fill="none" stroke="#FF0000" stroke-miterlimit="10" x1="2145.6" y1="993.6" x2="1440" y2="1296"/> -<line fill="none" stroke="#0000FF" stroke-miterlimit="10" enable-background="new " x1="432" y1="288" x2="2448" y2="2304"/> +<line fill="none" stroke="#0000FF" stroke-miterlimit="10" x1="432" y1="288" x2="2448" y2="2304"/> <line opacity="0.5" fill="none" stroke="#0000FF" stroke-miterlimit="10" enable-background="new " x1="864" y1="1296" x2="2016" y2="1296"/> <line opacity="0.5" fill="none" stroke="#0000FF" stroke-miterlimit="10" enable-background="new " x1="1440" y1="720" x2="1440" y2="1872"/> <line opacity="0.5" fill="none" stroke="#0000FF" stroke-miterlimit="10" enable-background="new " x1="864" y1="1296" x2="432" y2="1296"/> <line opacity="0.5" fill="none" stroke="#0000FF" stroke-miterlimit="10" enable-background="new " x1="2016" y1="1296" x2="2448" y2="1296"/> <line opacity="0.5" fill="none" stroke="#0000FF" stroke-miterlimit="10" enable-background="new " x1="1440" y1="720" x2="1440" y2="288"/> <line opacity="0.5" fill="none" stroke="#0000FF" stroke-miterlimit="10" enable-background="new " x1="1440" y1="1872" x2="1440" y2="2304"/> -<line fill="none" stroke="#0000FF" stroke-miterlimit="10" enable-background="new " x1="432" y1="2304" x2="2448" y2="288"/> +<line fill="none" stroke="#0000FF" stroke-miterlimit="10" x1="432" y1="2304" x2="2448" y2="288"/> <line fill="none" stroke="#0000FF" stroke-miterlimit="10" x1="1137.6" y1="590.4" x2="1137.6" y2="288"/> <line fill="none" stroke="#0000FF" stroke-miterlimit="10" x1="1742.4" y1="590.4" x2="1742.4" y2="288"/> <line fill="none" stroke="#0000FF" stroke-miterlimit="10" x1="2145.6" y1="993.6" x2="2448" y2="993.6"/> diff --git a/js/globals.js b/js/globals.js index d7779cc39d20b6de7ecf408881133bede6408dc3..aec02f24d842404dab426b8f7dd3373e0ee10e73 100755 --- a/js/globals.js +++ b/js/globals.js @@ -123,7 +123,7 @@ function initGlobals(){ return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; - if(isMobile.any()) _globals.dynamicSimVisible = false; + // if(isMobile.any()) _globals.dynamicSimVisible = false;//todo throw error _globals.threeView = initThreeView(_globals); _globals.controls = initControls(_globals); diff --git a/js/importer.js b/js/importer.js index 28a750aad6fc713f4ddfcaa89de5852507718d78..dc8e4d936f128da36fa2f008023b7da3d6763629 100755 --- a/js/importer.js +++ b/js/importer.js @@ -5,6 +5,8 @@ function initImporter(globals){ + var reader = new FileReader(); + function importDemoFile(url){ var extension = url.split("."); var name = extension[extension.length-2].split("/"); @@ -35,7 +37,7 @@ function initImporter(globals){ var extension = file.name.split("."); var name = extension[0]; extension = extension[extension.length - 1]; - var reader = new FileReader(); + $(e.target).val(""); if (extension == "txt") {