New Landing How can we help? Atelier custom js doesn't work with safari?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Atelier
  • #253602
    solidsn2004
    Member
    Post count: 208

    Hi,

    I have posted a problem I had with 2 third party plugins before but unfortunately it was outside the scope of your support.
    My problem was that I couldn’t display the 2 plugins in the product page next to each other. I tried so many different css codes but it wasn’t working. So I’ve finally found a solution with custom js.

    The problem is that the custom js doesn’t work in Safari browser but works with all other browsers.

    Could you load the page in both safari and another browser and see the issue?
    The custom js code I’ve used is the one below:

    document.onreadystatechange = function(){
         if(document.readyState === 'complete'){
             setTimeout(function () {
                 var x = document.getElementsByClassName("mspc-wrapper");
                 x[0].style.styleFloat = "none";
                 x[0].style.cssFloat = "none";
             }, 3000);
         }
    }

    Could you please let me know if it’s an issue with the Safari browser?

    Thanks in advance.

    #253613
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Please ask this question on https://stackoverflow.com as this is outside the scope of support unfortunalty.

    Thanks.

    #253619
    solidsn2004
    Member
    Post count: 208

    Cheers David,

    I just did.

    #253621
    David Martin – Support
    Moderator
    Post count: 20834

    Great, hope that helps you.

    Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register