diff --git a/macao/assets/custom.js b/macao/assets/custom.js index 61f6bee100f9f23de1dca95bb01db090b5c11cb3..95b04a62ba3e1653dcb5eed75a89027a4532e0fc 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 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'); +});