diff options
author | Autobuilder at buildslave-ubuntu-12-32 <magnus@alkit.se> | 2013-11-06 17:05:37 (GMT) |
---|---|---|
committer | Autobuilder at buildslave-ubuntu-12-32 <magnus@alkit.se> | 2013-11-06 17:05:37 (GMT) |
commit | c3238c9a5c627491d26ad527f99a08ccfd218c29 (patch) | |
tree | ddcdf102e83bbf175a37d9dea3322faebab6a3c4 /apps | |
parent | 0a8628a436dd98ca8cff1c1325298bf04328e997 (diff) | |
download | uscxml-c3238c9a5c627491d26ad527f99a08ccfd218c29.zip uscxml-c3238c9a5c627491d26ad527f99a08ccfd218c29.tar.gz uscxml-c3238c9a5c627491d26ad527f99a08ccfd218c29.tar.bz2 |
text messaging
Diffstat (limited to 'apps')
-rw-r--r-- | apps/samples/miles/miles.js | 14 | ||||
-rw-r--r-- | apps/samples/miles/miles.scxml | 10 |
2 files changed, 11 insertions, 13 deletions
diff --git a/apps/samples/miles/miles.js b/apps/samples/miles/miles.js index 1ef1c68..4f31d68 100644 --- a/apps/samples/miles/miles.js +++ b/apps/samples/miles/miles.js @@ -12,17 +12,15 @@ function Miles(element, params) { this.connected = false; this.imageIteration = 0; - this.width = 300; - this.height = 200; + this.width = 320; + this.height = 240; // private attributes var scxmlURL = "localhost:8080" var reflectorIp = "88.131.107.12" - //var email = "user@smartvortex.eu"; - var email = "mathias"; + var email = "user@smartvortex.eu"; var problemName = "webconfero"; - //var remoteEmail = "other@smartvortex.eu"; - var remoteEmail = "stefan"; + var remoteEmail = "other@smartvortex.eu"; var participants = []; // empty array var videoCompressions = [ @@ -192,7 +190,7 @@ function Miles(element, params) { }, load: function(result) { if (result.message) { - self.chatOutputElem.innerHTML += stopChatScrolling + " " + Math.random() + ": " + result.message + '<br />'; + self.chatOutputElem.innerHTML += result.message + '<br />'; if (!stopChatScrolling) self.chatOutputElem.scrollTop = self.chatOutputElem.scrollHeight; } @@ -299,7 +297,7 @@ function Miles(element, params) { self.chatSendButton = new Button({ label: "Send", onClick: function(){ - alert(self.chatInput.value); + //alert(self.chatInput.value); self.xhr.post({ // The URL to request url: "http://" + scxmlURL + "/miles/text", diff --git a/apps/samples/miles/miles.scxml b/apps/samples/miles/miles.scxml index 1889ffa..22ebdda 100644 --- a/apps/samples/miles/miles.scxml +++ b/apps/samples/miles/miles.scxml @@ -3,7 +3,7 @@ <state id="main"> <invoke type="miles" id="miles"> <finalize> - <log label="out" expr="_event.name" /> + <!-- <log label="out" expr="_event.name" /> --> <script>//dump(_event);</script> <if cond="_event.data.origin"> <!-- <log label="Reply-length" expr="_event.data.base64.length" /> --> @@ -40,8 +40,8 @@ </transition> <transition event="http.get" target="idle"> - <log label="in" expr="_event.data.path" /> - <script>dump(_event);</script> + <!-- <log label="in" expr="_event.data.path" /> --> + <script>//dump(_event);</script> <if cond="false"> <!-- START ############### --> @@ -144,8 +144,8 @@ </transition> <transition event="http.post" target="idle"> - <log label="in" expr="_event.data.path" /> - <script>dump(_event);</script> + <!-- <log label="in" expr="_event.data.path" /> --> + <script>//dump(_event);</script> <if cond="false"> <!-- POST TEXT ############### --> |