Forums

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

Home Forums JavaScript Jquery not working in mobile browser

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38208
    doua
    Member

    So I’m fixing the headers on this site to use jquery animation instead of flash. I got it to work, but nothing shows up on mobile browsers. I’m a jquery newbie.

    Here’s thecode:

    var h1 = $('div#title h1');

    h1.hide().contents().each(function() {
    var words;
    if (this.nodeType === 3) {
    words = ' ' + this.data.split(/s+/).join(' ') + ' ';
    $(this).replaceWith(words);
    } else if (this.nodeType === 1) {
    this.innerHTML = ' ' + this.innerHTML.split(/s+/).join(' ') + ' ';
    }
    });

    h1.find('span').hide().each(function() {
    if( !$.trim(this.innerHTML) ) {
    $(this).remove();
    }
    });

    h1.show().find('span').each(function(i) {
    $(this).delay(800 * i).fadeIn(400);
    });

    and


    Healthcare
    Is Our DNA.


    Here’s where I was testing. http://www.chartisgroup.com/about2.php Thanks in advance!

    #103464
    doua
    Member

    Could it be the webfont?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.