Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript show/hide Reply To: show/hide

#240826
Allie_P
Participant

That’s exactly it!
Thank you very much.

Just a couple of questions though:

  • Would it be too much work to add a “Previous” button? JS is not my forte, so I really can’t tell.
  • If I want to add more divs like:

<div id="MOBILE_FEED_2">...</div>

<div id="MOBILE_FEED_3">...</div>

how do I edit the JS? Can I just add the id? Will I have to copy/paste the whole function for each new div?

  • Can you tell me what this does? Do I need all of it?
    URL_ROOT = 'index.html'
    PAGE_SECTION = 'workbench'
    iOS = '0'
    COUNTRY = 'NETHERLANDS'

    var u = self.location.href
    if (u.indexOf("www.???.com") != -1) {
        window.location.replace(u.replace("www.google.com", "google.com"))
    }
    if (u.indexOf("www.???.com") != -1) {
        window.location.replace(u.replace("www.google.com", "google.com"))
    }

    $(window).bind("load", function() {
        lets_go()
    });

I noticed that I can’t delete it or it would break the whole thing, but changing the address to google made no difference.

Thanks a lot.