Jump to content

TheOneTrueVlad

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About TheOneTrueVlad

  • Rank
    Newbie

Contact Methods

  • Website URL
    http://www.theonetruevlad.co.uk
  1. I have 3 variants of code that all do the same thing. Is there a best practice for choosing? Is it just appearance and ease of following or is there a technical reason to use one over the other? /*if ( ($(window).width() < 535) || ($(window).height() < 700) ) { if (scrollTop > stickyNavTop) { jQuery('body').addClass('stickynav'); } else { jQuery('body').removeClass('stickynav'); } } else { jQuery('body').removeClass('stickynav'); } if ( (scrollTop > stickyNavTop) && ( (($(window).height() < 700) || ($(window).width() < 535)) )) { jQue
×
×
  • Create New...