jQuery: JSON api is not working
<p>I'm having a issue to get my twitter status to work properly. If you go to <a href="http://www.nascarspeedpark.com/nc.aspx" rel="nofollow">http://www.nascarspeedpark.com/nc.aspx</a> and look at the right side of the page you'll see latest tweets.  The link next to the Avatar is not working.</p>

<p>The code looks right to me. It seems as though the code is calling the twitter api properly. </p>

<pre><code>function relative_time(date) {
  var relative_to = (arguments.length &gt; 1) ? arguments[1] : new Date();
  var delta = parseInt((relative_to.getTime() - date) / 1000, 10);
  var r = '';
  if (delta &lt; 60) {
    r = delta + ' seconds ago';
  } else if(delta &lt; 120) {
    r = 'a minute ago';
  } else if(delta &lt; (45*60)) {
    r = (parseInt(delta / 60, 10)).toString() + ' minutes ago';
  } else if(delta &lt; (2*60*60)) {
    r = 'an hour ago';
  } else if(delta &lt; (24*60*60)) {
    r = '' + (parseInt(delta / 3600, 10)).toString() + ' hours ago';
  } else if(delta &lt; (48*60*60)) {
    r = 'a day ago';
  } else {
    r = (parseInt(delta / 86400, 10)).toString() + ' days ago';
  }
  return 'about ' + r;
}

function build_url() {
  var proto = ('https:' == document.location.protocol ? 'https:' : 'http:');
  var count = (s.fetch === null) ? s.count : s.fetch;
  if (s.list) {
    return proto+"//"+s.twitter_api_url+"/1/"+s.username[0]+"/lists/"+s.list+"/statuses.json?per_page="+count+"&amp;callback=?";
  } else if (s.favorites) {
    return proto+"//"+s.twitter_api_url+"/favorites/"+s.username[0]+".json?count="+s.count+"&amp;callback=?";
  } else if (s.query === null &amp;&amp; s.username.length == 1) {
    return proto+'//'+s.twitter_api_url+'/1/statuses/user_timeline.json?screen_name='+s.username[0]+'&amp;count='+count+(s.retweets ? '&amp;include_rts=1' : '')+'&amp;callback=?';
  } else {
    var query = (s.query || 'from:'+s.username.join(' OR from:'));
    return proto+'//'+s.twitter_search_url+'/search.json?&amp;q='+encodeURIComponent(query)+'&amp;rpp='+count+'&amp;callback=?';
  }
}
</code></pre>
