title: using .getScript() in combination with a conditional function
body: <p>my if statement doesn't seem to be working. Any thoughts? Essentially with my website I'm using the fullpage.js plugin. If you go to the website, <a href="http://carrotcrunchpvp.comule.com/" rel="nofollow">http://carrotcrunchpvp.comule.com/</a> and inspect element (in chrome) and go right to the next page (Our ethos), it will gain the class active on the end of its HTML identifier. percentagecircles.js is a js file I use for animation. I'm trying to make the percentagecircles.js only run when that page is essentially 'active'...</p>
  
  <pre><code>if ($('#fullpage &gt; div &gt; div.fp-slides &gt; div &gt; div.slide.fp-slide.fp-table').hasClass('active'))
  {
    $.getScript("http://carrotcrunchpvp.comule.com/percentagecircles.js");
  };
  </code></pre>
  
  <p>Any thoughts?</p>