diff --git a/data/definition.js b/data/definition.js index ff1cea6..cad3411 100755 --- a/data/definition.js +++ b/data/definition.js @@ -305,7 +305,7 @@ var separator = ";"; Please find some examples above. */ -var design = ["default.css","buttons-colors-on.css", "progressbar.css"]; +var design = ["default.css","buttons-colors-on.css", "progressbar.css", "navigation.css"]; /* diff --git a/styles/navigation.css b/styles/navigation.css new file mode 100644 index 0000000..dc686cb --- /dev/null +++ b/styles/navigation.css @@ -0,0 +1,27 @@ +/* JumpToQuestion-table custom classes, which can override default bg-classes */ + +.td-jump-to-question-decline { + background-color: #d9534f !important; +} + +.td-jump-to-question-neutral { + background-color: #f0ad4e !important; +} + +.td-jump-to-question-approve { + background-color: #5cb85c !important; +} + +.td-jump-to-question-skip { + color: #c0c0c0; + background-color: #c0c0c0; +} + +.td-jump-to-question-voting-double { + font-weight: bold; +} + +.td-jump-to-question-current { + border-color: #0050A0 !important; + background-color: #c0c0c0; +} \ No newline at end of file diff --git a/system/general.js b/system/general.js index 2183699..fc97699 100755 --- a/system/general.js +++ b/system/general.js @@ -174,7 +174,6 @@ function fnSendResults(arResults, arPersonalPositions) { // Korrektur der Parteiposition (-1,0,1) mit den Informationen aus der doppelten Wertung (-2,-1,0,1,2) // Marius Nisslmueller, Bad Honnef, Juni 2020 - // Bedingung für übersprungene Frage hinzugefügt arPersonalPositionsForStats = arPersonalPositions.slice(); // Damit arPersonalPositions nicht verändert wird for(let i=0; i"; + tableContent += ""; tableContent += ""+i+" "; tableContent += ""; if (modulo == 0) { tableContent += ""; } } tableContent += ""; $("#navigationJumpToQuestion").append(tableContent).fadeIn(500); - - // alte Meinungen farblich hervorheben und aktuelle Frage markieren - for (i = 1; i <= arQuestionsLong.length; i++) - { - // beantwortete Fragen farblich markieren - var positionColor = fnTransformPositionToColor(arPersonalPositions[(i-1)]); - $("#jumpToQuestionNr"+i+"").css("border-color", positionColor); - - // aktuelle Frage markieren - if ((i-1) <= questionNumber) - { -// $("#jumpToQuestionNr"+i+"").css("background-color", middleColor); // alt: graue "Mittelfarbe" als Hintergrund - $("#jumpToQuestionNr"+i+"").css("background-color", positionColor); // neu (0.2.3.2) Farbe der Auswahl (rot/gruen/...) - } - - if (arVotingDouble[(i-1)]) - { - $("#jumpToQuestionNr"+i+"").css("font-weight","bold"); - } - - } - } // Anzeige der Ergebnisse - zusammengefasst (Prozentwerte) - nur Parteien