diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:14:07 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:14:07 -0500 |
commit | ce3d56920b15facbb64b3caf0d823a3f57c0dded (patch) | |
tree | 0ea4a13885afb281237b3747e85eb6315863ae0a /static-http | |
parent | 35a2e09c655f26067db0f51837704886d6ffff78 (diff) |
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'static-http')
-rw-r--r-- | static-http/ajamdemo.html | 40 | ||||
-rw-r--r-- | static-http/astman.css | 2 | ||||
-rw-r--r-- | static-http/astman.js | 8 | ||||
-rw-r--r-- | static-http/mantest.html | 6 |
4 files changed, 28 insertions, 28 deletions
diff --git a/static-http/ajamdemo.html b/static-http/ajamdemo.html index 37f8a573d..76996c139 100644 --- a/static-http/ajamdemo.html +++ b/static-http/ajamdemo.html @@ -1,10 +1,10 @@ <!-- Asterisk -- An open source telephony toolkit. - + Copyright (C) 1999 - 2012, Digium, Inc. - + Mark Spencer <markster@digium.com> - + See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact any of the maintainers of this project for assistance; @@ -28,9 +28,9 @@ var selectedchan = null; var hungupchan = ""; var transferedchan = ""; - + var demo = new Object; - + function loggedOn() { if (loggedon == 1) return; @@ -40,7 +40,7 @@ astmanEngine.pollEvents(); astmanEngine.sendRequest('action=status', demo.channels); } - + function clearChannelList() { $('channellist').innerHTML = "<i class='light'>Not connected</i>"; } @@ -54,7 +54,7 @@ astmanEngine.channelClear(); clearChannelList(); } - + function updateButtons() { if ($(selectedchan)) { @@ -79,12 +79,12 @@ $('refresh').disabled = 1; } } - + demo.channelCallback = function(target) { selectedchan = target; updateButtons(); } - + demo.channels = function(msgs) { resp = msgs[0].headers['response']; if (resp == "Success") { @@ -92,7 +92,7 @@ } else loggedOff(); - for (i=1;i<msgs.length - 1;i++) + for (i=1;i<msgs.length - 1;i++) astmanEngine.channelUpdate(msgs[i]); $('channellist').innerHTML = astmanEngine.channelTable(demo.channelCallback); $('statusbar').innerHTML = "Ready"; @@ -106,8 +106,8 @@ else loggedOff(); }; - - + + demo.logoffs = function(msgs) { $('statusbar').innerHTML = msgs[0].headers['message']; loggedOff(); @@ -116,7 +116,7 @@ demo.hungup = function(msgs) { $('statusbar').innerHTML = "Hungup " + hungupchan; } - + demo.transferred = function(msgs) { $('statusbar').innerHTML = "Transferred " + transferredchan; } @@ -130,13 +130,13 @@ $('statusbar').innerHTML = "<i>Updating channel status...</i>"; astmanEngine.channelClear(); astmanEngine.sendRequest('action=status', demo.channels); - } - + } + function doLogin() { $('statusbar').innerHTML = "<i>Logging in...</i>"; astmanEngine.sendRequest('action=login&username=' + $('username').value + "&secret=" + $('secret').value, demo.logins); } - + function doTransfer() { var channel = astmanEngine.channelInfo(selectedchan); var exten = prompt("Enter new extension for " + selectedchan); @@ -155,12 +155,12 @@ } } } - + function doLogoff() { $('statusbar').innerHTML = "<i>Logging off...</i>"; astmanEngine.sendRequest('action=logoff', demo.logoffs); } - + demo.pongs = function(msgs) { resp = msgs[0].headers['response']; if (resp == "Pong") { @@ -171,7 +171,7 @@ loggedOff(); } } - + demo.eventcb = function(msgs) { var x; if (loggedon) { @@ -183,7 +183,7 @@ } updateButtons(); } - + function localajaminit() { astmanEngine.setURL('../rawman'); astmanEngine.setEventCallback(demo.eventcb); diff --git a/static-http/astman.css b/static-http/astman.css index 28ab34306..558dc9006 100644 --- a/static-http/astman.css +++ b/static-http/astman.css @@ -41,7 +41,7 @@ .chanlistodd { background-color : #f0f5ff; -} +} .chanlistselected { background-color : #ffb13d; diff --git a/static-http/astman.js b/static-http/astman.js index e00a2e055..5b53d4659 100644 --- a/static-http/astman.js +++ b/static-http/astman.js @@ -36,7 +36,7 @@ function Astman() { }; this.clickChannel = function(ev) { var target = ev.target; - // XXX This is icky, we statically use astmanEngine to call the callback XXX + // XXX This is icky, we statically use astmanEngine to call the callback XXX if (me.selecttarget) me.restoreTarget(me.selecttarget); while(!target.id || !target.id.length) @@ -56,7 +56,7 @@ function Astman() { other = target.nextSibling.nextSibling.className; } if (other) { - if (other == "chanlisteven") + if (other == "chanlisteven") target.className = "chanlistodd"; else target.className = "chanlisteven"; @@ -71,7 +71,7 @@ function Astman() { if (!channels[channame]) channels[channame] = new Array(); - + if (msg.headers.event) { if (msg.headers.event == "Hangup") { delete channels[channame]; @@ -184,7 +184,7 @@ function Astman() { var x,y; var s = t.responseText; var allheaders = s.split('\r\n'); - if (me.debug) + if (me.debug) me.debug.value = "\n"; for (x=0;x<allheaders.length;x++) { if (allheaders[x].length) { diff --git a/static-http/mantest.html b/static-http/mantest.html index c0affe2bc..f36f675e7 100644 --- a/static-http/mantest.html +++ b/static-http/mantest.html @@ -1,10 +1,10 @@ <!-- Asterisk -- An open source telephony toolkit. - + Copyright (C) 1999 - 2012, Digium, Inc. - + Mark Spencer <markster@digium.com> - + See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact any of the maintainers of this project for assistance; |