From 35f6c1382f493887745866fbdda908282dd60e0f Mon Sep 17 00:00:00 2001 From: Sandu Victor Date: Mon, 14 Oct 2019 21:06:43 +0300 Subject: [PATCH] removed random console.logs Signed-off-by: prescientmoon --- scripts/and_gate.js | 3 --- scripts/buffer.js | 1 - scripts/but.js | 3 --- scripts/edges.js | 8 -------- scripts/events.js | 2 -- scripts/light.js | 4 ---- scripts/main.js | 5 ----- scripts/nand.js | 1 - scripts/nand3.js | 1 - scripts/not.js | 1 - scripts/or.js | 1 - scripts/pins.js | 3 --- scripts/xor.js | 1 - 13 files changed, 34 deletions(-) diff --git a/scripts/and_gate.js b/scripts/and_gate.js index 6229082..c5a757d 100644 --- a/scripts/and_gate.js +++ b/scripts/and_gate.js @@ -1,5 +1,3 @@ -console.log("and"); - class and { constructor(id) { this.id = id; @@ -20,7 +18,6 @@ class and { }; this.y = function() { let name = "#" + this.id; - //console.log("y"+parseFloat($(name).attr("y"))); return parseFloat($(name).attr("y")); }; //design diff --git a/scripts/buffer.js b/scripts/buffer.js index 409faac..4a6b1ca 100644 --- a/scripts/buffer.js +++ b/scripts/buffer.js @@ -20,7 +20,6 @@ function buffer(id) { this.y = function() { let name = "#" + this.id; - //console.log("y"+parseFloat($(name).attr("y"))); return parseFloat($(name).attr("y")); } diff --git a/scripts/but.js b/scripts/but.js index b4ff252..72dbd9a 100644 --- a/scripts/but.js +++ b/scripts/but.js @@ -1,5 +1,3 @@ -console.log("nut"); - function but(id) { this.wait = true; this.id = id; @@ -21,7 +19,6 @@ function but(id) { this.y = function() { let name = "#" + this.id; - //console.log("y"+parseFloat($(name).attr("y"))); return parseFloat($(name).attr("y")); } diff --git a/scripts/edges.js b/scripts/edges.js index 034724a..97835e4 100644 --- a/scripts/edges.js +++ b/scripts/edges.js @@ -1,17 +1,11 @@ let l_count = 0; let lines = []; -console.log("started2"); function edge(start, end) { this.id = l_count.toString() + "line"; l_count++; this.start = start; this.end = end; - console.log(start + end); - - console.log(this.end); - console.log(this.start); - lines[lines.length] = this; let g = document.createElementNS('http://www.w3.org/2000/svg', 'g'); @@ -33,7 +27,6 @@ function edge(start, end) { let elem = document.getElementById("svg1"); elem.appendChild(g); - //console.log("succes"+lines); this.rep = el; this.name = "#" + this.id; @@ -42,7 +35,6 @@ function edge(start, end) { let adr = this.start.name; let temp = $(adr).attr("x"); let n = this.name; - //console.log("updating"+adr+temp+n); temp = (parseFloat(temp)).toString(); $(n).attr("x1", temp); temp = $(adr).attr("y"); diff --git a/scripts/events.js b/scripts/events.js index 97087f9..fe33ad5 100644 --- a/scripts/events.js +++ b/scripts/events.js @@ -69,7 +69,6 @@ $("svg").on("mousemove touchmove", function(e) { xbeg += xvb; ybeg += yvb; - console.log("started zooming" + xbeg + "and" + ybeg); //moveing = (moveing +1)%2; } @@ -83,7 +82,6 @@ $("svg").on("mousemove touchmove", function(e) { yvb -= newy - ybeg; updatescr(); - console.log(xvb + "newx" + newx + "xbeg" + xbeg); } }); diff --git a/scripts/light.js b/scripts/light.js index 1c20bf6..b01ad1a 100644 --- a/scripts/light.js +++ b/scripts/light.js @@ -1,5 +1,3 @@ -console.log("bulb"); - function light(id) { this.id = id; let g = document.createElementNS('http://www.w3.org/2000/svg', 'g'); @@ -40,7 +38,6 @@ function light(id) { this.y = function() { let name = "#" + this.id; - //console.log("y"+parseFloat($(name).attr("y"))); return parseFloat($(name).attr("cy")); } @@ -57,7 +54,6 @@ function light(id) { $((this.rep)).attr("fill", "white"); } } - //console.log($((this.rep)).attr("fill")); let x = this.x(); let y = this.y(); this.i.set(x - 60, y - 10); diff --git a/scripts/main.js b/scripts/main.js index f50434a..be0d12e 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -108,7 +108,6 @@ $("body").on("mousemove touchmove", function(e) { }); $("body").on("mouseup touchend", function(e) { selected = "yay"; - console.log("got a mouse up"); }); $("body").on("mousedown touchstart", function(e) { //beeing sure that we actually want to drag something @@ -193,7 +192,6 @@ function set_position(name, x, y) { x = Math.floor(x / 80) * 80; y = Math.floor(y / 80) * 80; } - //console.log("obj:"+obj+"objx:"+objx+"objy:"+objy+"xdif:"+xdif+"ydif:"+ydif) //setting the new positions $(obj).attr("x", (x).toString()); $(obj).attr("y", (y).toString()); @@ -219,7 +217,6 @@ function set_position(name, x, y) { x = Math.floor(x / 80) * 80 + 40; y = Math.floor(y / 80) * 80 + 40; } - //console.log("obj:"+obj+"objx:"+objx+"objy:"+objy+"xdif:"+xdif+"ydif:"+ydif) //setting the new positions $(obj).attr("cx", (x).toString()); $(obj).attr("cy", (y).toString()); @@ -254,8 +251,6 @@ function add(h, w, color, stroke, id, on) { return el; } -console.log(pieces); - setInterval(function() { for (let i = 0; i < pieces.length; i++) { pieces[i].update(); diff --git a/scripts/nand.js b/scripts/nand.js index edd1aed..be74ae8 100644 --- a/scripts/nand.js +++ b/scripts/nand.js @@ -21,7 +21,6 @@ function nand(id) { this.y = function() { let name = "#" + this.id; - //console.log("y"+parseFloat($(name).attr("y"))); return parseFloat($(name).attr("y")); } diff --git a/scripts/nand3.js b/scripts/nand3.js index e298aad..a439fd3 100644 --- a/scripts/nand3.js +++ b/scripts/nand3.js @@ -20,7 +20,6 @@ function nand3(id) { this.y = function() { let name = "#" + this.id; - //console.log("y"+parseFloat($(name).attr("y"))); return parseFloat($(name).attr("y")); } diff --git a/scripts/not.js b/scripts/not.js index 62bcacf..b1a35fc 100644 --- a/scripts/not.js +++ b/scripts/not.js @@ -20,7 +20,6 @@ function not(id) { this.y = function() { let name = "#" + this.id; - //console.log("y"+parseFloat($(name).attr("y"))); return parseFloat($(name).attr("y")); } diff --git a/scripts/or.js b/scripts/or.js index f58175f..4ae5308 100644 --- a/scripts/or.js +++ b/scripts/or.js @@ -21,7 +21,6 @@ function or(id) { this.y = function() { let name = "#" + this.id; - //console.log("y"+parseFloat($(name).attr("y"))); return parseFloat($(name).attr("y")); } diff --git a/scripts/pins.js b/scripts/pins.js index 7e78ee1..28282f7 100644 --- a/scripts/pins.js +++ b/scripts/pins.js @@ -51,9 +51,7 @@ function clicked(ob) { } else { sele = ob; } - console.log("click" + sels + sele + ob.type); if ((sels != "yay") && (sele != "yay")) { - console.log("step 2"); if ((sels.state)) { sels.nei = sele; sels.state = false; @@ -61,7 +59,6 @@ function clicked(ob) { a = new edge(sels, sele); sels = "yay"; sele = "yay"; - console.log("end"); } } }); diff --git a/scripts/xor.js b/scripts/xor.js index fddfa1d..0bee21b 100644 --- a/scripts/xor.js +++ b/scripts/xor.js @@ -21,7 +21,6 @@ function xor(id) { this.y = function() { let name = "#" + this.id; - //console.log("y"+parseFloat($(name).attr("y"))); return parseFloat($(name).attr("y")); }