Hi Enfold team
For a client, a school, I am doing some new things on dyslexia, and I have found this fine javascript simulating a dyslectic reading: An effect of letters shifting randomly in the text.
However it affects the whole page.
I just copy-pasted the script into a code block (within a column), but have no idea how to confine/restrain it to just the one column?
Please find further info in private content.
Thanks in advance
Hey Carsten,
Can you give us a temporary admin access? so we can check the backend and see the js code, as it might have target all elements.
Best regards,
Nikko
Hi Nikko – please see private content
Thanks :-)
Hi,
I have modified your page, and set the Custom CSS Class on the textblock and put dyslexia-text then the js code I replaced this text:
var textNodes = getTextNodesIn($("*"));
and changed it to:
var textNodes = getTextNodesIn($(".dyslexia-text *"));
this would limit it to the textblock only with the class name. :)
Best regards,
Nikko
Hi Nikko
Wow, it works, thanks a bunch :-)
I do not know much about javascript, but I just looked into what you have been doing, and it actually made sense ;-)
Thanks! The thread may be closed.
Best regards
Hi,
I’m glad you were able to get this solved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon