New Landing How can we help? Themeforest Theme Support Joyn Tried and failed to add .js script / library

Viewing 6 posts - 16 through 21 (of 21 total)
  • Posted in: Joyn
  • #221685
    bongobong
    Member
    Post count: 184

    Is there something that’s conflicting in the theme do you think?
    I’m trying to get this to work:
    https://github.com/hakimel/css/tree/master/monocle

    But despite doing everything, it’s still not working.
    I’ve put the html here:
    http://the-escalator.com/2015/10/18/scroller-post-test-2-0/
    and done the jquery and the css but nothing is appearing.

    #221688
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Well you have an error in the js of the child theme.
    https://www.dropbox.com/s/cng0iomzoe7scfr/Screenshot%202015-10-19%2017.23.04.png?dl=0

    It seems that it’s looking for a specifically html class called page-wrapper
    To add html to the page use the Swift page builder Raw Html asset.

    ps- Just to let you know that we can’t support customizations, hope you understand.

    -Rui

    #223505
    bongobong
    Member
    Post count: 184

    I’ve almost sorted it. I know this is probably outside of your scope of support but I’m still getting an error; a js library is not being loaded:
    To summarise:
    I found this cool effect called Monocle here
    http://lab.hakim.se/monocle/
    and I’m trying to implement it on a new site here:
    http://the-escalator.com/testy/
    For some reason i don’t think the jquery is loading. I’ve found a codepen that has helped me

    And I’ve tried to add the iscroll it wants ( //cdnjs.cloudflare.com/ajax/libs/iScroll/5.1.1/iscroll-probe.min.js )but it’s not loading I don’t think.
    Any help greatly appreciated.

    #223512
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    If you view your source code, you will see the you are loading both iscroll-probe.min.js and iscroll-probe.js.

    You should not need both. The iscroll-probe.min.js looks to be loading the wrong content so i’d remove that.

    – David.

    #223513
    bongobong
    Member
    Post count: 184

    thanks SO much!
    It’s now just loading the one script I believe: I removed the one you suggested. Still no luck. Do you have any other ideas?

    #223515
    David Martin – Support
    Moderator
    Post count: 20834

    You will also need to add the JS contained within the file script.js that goes with iscroll-probe.js and instructs it how to function.

    If you are not comfortable doing this, I strongly suggest you hire a web developer to assist you.

    -David.

Viewing 6 posts - 16 through 21 (of 21 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