diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3c3629e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules
diff --git a/src/deploy/index.html b/src/deploy/index.html
index 56f7311..f40cdeb 100644
--- a/src/deploy/index.html
+++ b/src/deploy/index.html
@@ -17,6 +17,7 @@
+
@@ -146,18 +147,18 @@
if (file) {
if (file.size <= 100 * 1024) /* 100kb max */ {
- var reader = new FileReader();
+ var reader = new FileReader();
reader.readAsBinaryString(file);
$("#status").text("Processing file...");
- reader.onloadend = function() {
- $("#status").text("Processing completed.");
- Globals.cartdata = reader.result;
+ reader.onloadend = function() {
+ $("#status").text("Processing completed.");
+ Globals.cartdata = reader.result;
$("#roms").val("");
switchRom([null, null, "none", "none"]);
- }
+ }
} else {
$("#status").text("File too large.");
- }
+ }
}
}
@@ -268,6 +269,7 @@
}
);
+ /* input.js
document.onkeydown =
function(event) {
vecx.onkeydown(event)
@@ -277,7 +279,7 @@
function(event) {
vecx.onkeyup(event)
};
-
+ */
/*
document.onkeypress =
function( event )
@@ -350,8 +352,13 @@
event.preventDefault();
});
+ // DrSnuggles: added canvas parameter
+ vecx.main( $('#screen')[0] );
- vecx.main();
+ // DrSnuggles: poll status from vecx
+ setInterval(function(){
+ $("#status").text( vecx.status );
+ }, 2000);
});
@@ -400,4 +407,4 @@