PennController for IBEX › Forums › Support › consentLink in IinitiateRecorder is not blue?
Tagged: consentlink, InitiateRecorder
- This topic has 2 replies, 2 voices, and was last updated 4 years, 4 months ago by
Shereen_Potsdam.
-
AuthorPosts
-
July 25, 2021 at 8:48 am #7125
Shereen_PotsdamParticipantHi Jeremy,
I have an issue with the consentLink in my InitiateRecorder, I don’t know if it’s a language issue but when I run my experiment with the consentLink statement in English, the font is blue and becomes underlined when you run the cursor over it to indicate that the statement is clickable. But when I edit the link and replaced it with German instructions, the statement is in regular black font and does not underline when you run the cursor over it, which doesn’t make it look like a clickable link. Although the link works perfectly fine when you click it, I would still like it to be blue and underlined when you run the cursor over it. Below is the code I used in InitiateRecorder, please let me know if I am missing something!let replaceConsentMic = ()=>{ let consentLink = $(".PennController-PennController a.Message-continue-link"); if (consentLink.length > 0 && consentLink[0].innerHTML.match(/^By clicking this link I understand that I grant this experiment's script access to my recording device/)) consentLink.html("Durch klicken erteile ich diesem Skript Zugriff auf mein Mikrofon"); else window.requestAnimationFrame( replaceConsentMic ); };Thank you in advance,
ShereenJuly 26, 2021 at 11:02 am #7126
JeremyKeymasterHi Shereen,
I am not sure why this happens, since the
Message-continue-linkclass should apply the desired aesthetics. Try replacingconsentLink.htmlwithconsentLink.text, in case some related HTML tags gets lost in the processJeremy
July 27, 2021 at 7:04 pm #7132
Shereen_PotsdamParticipantHi Jeremy,
Thank you for your reply, I tried that and it didn’t work. Then I figured out that it actually has to do with the way the text that precedes it within the the trial is written. The last line in the trial was written in the following way:
<p> To continue, please click on the link below.(it was missing the closing </p> at the end).
So when I added </p> at the end of the text, it worked perfectly fine 🙂Thank you as usual for your help,
Shereen -
AuthorPosts
- You must be logged in to reply to this topic.