Skip to content
Snippets Groups Projects
Commit eaf865c7 authored by David Rouquet's avatar David Rouquet
Browse files

fusion

parents 567a96b4 7085589b
No related branches found
No related tags found
No related merge requests found
......@@ -47,3 +47,27 @@ select.sd-dropdown.inline-dropdown, input.sd-input.inline-input {
margin: 0;
}
}
// ***********************************
// Hide disabled checkboxes in some quizz
// ***********************************
[data-name="pg665"] {
.sd-checkbox--readonly {
span.sd-checkbox__decorator {
display: none;
}
}
}
// ***********************************
// Align one line radio buttons
// ***********************************
.one-line {
display: flex;
align-items: center;
.sd-question__header {
margin-top: 0;
}
}
......@@ -64,7 +64,7 @@ $(function () {
survey.onAfterRenderQuestion.add((survey, options) => {
if (options.question.customFormat && options.question.customFormat === "one_line") {
console.log("Custom format");
$(options.htmlElement).addClass("one-line");
}
});
......
......@@ -16,7 +16,8 @@
"enableHtml": true,
"correctAnswer": 3,
"colCount": 5,
"customFormat": "one_line"
"customFormat": "one_line",
"titleLocation": "left"
},
{
"type": "radiogroup",
......@@ -31,7 +32,8 @@
],
"enableHtml": true,
"correctAnswer": 2,
"colCount": 5
"colCount": 5,
"titleLocation": "left"
},
{
"type": "radiogroup",
......@@ -46,7 +48,8 @@
],
"enableHtml": true,
"correctAnswer": 3,
"colCount": 5
"colCount": 5,
"titleLocation": "left"
},
{
"type": "radiogroup",
......@@ -61,7 +64,8 @@
],
"enableHtml": true,
"correctAnswer": 3,
"colCount": 5
"colCount": 5,
"titleLocation": "left"
}
]
}
......
+++
title = "Dev Activity2"
weight = 30
+++
Activité pour tests en développement
{{< quiz >}}
{
"elements": [
{
"name": "quizQuestion",
"type": "checkbox",
"name": "pg665",
"choices": [
{
"value": "1",
"text": " The farmer refused to ***produce*** ...",
"enableIf": "false"
},
{
"value": "2",
"text": "<img src='/macao-hugo/media/phon_produce_13.png'>\n"
},
{
"value": "3",
"text": "<img src='/macao-hugo/media/phon_produce_2_.png'>\n"
},
{
"value": "7",
"text": "...organic ***produce.***",
"enableIf": "false"
},
{
"value": "8",
"text": "<img src='/macao-hugo/media/phon_produce_13.png'>\n"
},
{
"value": "9",
"text": "<img src='/macao-hugo/media/phon_produce_2_.png'>\n"
}
]
}
],
"correctComment": "\n",
"incorrectComment": "\n\nVoici le corrigé\n:\n\nThe farmer refused\nto ***produce*** organic ***produce***.\n\n <img src='/macao-hugo/media/phon_produce_12.png'> <img src='/macao-hugo/media/phon_produce_2.png'>\n\n"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment