From 3264c65accbabb40da301bd9233406c375377aaf Mon Sep 17 00:00:00 2001 From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr> Date: Wed, 15 Jan 2025 21:16:11 +0100 Subject: [PATCH] Fix button play style but disable comment --- macao/assets/custom.js | 23 +++++++++-------------- macao/assets/quiz.js | 4 ++++ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/macao/assets/custom.js b/macao/assets/custom.js index 61f6bee..95b04a6 100644 --- a/macao/assets/custom.js +++ b/macao/assets/custom.js @@ -11,25 +11,20 @@ $(document).ready(function() { // $('.commentaireInfo').prop('popover', 'auto'); $('.commentaireInfoGroup').show(); - // Comment popover - $('[spanid]').addClass('comment-trigger').each(function (){ - const spanid = $(this).attr('spanid'); - - if($("[commentaireid=" + spanid + "]").length !== 0) { - $(this).popover({ - trigger: 'click', - html: true, - placement: 'auto', - content: function () { - return $("[commentaireid=" + spanid + "]").html(); - } - }); + $('[spanid]').addClass('comment-trigger'); + + /* // Comment popover + $('[spanid]').addClass('comment-trigger').popover({ + trigger: 'click', + html: true, + content: function () { + return "tt" + $(this).attr('spanid'); } }); $(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 8718e73..57d5bb5 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'); +}); -- GitLab