Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
JQTWEET = // Set twitter username, number of tweets & id/class to append tweets user: 'theresidency' user: 'immbudden' numTweets: 1 // core function of jqtweet $ajax url: 'http://api.twitter.com/1/statuses/user_timeline.json/' type: 'GET' dataType: 'jsonp' data: screen_name: JQTWEETuser include_rts: true count: JQTWEETnumTweets include_entities: true var html = '<div class="tweet">TWEET_TEXT<b><div class="time">AGO</b></div>'; // append tweets into page for var i = 0; i < datalength; i++ switchdataiuserscreen_name case "theresidency": appendTo: '#twit_contain_res .bubble'; break; case "immbudden": appendTo: '#twit_contain_mb .bubble'; break; $JQTWEETappendToappend htmlreplace'TWEET_TEXT'JQTWEETifycleandataitext replace/USER/gdataiuserscreen_name replace'AGO'JQTWEETtimeAgodataicreated_at replace/ID/gdataiid_str ; ; /** * relative time calculator FROM TWITTER * @param {string} twitter date string returned from Twitter API * @return {string} relative time like "2 minutes ago" */ var rightNow = ; var then = dateString; if $browsermsie // IE can't parse these crazy Ruby dates then = DateparsedateStringreplace/( \+)/' UTC$1'; var diff = rightNow - then; var second = 1000 minute = second * 60 hour = minute * 60 day = hour * 24 week = day * 7; if isNaNdiff || diff < 0 return ""; // return blank string if unknown if diff < second * 2 // within 2 seconds return "right now"; if diff < minute return Mathfloordiff / second + " seconds ago"; if diff < minute * 2 return "about 1 minute ago"; if diff < hour return Mathfloordiff / minute + " minutes ago"; if diff < hour * 2 return "about 1 hour ago"; if diff < day return Mathfloordiff / hour + " hours ago"; if diff > day && diff < day * 2 return "yesterday"; if diff < day * 365 return Mathfloordiff / day + " days ago"; else return "over a year ago"; // timeAgo() /** * The Twitalinkahashifyer! * http://www.dustindiaz.com/basement/ify.html * Eg: * ify.clean('your tweet text'); */ ify: return tweetreplace/\b(((https*\:\/\/)|www\.)[^\"\']+?)(([!?,.\)]+)?(\s|$))/gfunctionlinkm1m2m3m4 var http = m2match/w/ ? 'http://' : ''; return '<a class="twtr-hyperlink" target="_blank" href="' + http + m1 + '">' + m1length > 25 ? m1substr024 + '...' : m1 + '</a>' + m4; ; return tweetreplace/\B[@@]([a-zA-Z0-9_]{1,20})/gfunctionmusername return '<a target="_blank" class="twtr-atreply" href="http://twitter.com/intent/user?screen_name=' + username + '">@' + username + '</a>'; ; return tweetreplace/\B[@@]([a-zA-Z0-9_]{1,20}\/\w+)/gfunctionmuserlist return '<a target="_blank" class="twtr-atreply" href="http://twitter.com/' + userlist + '">@' + userlist + '</a>'; ; return tweetreplace/(^|\s+)#(\w+)/gifunctionmbeforehash return before + '<a target="_blank" class="twtr-hashtag" href="http://twitter.com/search?q=%23' + hash + '">#' + hash + '</a>'; ; return thishashthisatthislistthislinktweet; // ify ; $windowload // start jqtweet! JQTWEETloadTweets; ; |