From 2fde03f0e0bfaddbcf80564179a6c25b0b59aa35 Mon Sep 17 00:00:00 2001 From: Falkvinge Date: Fri, 17 Mar 2017 05:19:17 +0100 Subject: [PATCH] Stylefix --- FrontSocket/FrontendLoop.cs | 2 +- Site/Master-v5.master | 2 +- Site/Scripts/Swarmops-v5.js | 10 ++++++---- Site/Style/style-v5.css | 21 +++++++++++++++++++++ 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/FrontSocket/FrontendLoop.cs b/FrontSocket/FrontendLoop.cs index e29604ed..b4d88e02 100644 --- a/FrontSocket/FrontendLoop.cs +++ b/FrontSocket/FrontendLoop.cs @@ -227,7 +227,7 @@ namespace Swarmops.Frontend.Socket { JObject malfunctionObject = new JObject(); malfunctionObject["Id"] = "Mal" + loop.ToString(); - malfunctionObject["Text"] = malfunctionStrings[loop] + " (Test code, ignore)"; + malfunctionObject["Text"] = malfunctionStrings[loop] + " (Test code, ignore - and let's make this a multiline point to test flow)"; malfunctionsArray.Add(malfunctionObject); } diff --git a/Site/Master-v5.master b/Site/Master-v5.master index f598b9d5..cd564347 100644 --- a/Site/Master-v5.master +++ b/Site/Master-v5.master @@ -254,7 +254,7 @@

Tech Malfunctions

- +
  • Test one (ignore)
  • Test two (ignore too)
  • Test three (you know the drill now)
diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js index 0d2da264..69dd779b 100644 --- a/Site/Scripts/Swarmops-v5.js +++ b/Site/Scripts/Swarmops-v5.js @@ -104,13 +104,15 @@ function updateListBox(box, listData) { console.log($(this)); var elementId = $(this).attr("rel"); console.log(elementId); + var testLookup = idListLookup[elementId]; + console.log(testLookup); - if (typeof idListLookup[elementId] != 'undefined') { + if (testLookup === undefined) { + // displayed item is NOT present in supplied list, and should be removed + $(this).slideUp(400, function () { $(this).remove(); }); + } else { // displayed item is present in supplied list // TODO: update text - } else { - // displayed item is NOT present in supplied list, and should be removed - $(this).slideUp(400, function() { $(this).remove(); }); } }); } diff --git a/Site/Style/style-v5.css b/Site/Style/style-v5.css index d912747c..a7b19ac8 100644 --- a/Site/Style/style-v5.css +++ b/Site/Style/style-v5.css @@ -1146,6 +1146,27 @@ body.rtl .sidebar h2 span.arrow { +/* TODO, MALFUNCTIONS LIST IN SIDEBAR */ + +div#divMalfunctionsList > ul { + list-style: none; +} + +div#divMalfunctionsList > ul > li { + padding-top: 8px; + background: url('/Images/Icons/iconshock-warning-24px.png') no-repeat 0px 3px; + padding-left: 30px; + padding-bottom: 5px; + line-height: 140%; +} + +div#divMalfunctionsList > ul > li+li { + border-top: 1px #476EC7 solid; + margin-top: 5px; +} + +/* TODO: RTL VERSION AND TODO VERSION */ + /* OTHER ELEMENTS */