From 3bdf302256f22c584a6274b1e9fd971e94829429 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Fri, 13 Jan 2017 14:04:11 +0100 Subject: [PATCH] Work on testing sockets, odometers --- Site/Default.aspx | 6 +++--- Site/Scripts/Swarmops-v5.js | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Site/Default.aspx b/Site/Default.aspx index c99a1838..f47a6c5c 100644 --- a/Site/Default.aspx +++ b/Site/Default.aspx @@ -9,10 +9,10 @@
-
12345689.001
Current Participants (Testing new code)
+
123402500
Current Participants (Testing new code)
-
123689.001
Active Participants Last 30 Days (Testing new code)
+
125498
Active Participants Last 30 Days (Testing new code)

@@ -24,7 +24,7 @@
-
12345689.001
Annual Profit To Date (Testing new code)
+
0.001
Annual Profit To Date (Testing new code)
diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js index d335e5d6..e78ef378 100644 --- a/Site/Scripts/Swarmops-v5.js +++ b/Site/Scripts/Swarmops-v5.js @@ -41,6 +41,8 @@ function _masterInitializeSocket(authenticationTicket) { else if (message.messageType == "SandboxUpdate") { if (odoLocalParticipation != undefined) { // Real ugly accessing specific page elements here, but it's temporary odoLocalParticipation.innerHTML = message.local; + odoGlobalParticipation.innerHTML = 12345000 + message.local * 5; + odoActiveParticipation.innerHTML = 123000 + message.local * 5; odoProfitLossToDate.innerHTML = (message.profit / 100.0) + 0.001; } }