diff --git a/macao/assets/_custom.scss b/macao/assets/_custom.scss index d373e0ef52c2409ae527a44780ad4ac85e8d6a4f..a4faeaa00d8348b0f21c3b12df823c2dcac9b3d3 100644 --- a/macao/assets/_custom.scss +++ b/macao/assets/_custom.scss @@ -3,8 +3,6 @@ body { --quizz-backgourd-color: #00000; --feedback-sucess-color: rgba(167, 243, 167, 0.8); --feedback-error-color: #f8a5a5; - - // To edit SurveyJs colors see TODO create custom theme for SurveyJs } // *********************************** @@ -128,15 +126,6 @@ a.active { text-decoration: underline; } -.commentaireInfo { - padding: 10px; - border-radius: 10px; - background-color: var(--secondary-background-color); - border: 1px solid var(--macao-primary-color); - color: black; - max-width: 500px; -} - em:not(:has(strong)) { background-color: lightgray; @@ -145,4 +134,4 @@ em:not(:has(strong)) { border-radius: 5px; } - +@import "plugins/_scrollbars.scss"; diff --git a/macao/assets/custom.js b/macao/assets/custom.js index 61f6bee100f9f23de1dca95bb01db090b5c11cb3..dbcbd4726fa8cd033746fa8576e479cb6052a1bf 100644 --- a/macao/assets/custom.js +++ b/macao/assets/custom.js @@ -20,16 +20,15 @@ $(document).ready(function() { trigger: 'click', html: true, placement: 'auto', - content: function () { - return $("[commentaireid=" + spanid + "]").html(); - } + content: $("[commentaireid=" + spanid + "]") }); + $("[commentaireid=" + spanid + "]").toggle() } }); - $(document).on('click', function() { - $('[spanid]').popover('hide'); - }); + // $(document).on('click', function() { + // $('[spanid]').popover('hide'); + // }); // Simplify th in td $('th').each(function () { diff --git a/macao/assets/quiz.js b/macao/assets/quiz.js index 8718e732e92048d7f1ca1aa2df35b9521df165b8..57d5bb5383df3cb6cc72bf2648c8ea02eb99d0f8 100644 --- a/macao/assets/quiz.js +++ b/macao/assets/quiz.js @@ -121,3 +121,7 @@ $(function () { // Inflate the survey in the page $("#surveyContainer").Survey({ model: survey }); }); + +$(document).ready(function() { + $('button:contains("Play")').html('<i class="fa-solid fa-play"></i> Écouter').addClass('btn-play').prop('title','Écouter'); +});