1/* <![CDATA[ */ 2 3var jqu = jQuery.noConflict(); 4 5jqu( function () { 6 7 /* FitVids */ 8 jqu( ".entry-content" ).fitVids(); 9 10} ); 11 12 13/* Twitter feed */ 14(function(jqu){ 15 jqu.fn.lastTwitterMessage = function(username){ 16 var $base = this; 17 if(!username || username == "") return this; // username required 18 var url = "http://twitter.com/statuses/user_timeline.json?callback=?"; 19 jqu.getJSON( url, { count: 10, screen_name: username }, 20 function(data){ 21 if(data && data.length >= 1){ 22 try{ 23 var item = null; 24 for(var i = 0; i < data.length; i++){ 25 if(/^@/i.test(data[i].text)) continue; 26 item = data[i]; break; 27 } 28 if(!item) return; 29 var $tweet = jqu("<p></p>").text(item.text); 30 $tweet.html($tweet.html().replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi,'<a href="$1">$1</a>').replace(/(^|\s)#(\w+)/g,'$1<a href="http://search.twitter.com/search?q=%23$2">#$2</a>').replace(/(^|\s)@(\w+)/g,'$1<a href="http://twitter.com/$2">@$2</a>')) 31 $tweet.append(" <a id=\"followme\" href='http://twitter.com/" + username + "'><strong>" + js_strings.follow_me + "</strong><span class=\"raquo\">»</span></a> ").wrapInner("<span>"); 32 $base.empty().append($tweet).show(); 33 } catch (e) { }; 34 }; 35 }); 36 return this; // Don't break the chain 37 }; 38 39})(jqu); 40 41jqu('#tweet').hide().appendTo(".twitter-feed").lastTwitterMessage(jqu('.twitter-feed').attr('id')); 42 43 44/* ]]> */ 45
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.