• Resolved ellmann creative

    (@ellmanncreative)


    Hey.

    How would I go about adding JS to the offline page? Whenever I try, the SCRIPT tags get stripped and I’m left with plain JS on the website.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ellmann creative

    (@ellmanncreative)

    What I’m trying to do is create a soft redirect from the offline page. I’m using it to mask a staging site, so I would like people to be redirected to the live site, but without invoking 3xx.

    Plugin Author WebFactory

    (@webfactory)

    Hi,
    Sorry, but it’s not possible to add SCRIPT tags unless you modify the plugin source.

    Thread Starter ellmann creative

    (@ellmanncreative)

    Would it be possible to request this functionality? Perhaps a second field that would take JS code, and wrap it in <script> tags?

    Plugin Author WebFactory

    (@webfactory)

    I’ll add it to our to-do list 👍. But nobody requested this before, so I can’t guarantee when we’ll add it.

    Thread Starter ellmann creative

    (@ellmanncreative)

    Sure thing.

    Alternatively, you could add fields for “soft redirect” or “javascript redirect” to another URL, if you feel that allowing JavaScript outright could be a security issue. Something like Redirect to url: and Timeout in seconds: would probably work just as well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add Javascript?’ is closed to new replies.