Sound button trigger display

12 views
Skip to first unread message

Oliv Yaya

unread,
Dec 27, 2025, 7:23:39 AM (13 days ago) 12/27/25
to hotpotatoesusers

Hello again !

Seasons greetings to you all !

I am experiencing a problem which I thought I had solved with your kind help ages ago…

In some syllable-encoding exercises I have created, each syllable must be encoded twice!
The problem is that when you click on the sound button of one syllable, the other button of the identical second syllable is triggered at the same time, thus giving the pupil a clue, as they will know exactly where the identical second syllable should be written!
At the time, Agnès gave me a tip to fix the problem.

« You had to modify the player.js file as follows :

In player.js at the beginning, you will see :

var unicode_play='►';

var unicode_pause='<span

style="display:inline-block;font-size:60%;vertical-align:middle;padding:0px

5px 3px 1px;"><strong>||</strong></span>';

//var unicode_pause='&#9658;';

Just comment the second line (adding // at the beginning)

and uncomment the third line (removing // at the beginning) »

The problem is that, despite modifying the player.js file, two buttons are still triggered simultaneously. As my exercises were relatively old (most likely created with version 6 of Hot Potatoes), I carried out a test by recreating an exercise using version 7 of Hot Potatoes. The problem is thus persisting :

HPv6 :

http://ecolepro.free.fr/EXOS-SONORES/ENCODAGE-SYLLABES-SIMPLES-C-V/M-voyelle-1.htm

HPv7 :

http://ecolepro.free.fr/EXOS-SONORES/ENCODAGE-SYLLABES-SIMPLES-C-V/L-voyelle-1.htm

What I eventually discovered is that in the Firefox browser the problem occurs, whereas it does not occur in the Edge browser. You might therefore tell me to use Edge and that this would solve the problem! However, my pupils are used to Firefox. Do you think something could be done to avoid this issue in Firefox?

Thank you in avance for your kind assistance !

Have a lovely festive season !

Cheers from France !

Olivier 

Martin Holmes

unread,
Dec 27, 2025, 12:52:32 PM (13 days ago) 12/27/25
to hotpotatoesusers
As far as I can see, this exercise (the HotPot 7 version) works perfectly; whenever I press a play button, I hear only one sound, once. What OS and browser are you using?

Cheers,
Martin 

Agnès S.

unread,
Dec 30, 2025, 4:08:21 AM (10 days ago) 12/30/25
to hotpotat...@googlegroups.com

Bonjour Olivier,

For me these exercises (HotPot 7 and Hotpot 6 versions) work perfectly.
Are you sure that, when testing, you used the modified player.js, I mean
the one beginning with :
var unicode_play='&#9658;';
//var unicode_pause='<span
style="display:inline-block;font-size:60%;vertical-align:middle;padding:0px
5px 3px 1px;"><strong>||</strong></span>';
var unicode_pause='&#9658;';

Cheers,
Agnès S.

Le 27/12/2025 à 13:23, 'Oliv Yaya' via hotpotatoesusers a écrit :
> Hello again !
>
> Seasons greetings to you all !
>
> I am experiencing a problem which I thought I had solved with your kind
> help ages ago…
>
> In some syllable-encoding exercises I have created, each syllable must
> be encoded twice!
> The problem is that when you click on the sound button of one syllable,
> the other button of the identical second syllable is triggered at the
> same time, thus giving the pupil a clue, as they will know exactly where
> the identical second syllable should be written!
> At the time, Agnès gave me a tip to fix the problem.
>
> « You had to modify the /player.js/ file as follows :
>
> In player.js at the beginning, you will see :
>
> var unicode_play='&#9658;';
>
> var unicode_pause='<span
>
> style="display:inline-block;font-size:60%;vertical-align:middle;padding:0px
>
> 5px 3px 1px;"><strong>||</strong></span>';
>
> //var unicode_pause='&#9658;';
>
> Just comment the second line (adding // at the beginning)
>
> and uncomment the third line (removing // at the beginning) »
>
> The problem is that, despite modifying the /player.js/ file, two buttons
> are still triggered simultaneously. As my exercises were relatively old
> (most likely created with version 6 of Hot Potatoes), I carried out a
> test by recreating an exercise using version 7 of Hot Potatoes. The
> problem is thus persisting :
>
> HPv6 :
>
> http://ecolepro.free.fr/EXOS-SONORES/ENCODAGE-SYLLABES-SIMPLES-C-V/M-
> voyelle-1.htm
>
> HPv7 :
>
> http://ecolepro.free.fr/EXOS-SONORES/ENCODAGE-SYLLABES-SIMPLES-C-V/L-
> voyelle-1.htm
>
> What I eventually discovered is that in the Firefox browser the problem
> occurs, whereas it does not occur in the Edge browser. You might
> therefore tell me to use Edge and that this would solve the problem!
> However, my pupils are used to Firefox. Do you think something could be
> done to avoid this issue in Firefox?
>
> Thank you in avance for your kind assistance !
>
> Have a lovely festive season !
>
> Cheers from France !
>
> Olivier
>
> --
> You received this message because you are subscribed to the Google
> Groups "hotpotatoesusers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hotpotatoesuse...@googlegroups.com
> <mailto:hotpotatoesuse...@googlegroups.com>.
> To view this discussion, visit https://groups.google.com/d/msgid/
> hotpotatoesusers/ed3e0864-f78f-42d4-ac8e-
> d9a4c1843779n%40googlegroups.com <https://groups.google.com/d/msgid/
> hotpotatoesusers/ed3e0864-f78f-42d4-ac8e-
> d9a4c1843779n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages