Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #848822

    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

    #849226

    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

    #849235

    Hi Nikko – please see private content

    Thanks :-)

    #849248

    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

    #849264

    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

    #849325

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Confining javascript to just one column’ is closed to new replies.