diff --git a/language/.en.json b/language/.en.json index b02739bc..8e99b936 100644 --- a/language/.en.json +++ b/language/.en.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/af.json b/language/af.json index 49aa253d..2a3680d9 100644 --- a/language/af.json +++ b/language/af.json @@ -140,6 +140,10 @@ }, { "label": "Onmiddelike terugvoer" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/ar.json b/language/ar.json index 591160a7..c12aeb10 100644 --- a/language/ar.json +++ b/language/ar.json @@ -140,6 +140,10 @@ }, { "label": "تلميح" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/bg.json b/language/bg.json index 1e84b13a..cc8a9cd4 100644 --- a/language/bg.json +++ b/language/bg.json @@ -140,6 +140,10 @@ }, { "label": "Незабавна обратна връзка" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/bs.json b/language/bs.json index a0b72ebf..2f841e34 100644 --- a/language/bs.json +++ b/language/bs.json @@ -140,6 +140,10 @@ }, { "label": "Instantna povratna informacija" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/ca.json b/language/ca.json index 33776986..958814f2 100644 --- a/language/ca.json +++ b/language/ca.json @@ -140,6 +140,10 @@ }, { "label": "Suggeriments instantanis" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/cs.json b/language/cs.json index 8cb0f634..844c24b9 100644 --- a/language/cs.json +++ b/language/cs.json @@ -140,6 +140,10 @@ }, { "label": "Okamžitá zpětná vazba" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/da.json b/language/da.json index bca2a9ca..78442328 100644 --- a/language/da.json +++ b/language/da.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/de.json b/language/de.json index 578b9416..81f65ab9 100644 --- a/language/de.json +++ b/language/de.json @@ -140,6 +140,10 @@ }, { "label": "Sofortige Rückmeldung" + }, + { + "label": "Lösungen unterhalb des Inhalts", + "description": "Wenn gesetzt, werden Lösungstexte immer unterhalb des Inhalts angezeigt." } ] }, diff --git a/language/el.json b/language/el.json index 35dcde01..28d1577c 100644 --- a/language/el.json +++ b/language/el.json @@ -140,6 +140,10 @@ }, { "label": "Άμεση ανατροφοδότηση" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/es-mx.json b/language/es-mx.json index b4fa1183..f9e385c5 100644 --- a/language/es-mx.json +++ b/language/es-mx.json @@ -140,6 +140,10 @@ }, { "label": "Retroalimentación instantánea" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/es.json b/language/es.json index 6e3c2c85..3a1765b0 100644 --- a/language/es.json +++ b/language/es.json @@ -140,6 +140,10 @@ }, { "label": "Retroalimentación instantánea" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/et.json b/language/et.json index c5d09d66..6379a3df 100644 --- a/language/et.json +++ b/language/et.json @@ -140,6 +140,10 @@ }, { "label": "Kohene tagasiside" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/eu.json b/language/eu.json index d9f6ec86..4e2a3e1d 100644 --- a/language/eu.json +++ b/language/eu.json @@ -140,6 +140,10 @@ }, { "label": "Berehalako feedbacka" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/fi.json b/language/fi.json index 82873641..dfdc4a93 100644 --- a/language/fi.json +++ b/language/fi.json @@ -140,6 +140,10 @@ }, { "label": "Pikapalaute" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/fr.json b/language/fr.json index ffcfbca4..39ff995a 100644 --- a/language/fr.json +++ b/language/fr.json @@ -140,6 +140,10 @@ }, { "label": "Correction instantanée" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/ga.json b/language/ga.json index 9c01e5d1..676ea08d 100644 --- a/language/ga.json +++ b/language/ga.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, @@ -160,4 +164,4 @@ "default": "Retry the task. Reset all responses and start the task over again." } ] -} \ No newline at end of file +} diff --git a/language/he.json b/language/he.json index 9d719139..2bcf3456 100644 --- a/language/he.json +++ b/language/he.json @@ -140,6 +140,10 @@ }, { "label": "משוב מיידי" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/hu.json b/language/hu.json index abb45564..8a1ceec2 100644 --- a/language/hu.json +++ b/language/hu.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/it.json b/language/it.json index 1dbf043b..805ee31f 100644 --- a/language/it.json +++ b/language/it.json @@ -140,6 +140,10 @@ }, { "label": "Feedback istantaneo" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/ja.json b/language/ja.json index 3363d689..ee490bf0 100644 --- a/language/ja.json +++ b/language/ja.json @@ -140,6 +140,10 @@ }, { "label": "即時フィードバック" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/km.json b/language/km.json index 6e621319..d0ec0294 100644 --- a/language/km.json +++ b/language/km.json @@ -140,6 +140,10 @@ }, { "label": "ពិនិត្យចម្លើយភ្លាមៗ" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/ko.json b/language/ko.json index ac9e7c5c..ad5f3fe7 100644 --- a/language/ko.json +++ b/language/ko.json @@ -140,6 +140,10 @@ }, { "label": "즉각적인 피드백" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/nb.json b/language/nb.json index 917bf1de..ef5fb943 100644 --- a/language/nb.json +++ b/language/nb.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/nl.json b/language/nl.json index 53e08c37..4450a56d 100644 --- a/language/nl.json +++ b/language/nl.json @@ -140,6 +140,10 @@ }, { "label": "Geef direct feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/nn.json b/language/nn.json index 3210240a..2f42d089 100644 --- a/language/nn.json +++ b/language/nn.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/pl.json b/language/pl.json index 04a341d2..570af252 100644 --- a/language/pl.json +++ b/language/pl.json @@ -140,6 +140,10 @@ }, { "label": "Natychmiastowy komentarz" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/pt-br.json b/language/pt-br.json index 6b2ac69f..616d0f94 100644 --- a/language/pt-br.json +++ b/language/pt-br.json @@ -140,6 +140,10 @@ }, { "label": "Feedback instantâneo" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/pt.json b/language/pt.json index bf8f990c..4c167b1e 100644 --- a/language/pt.json +++ b/language/pt.json @@ -140,6 +140,10 @@ }, { "label": "Feedback imediato" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/ro.json b/language/ro.json index 5590d7f7..8e99b936 100644 --- a/language/ro.json +++ b/language/ro.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, @@ -160,4 +164,4 @@ "default": "Retry the task. Reset all responses and start the task over again." } ] -} \ No newline at end of file +} diff --git a/language/ru.json b/language/ru.json index a05519cd..8bda9bf5 100644 --- a/language/ru.json +++ b/language/ru.json @@ -140,6 +140,10 @@ }, { "label": "Мгновенная обратная связь" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/sl.json b/language/sl.json index c296062b..1f63e6e7 100644 --- a/language/sl.json +++ b/language/sl.json @@ -140,6 +140,10 @@ }, { "label": "Sprotno preverjaj odgovore" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/sma.json b/language/sma.json index b02739bc..8e99b936 100644 --- a/language/sma.json +++ b/language/sma.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/sme.json b/language/sme.json index 5590d7f7..8e99b936 100644 --- a/language/sme.json +++ b/language/sme.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, @@ -160,4 +164,4 @@ "default": "Retry the task. Reset all responses and start the task over again." } ] -} \ No newline at end of file +} diff --git a/language/smj.json b/language/smj.json index 5590d7f7..8e99b936 100644 --- a/language/smj.json +++ b/language/smj.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, @@ -160,4 +164,4 @@ "default": "Retry the task. Reset all responses and start the task over again." } ] -} \ No newline at end of file +} diff --git a/language/sr.json b/language/sr.json index 41aa4bb6..05e9410e 100644 --- a/language/sr.json +++ b/language/sr.json @@ -140,6 +140,10 @@ }, { "label": "Тренутне повратне информације" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/sv.json b/language/sv.json index 20c933be..0e8cc4d7 100644 --- a/language/sv.json +++ b/language/sv.json @@ -140,6 +140,10 @@ }, { "label": "Omedelbar feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/tr.json b/language/tr.json index 78700976..bff3762d 100644 --- a/language/tr.json +++ b/language/tr.json @@ -140,6 +140,10 @@ }, { "label": "Anlık geri bildirim" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/uk.json b/language/uk.json index f504e547..32e5d678 100644 --- a/language/uk.json +++ b/language/uk.json @@ -140,6 +140,10 @@ }, { "label": "Миттєвий відгук" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/vi.json b/language/vi.json index b02739bc..8e99b936 100644 --- a/language/vi.json +++ b/language/vi.json @@ -140,6 +140,10 @@ }, { "label": "Instant feedback" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/language/zh-tw.json b/language/zh-tw.json index acf46e94..66fd4353 100644 --- a/language/zh-tw.json +++ b/language/zh-tw.json @@ -140,6 +140,10 @@ }, { "label": "即時回饋" + }, + { + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content." } ] }, diff --git a/semantics.json b/semantics.json index cc1f6183..075cfe43 100644 --- a/semantics.json +++ b/semantics.json @@ -310,6 +310,15 @@ "type": "boolean", "default": false, "optional": true + }, + { + "name": "noWideScreenLayout", + "label": "Solutions below content", + "description": "If set, will force solution texts to be displayed below the content.", + "importance": "low", + "type": "boolean", + "default": false, + "optional": true } ] }, diff --git a/src/scripts/drag-text.js b/src/scripts/drag-text.js index 5aba25dc..ce255ef9 100644 --- a/src/scripts/drag-text.js +++ b/src/scripts/drag-text.js @@ -87,7 +87,8 @@ H5P.DragText = (function ($, Question, ConfirmationDialog) { enableRetry: true, enableSolutionsButton: true, enableCheckButton: true, - instantFeedback: false + instantFeedback: false, + noWideScreenLayout: false }, showSolution : "Show solution", dropZoneIndex: "Drop Zone @index.", @@ -408,7 +409,7 @@ H5P.DragText = (function ($, Question, ConfirmationDialog) { self.addDropzoneWidth(); //Find ratio of width to em, and make sure it is less than the predefined ratio, make sure widest draggable is less than a third of parent width. - if ((self.$inner.width() / parseFloat(self.$inner.css("font-size"), 10) > 43) && (self.widestDraggable <= (self.$inner.width() / 3))) { + if (!self.params.behaviour.noWideScreenLayout && (self.$inner.width() / parseFloat(self.$inner.css("font-size"), 10) > 43) && (self.widestDraggable <= (self.$inner.width() / 3))) { // Adds a class that floats the draggables to the right. self.$draggables.addClass(DRAGGABLES_WIDE_SCREEN);