Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

processing-dynamic-view: Whitespace cleanups

  • Loading branch information...
commit 69e229a50150d5f702e36b3f753a47e821a9f90e 1 parent 2b63a91
@jadonk authored
Showing with 8 additions and 8 deletions.
  1. +2 −2 .settings.xml
  2. +6 −6 processing-dynamic-view/index.html
View
4 .settings.xml
@@ -1,4 +1,4 @@
-<settings version="0.0.4" ><auto><configurations debug="0" ><config path="blinkled.js" name="blinkled" extension="js" args="" /><config path="bone101.js" name="bone101" extension="js" args="" /><config path="" name="server" extension="" args="" /><config path="processing-dynamic-view.js" name="processing-dynamic-view" extension="js" args="" /></configurations><panel>{"ext/editors/editors":{"parent":{"visible":2,"flex":1},"visible":2,"flex":1},"ext/tree/tree":{"parent":{"visible":2,"width":"200"},"visible":true,"flex":1,"state":"normal"},"ext/console/console":{"parent":{"visible":2,"height":200},"visible":true,"flex":1}}</panel><tree_selection path="/workspace/processing-dynamic-view.js" type="file"/><tree>["folder[1]","folder[1]/folder[4]"]</tree><console><input>this.subdir
+<settings version="0.0.4" ><auto><configurations debug="0" ><config path="blinkled.js" name="blinkled" extension="js" args="" /><config path="bone101.js" name="bone101" extension="js" args="" /><config path="" name="server" extension="" args="" /><config path="processing-dynamic-view.js" name="processing-dynamic-view" extension="js" args="" /></configurations><panel>{"ext/editors/editors":{"parent":{"visible":2,"flex":1},"visible":2,"flex":1},"ext/tree/tree":{"parent":{"visible":2,"width":"200"},"visible":true,"flex":1,"state":"normal"},"ext/console/console":{"parent":{"visible":2,"height":200},"visible":true,"flex":1}}</panel><tree_selection path="/workspace/processing-dynamic-view/index.html" type="file"/><tree>["folder[1]","folder[1]/folder[4]"]</tree><console><input>this.subdir
-</input></console><customtypes/><zen>0.7</zen><recentfiles>[{"caption":"index.html","value":"/workspace/processing-dynamic-view/index.html"},{"caption":"bone101.js","value":"/workspace/bone101.js"},{"caption":"processing-dynamic-view.js","value":"/workspace/processing-dynamic-view.js"},{"caption":"config.js","value":"/workspace/processing-dynamic-view/config.js"},{"caption":"index.js","value":"/workspace/bonescript/index.js"},{"caption":"blinkled.js","value":"/workspace/blinkled.js"},{"caption":"rangeHigh","value":"/workspace/processing-dynamic-view/rangeHigh"},{"caption":"data","value":"/workspace/processing-dynamic-view/data"},{"caption":"rangeLow","value":"/workspace/processing-dynamic-view/rangeLow"},{"caption":"assert.js","value":"assert.js"}]</recentfiles><extensions/><files active="/workspace/processing-dynamic-view/index.html"><file path="/workspace/blinkled.js" type="file" size="364" name="blinkled.js" contenttype="application/javascript; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:44:48 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/blinkled.js"/><file path="/workspace/bone101.js" type="file" size="137" name="bone101.js" contenttype="application/javascript; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:44:48 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/bone101.js"/><file path="/workspace/processing-dynamic-view/index.html" type="file" size="1951" name="index.html" contenttype="text/html; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:45:26 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/processing-dynamic-view/index.html" changed="0" state="{&quot;scrolltop&quot;:906,&quot;scrollleft&quot;:0,&quot;selection&quot;:{&quot;start&quot;:{&quot;row&quot;:78,&quot;column&quot;:0},&quot;end&quot;:{&quot;row&quot;:78,&quot;column&quot;:0}}}"/><file path="/workspace/bonescript/index.js" type="file" size="13710" name="index.js" contenttype="application/javascript; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:44:48 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/bonescript/index.js" changed="0" state="{&quot;scrolltop&quot;:906,&quot;scrollleft&quot;:0,&quot;selection&quot;:{&quot;start&quot;:{&quot;row&quot;:326,&quot;column&quot;:19},&quot;end&quot;:{&quot;row&quot;:326,&quot;column&quot;:19}}}"/><file name="config.js" path="/workspace/processing-dynamic-view/config.js" scriptname="/var/lib/cloud9/processing-dynamic-view/config.js" oldpath="/workspace/processing-dynamic-view/Untitled1" changed="0" modifieddate="Thu, 17 Nov 2011 16:44:48 +0000" state="{&quot;scrolltop&quot;:906,&quot;scrollleft&quot;:0,&quot;selection&quot;:{&quot;start&quot;:{&quot;row&quot;:5,&quot;column&quot;:2},&quot;end&quot;:{&quot;row&quot;:5,&quot;column&quot;:2}}}"/><file path="/workspace/processing-dynamic-view.js" type="file" size="2129" name="processing-dynamic-view.js" contenttype="application/javascript; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:44:48 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/processing-dynamic-view.js" changed="0" state="{&quot;scrolltop&quot;:906,&quot;scrollleft&quot;:0,&quot;selection&quot;:{&quot;start&quot;:{&quot;row&quot;:16,&quot;column&quot;:53},&quot;end&quot;:{&quot;row&quot;:16,&quot;column&quot;:53}}}"/></files></auto><general name="General" saveallbeforerun="true" openfiles="true"/><beautify name="Beautify"><jsbeautify name="JS Beautify" preserveemptylines="true" keeparrayindentation="false" braces="end-expand"/></beautify><editors name="Editor"><code name="Code Editor" overwrite="false" selectstyle="line" activeline="true" showinvisibles="false" showprintmargin="true" printmargincolumn="80" softtabs="true" tabsize="4" scrollspeed="2" fontsize="12" wrapmode="false" wraplimitmin="" wraplimitmax="" gutter="true" highlightselectedword="true" autohidehorscrollbar="true"/></editors><search><word key="socket"/><word key="OUTPUT"/><word key="port"/><word key="child_process"/><word key="loop"/><word key="events"/><word key="gpmc_ben1"/><word key="opensync"/></search><breakpoints /></settings>
+</input></console><customtypes/><zen>0.7</zen><recentfiles>[{"caption":"index.js","value":"/workspace/bonescript/index.js"},{"caption":"bone101.js","value":"/workspace/bone101.js"},{"caption":"config.js","value":"/workspace/processing-dynamic-view/config.js"},{"caption":"index.html","value":"/workspace/processing-dynamic-view/index.html"},{"caption":"processing-dynamic-view.js","value":"/workspace/processing-dynamic-view.js"},{"caption":"blinkled.js","value":"/workspace/blinkled.js"},{"caption":"rangeHigh","value":"/workspace/processing-dynamic-view/rangeHigh"},{"caption":"data","value":"/workspace/processing-dynamic-view/data"},{"caption":"rangeLow","value":"/workspace/processing-dynamic-view/rangeLow"},{"caption":"assert.js","value":"assert.js"}]</recentfiles><extensions/><files active="/workspace/processing-dynamic-view/index.html"><file path="/workspace/blinkled.js" type="file" size="364" name="blinkled.js" contenttype="application/javascript; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:52:59 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/blinkled.js"/><file path="/workspace/bone101.js" type="file" size="137" name="bone101.js" contenttype="application/javascript; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:52:59 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/bone101.js"/><file path="/workspace/bonescript/index.js" type="file" size="13710" name="index.js" contenttype="application/javascript; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:52:59 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/bonescript/index.js" changed="0" state="{&quot;scrolltop&quot;:1004,&quot;scrollleft&quot;:0,&quot;selection&quot;:{&quot;start&quot;:{&quot;row&quot;:326,&quot;column&quot;:19},&quot;end&quot;:{&quot;row&quot;:326,&quot;column&quot;:19}}}"/><file name="config.js" path="/workspace/processing-dynamic-view/config.js" scriptname="/var/lib/cloud9/processing-dynamic-view/config.js" oldpath="/workspace/processing-dynamic-view/Untitled1" changed="0" modifieddate="Thu, 17 Nov 2011 16:52:59 +0000" state="{&quot;scrolltop&quot;:1004,&quot;scrollleft&quot;:0,&quot;selection&quot;:{&quot;start&quot;:{&quot;row&quot;:5,&quot;column&quot;:2},&quot;end&quot;:{&quot;row&quot;:5,&quot;column&quot;:2}}}"/><file path="/workspace/processing-dynamic-view.js" type="file" size="2129" name="processing-dynamic-view.js" contenttype="application/javascript; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:52:59 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/processing-dynamic-view.js" changed="0" state="{&quot;scrolltop&quot;:1004,&quot;scrollleft&quot;:0,&quot;selection&quot;:{&quot;start&quot;:{&quot;row&quot;:16,&quot;column&quot;:53},&quot;end&quot;:{&quot;row&quot;:16,&quot;column&quot;:53}}}"/><file path="/workspace/processing-dynamic-view/index.html" type="file" size="2457" name="index.html" contenttype="text/html; charset=utf-8" modifieddate="Thu, 17 Nov 2011 16:52:59 +0000" creationdate="" lockable="false" hidden="false" executable="false" scriptname="/var/lib/cloud9/processing-dynamic-view/index.html" state="{&quot;scrolltop&quot;:1004,&quot;scrollleft&quot;:0,&quot;selection&quot;:{&quot;start&quot;:{&quot;row&quot;:88,&quot;column&quot;:5},&quot;end&quot;:{&quot;row&quot;:88,&quot;column&quot;:5}}}"/></files></auto><general name="General" saveallbeforerun="true" openfiles="true"/><beautify name="Beautify"><jsbeautify name="JS Beautify" preserveemptylines="true" keeparrayindentation="false" braces="end-expand"/></beautify><editors name="Editor"><code name="Code Editor" overwrite="false" selectstyle="line" activeline="true" showinvisibles="false" showprintmargin="true" printmargincolumn="80" softtabs="true" tabsize="4" scrollspeed="2" fontsize="12" wrapmode="false" wraplimitmin="" wraplimitmax="" gutter="true" highlightselectedword="true" autohidehorscrollbar="true"/></editors><search><word key="socket"/><word key="OUTPUT"/><word key="port"/><word key="child_process"/><word key="loop"/><word key="events"/><word key="gpmc_ben1"/><word key="opensync"/></search><breakpoints /></settings>
View
12 processing-dynamic-view/index.html
@@ -14,7 +14,7 @@
<span id="output"><!--%OUTPUT%--></span>
</pre>
-<script src="/socket.io/socket.io.js"></script>
+<script src="/socket.io/socket.io.js"></script>
<script src="processing.js"></script>
<script type="text/javascript">
var graphDataSize = 50;
@@ -33,7 +33,7 @@
// local variables
var stepX = p.width / (graphDataSize - 1);
var centerY = window.height / 2;
-
+
p.draw = function() {
// erase background
p.background(224);
@@ -58,14 +58,14 @@
lastY = nextY;
}
};
-
+
p.noLoop();
}
var canvas = document.getElementById("canvas1");
var processing = new Processing(canvas, sketchProc);
-var socket = new io.connect();
+var socket = new io.connect();
socket.on('connect', function() {
document.getElementById("status").innerHTML="Connected";
});
@@ -86,8 +86,8 @@
}
window.graphData[i] = myData;
if (myData > rangeHigh) {
- rangeHigh = myData;
- window.scaleY = window.height / (window.rangeHigh - window.rangeLow);
+ rangeHigh = myData;
+ window.scaleY = window.height / (window.rangeHigh - window.rangeLow);
}
if (myData < rangeLow) {
rangeLow = myData;
Please sign in to comment.
Something went wrong with that request. Please try again.