1 2// 'stacks' is the Stacks global object. 3// All of the other Stacks related Javascript will 4// be attatched to it. 5var stacks = {}; 6 7 8// this call to jQuery gives us access to the globaal 9// jQuery object. 10// 'noConflict' removes the '$' variable. 11// 'true' removes the 'jQuery' variable. 12// removing these globals reduces conflicts with other 13// jQuery versions that might be running on this page. 14stacks.jQuery = jQuery.noConflict(true); 15 16// Javascript for stacks_in_907_page1 17// --------------------------------------------------------------------- 18 19// Each stack has its own object with its own namespace. The name of 20// that object is the same as the stack's id. 21stacks.stacks_in_907_page1 = {}; 22 23// A closure is defined and assigned to the stack's object. The object 24// is also passed in as 'stack' which gives you a shorthand for referring 25// to this object from elsewhere. 26stacks.stacks_in_907_page1 = (function(stack) { 27 28/*! http://tinynav.viljamis.com v1.1 by @viljamis */ 29(function ($, window, i) { 30 $.fn.tinyNav = function (options) { 31 32 // Default settings 33 var settings = $.extend({ 34 'active' : 'selected', // String: Set the "active" class 35 'header' : "NAV MENU", // String: Specify text for "header" and show header instead of the active item 36 'label' : '' // String: sets the <label> text for the <select> (if not set, no label will be added) 37 }, options); 38 39 return this.each(function () { 40 41 // Used for namespacing 42 i++; 43 44 var $nav = $(this), 45 // Namespacing 46 namespace = 'tinynav', 47 namespace_i = namespace + i, 48 l_namespace_i = '.l_' + namespace_i, 49 $select = $('<select/>').attr("id", namespace_i).addClass(namespace + ' ' + namespace_i); 50 51 if ($nav.is('ul,ol')) { 52 53 if (settings.header !== '') { 54 $select.append( 55 $('<option/>').text(settings.header) 56 ); 57 } 58 59 // Build options 60 var options = ''; 61 62 $nav 63 .addClass('l_' + namespace_i) 64 .find('a') 65 .each(function () { 66 options += '<option value="' + $(this).attr('href') + '">'; 67 var j; 68 for (j = 0; j < $(this).parents('ul, ol').length - 1; j++) { 69 options += '- '; 70 } 71 options += $(this).text() + '</option>'; 72 }); 73 74 // Append options into a select 75 $select.append(options); 76 77 // Select the active item 78 if (!settings.header) { 79 $select 80 .find(':eq(' + $(l_namespace_i + ' li') 81 .index($(l_namespace_i + ' li.' + settings.active)) + ')') 82 .attr('selected', true); 83 } 84 85 // Change window location 86 $select.change(function () { 87 window.location.href = $(this).val(); 88 }); 89 90 // Inject select 91 $(l_namespace_i).after($select); 92 93 // Inject label 94 if (settings.label) { 95 $select.before( 96 $("<label/>") 97 .attr("for", namespace_i) 98 .addClass(namespace + '_label ' + namespace_i + '_label') 99 .append(settings.label) 100 ); 101 } 102 103 } 104 105 }); 106 107 }; 108})(jQuery, this, 0); 109 return stack; 110})(stacks.stacks_in_907_page1); 111 112 113// Javascript for stacks_in_348_page1 114// --------------------------------------------------------------------- 115 116// Each stack has its own object with its own namespace. The name of 117// that object is the same as the stack's id. 118stacks.stacks_in_348_page1 = {}; 119 120// A closure is defined and assigned to the stack's object. The object 121// is also passed in as 'stack' which gives you a shorthand for referring 122// to this object from elsewhere. 123stacks.stacks_in_348_page1 = (function(stack) { 124 125 // When jQuery is used it will be available as $ and jQuery but only 126 // inside the closure. 127 var jQuery = stacks.jQuery; 128 var $ = jQuery; 129 130/* 131 * Lifestream Stack By WeaverAddons.com 132 * Version 2.0.0 133 * 134 * Visit http://www.weaveraddons.com for more information on how to use this stack in RapidWeaver. 135 * 136 */ 137/* 138 * rfc3339date.js version 0.1.3 139 * 140 * Adds ISO 8601 / RFC 3339 date parsing to the Javascript Date object. 141 * Usage: 142 * var d = Date.parseISO8601( "2010-07-20T15:00:00Z" ); 143 * var d = Date.parse( "2010-07-20T15:00:00Z" ); 144 * Tested for compatibilty/coexistence with: 145 * - jQuery [http://jquery.com] 146 * - datejs [http://www.datejs.com/] 147 * 148 * Copyright (c) 2010 Paul GALLAGHER http://tardate.com 149 * Licensed under the MIT license: 150 * http://www.opensource.org/licenses/mit-license.php 151 * 152 */ 153/*! 154 * jQuery Templates Plugin 1.0.0pre 155 * http://github.com/jquery/jquery-tmpl 156 * Requires jQuery 1.4.2 157 *
158 * Copyright Software Freedom Conservancy, Inc. 159 * Dual licensed under the MIT or GPL Version 2 licenses. 160 * http://jquery.org/license 161 */ 162/*! 163 * jQuery Lifestream Plug-in 164 * @version 0.3.2 165 * Show a stream of your online activity 166 * 167 * Copyright 2011, Christian Vuerings - http://denbuzze.com 168 */ 169/* 170 * jQuery - Easy Ticker plugin - v1.0 171 * http://www.aakashweb.com/ 172 * Copyright 2012, Aakash Chakravarthy 173 * Released under the MIT License. 174 */ 175 function escapeHTML(a){return $("<div/>").text(a).html()} 176$.fn.easyTicker||function(a){a.fn.easyTicker=function(b){var b=a.extend({easing:"swing",speed:"slow",interval:2E3,height:"auto",visible:0,mousePause:1,controls:{up:"",down:"",toggle:""}},b),e=null;a("body");var c=a(b.controls.up),d=a(b.controls.down),n=a(b.controls.toggle);b.move>b.visible&&(b.move=b.visible);b.speed>b.interval-100&&(b.speed=b.interval-100);var f=function(c,e){if(c.is(":visible")){var d=":lt("+b.move+")",f=a(e).children(d),g=0;f.each(function(){g+=a(this).outerHeight(!0)});a(e).stop(!0, 177!0).animate({top:"-="+g+"px"},b.speed,b.easing,function(){f.hide().appendTo(e).show();a(e).css("top",0);0!=b.visible&&"auto"==b.height&&s(c,e,!0)})}},r=function(a,c,d){clearInterval(e);if(0==n.length||n.hasClass("et-run"))e=setInterval(function(){f(a,c);r(a,c,!1)},b.interval+(!d?b.speed:0))},s=function(c,e,d){var f=0;a(e).children(":lt("+b.visible+")").each(function(){f+=a(this).outerHeight(!0)});0!=f&&(f-=b.divider,d?c.stop(!0,!0).animate({height:f},b.speed):c.stop(!0,!0).css("height",f))},u=function(b, 178c){var e=0,d=b.css("display");b.css("display","block");a(c).children().each(function(){e+=a(this).outerHeight(!0)});b.css("display",d);return e};return this.each(function(){var j=a(this),l=j.children(":first-child");l.children().css("margin",0).children().css("margin",0);j.css({position:"relative",height:"auto"==b.height?u(j,l):b.height,overflow:"hidden"});l.css({position:"absolute",margin:0}).children().css("margin",0);0!=b.visible&&"auto"==b.height&&s(j,l,!1);n.addClass("et-run");r(j,l,!0);1==b.mousePause&& 179j.mouseover(function(){clearInterval(e)}).mouseleave(function(){r(j,l,!1)});n.live("click",function(){a(this).hasClass("et-run")?(clearInterval(e),a(this).removeClass("et-run")):(a(this).addClass("et-run"),r(j,l,!1))});c.live("click",function(){f(j,l,"up")});d.live("click",function(){f(j,l,"down")})})}}(jQuery); 180if(!twitterFetcher)var twitterFetcher=function(){return{realCallback:null,fetch:function(a,b,e){realCallback=e;e=document.createElement("script");e.type="text/javascript";e.src="http://cdn.syndication.twimg.com/widgets/timelines/"+a+"?&lang=en&callback=stacks."+b+".twitterFetcher.callback&suppress_response_codes=true&rnd="+Math.random();document.getElementsByTagName("head")[0].appendChild(e)},callback:function(a){realCallback(a)}}}(); 181Number.prototype.toPaddedString=function(a,b){var e=this.toString();for("undefined"==typeof b&&(b="0");e.length<a;)e=b+e;return e}; 182Date.prototype.toRFC3339UTCString=function(a,b){var e=a?"":"-",c=a?"":":",d=this.getUTCFullYear().toString(),d=d+(e+(this.getUTCMonth()+1).toPaddedString(2)),d=d+(e+this.getUTCDate().toPaddedString(2)),d=d+("T"+this.getUTCHours().toPaddedString(2)),d=d+(c+this.getUTCMinutes().toPaddedString(2)),d=d+(c+this.getUTCSeconds().toPaddedString(2));!b&&0<this.getUTCMilliseconds()&&(d+="."+this.getUTCMilliseconds().toPaddedString(3));return d+"Z"}; 183Date.prototype.toRFC3339LocaleString=function(a,b){var e=a?"":"-",c=a?"":":",d=this.getFullYear().toString(),d=d+(e+(this.getMonth()+1).toPaddedString(2)),d=d+(e+this.getDate().toPaddedString(2)),d=d+("T"+this.getHours().toPaddedString(2)),d=d+(c+this.getMinutes().toPaddedString(2)),d=d+(c+this.getSeconds().toPaddedString(2));!b&&0<this.getMilliseconds()&&(d+="."+this.getMilliseconds().toPaddedString(3));e=-this.getTimezoneOffset();d=d+(0>e?"-":"+")+(e/60).toPaddedString(2);return d+=c+(e%60).toPaddedString(2)}; 184Date.parseRFC3339=function(a){if("string"==typeof a){var b;if(a=a.match(RegExp(/(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)(T)?\s*(\d\d)(:)?(\d\d)?(:)?(\d\d)?([\.,]\d+)?($|Z|([+-])(\d\d)(:)?(\d\d)?)/i))){var e=parseInt(a[1],10),c=parseInt(a[3],10)-1,d=parseInt(a[5],10),n=parseInt(a[7],10),f=a[9]?parseInt(a[9],10):0,r=a[11]?parseInt(a[11],10):0,s=a[12]?1E3*parseFloat("."+a[12].slice(1)):0;a[13]?(b=new Date(0),b.setUTCFullYear(e),b.setUTCMonth(c),b.setUTCDate(d),b.setUTCHours(n),b.setUTCMinutes(f),b.setUTCSeconds(r), 185b.setUTCMilliseconds(s),a[13]&&a[14]&&(e=60*a[15],a[17]&&(e+=parseInt(a[17],10)),e*="-"==a[14]?-1:1,b.setTime(b.getTime()-6E4*e))):b=new Date(e,c,d,n,f,r,s)}return b}};if("function"!=typeof Date.parse)Date.parse=Date.parseRFC3339;else{var oldparse=Date.parse;Date.parse=function(a){var b=Date.parseRFC3339(a);!b&&oldparse&&(b=oldparse(a));return b}} 186function parseDate(a){if("undefined"==typeof a)return!1;var b=new Date(a);isValidDate(b)||(b=Date.parse(a),isValidDate(b)||(a=a.split(" "),b=new Date(Date.parse(a[1]+" "+a[2]+", "+a[5]+" "+a[3]+" UTC"))));return b}function isValidDate(a){return"[object Date]"!==Object.prototype.toString.call(a)?!1:!isNaN(a.getTime())} 187(function(a){function b(p,m,b,c){c={data:c||0===c||!1===c?c:m?m.data:{},_wrap:m?m._wrap:null,tmpl:null,parent:m||null,nodes:[],calls:s,nest:u,wrap:j,html:l,update:y};p&&a.extend(c,p,{nodes:[],parent:m});
187b&&(c.tmpl=b,c._ctnt=c._ctnt||c.tmpl(a,c),c.key=++v,(i.length?w:h)[v]=c);return c}function e(p,m,b){var k,b=b?a.map(b,function(a){return"string"===typeof a?p.key?a.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+g+'="'+p.key+'" $2'):a:e(a,p,a._ctnt)}):p;if(m)return b;b=b.join("");b.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/, 188function(b,m,p,e){k=a(p).get();r(k);m&&(k=c(m).concat(k));e&&(k=k.concat(c(e)))});return k?k:c(b)}function c(b){var m=document.createElement("div");m.innerHTML=b;return a.makeArray(m.childNodes)}function d(b){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+a.trim(b).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g, 189function(b,c,p,e,h,d,g){b=a.tmpl.tag[p];if(!b)throw"Unknown template tag: "+p;p=b._default||[];d&&!/\w$/.test(h)&&(h+=d,d="");h?(h=f(h),g=g?","+f(g)+")":d?")":"",g=d?-1<h.indexOf(".")?h+f(d):"("+h+").call($item"+g:h,d=d?g:"(typeof("+h+")==='function'?("+h+").call($item):("+h+"))"):d=g=p.$1||"null";e=f(e);return"');"+b[c?"close":"open"].split("$notnull_1").join(h?"typeof("+h+")!=='undefined' && ("+h+")!=null":"true").split("$1a").join(d).split("$1").join(g).split("$2").join(e||p.$2||"")+"__.push('"})+ 190"');}return __;")}function n(b,c){b._wrap=e(b,!0,a.isArray(c)?c:[z.test(c)?c:a(c).html()]).join("")}function f(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function r(c){function m(c){function p(a){a+=e;k=i[a]=i[a]||b(k,h[k.parent.key+e]||k.parent)}var m,d=c,k,f;if(f=c.getAttribute(g)){for(;d.parentNode&&1===(d=d.parentNode).nodeType&&!(m=d.getAttribute(g)););if(m!==f){d=d.parentNode?11===d.nodeType?0:d.getAttribute(g)||0:0;if(!(k=h[f]))k=w[f],k=b(k,h[d]||w[d]),k.key=++v,h[v]=k;q&& 191p(f)}c.removeAttribute(g)}else if(q&&(k=a.data(c,"tmplItem")))p(k.key),h[k.key]=k,d=(d=a.data(c.parentNode,"tmplItem"))?d.key:0;if(k){for(m=k;m&&m.key!=d;)m.nodes.push(c),m=m.parent;delete k._ctnt;delete k._wrap;a.data(c,"tmplItem",k)}}var e="_"+q,d,f,i={},j,l,n;j=0;for(l=c.length;j<l;j++)if(1===(d=c[j]).nodeType){f=d.getElementsByTagName("*");for(n=f.length-1;0<=n;n--)m(f[n]);m(d)}}function s(a,b,c,d){if(!a)return i.pop();i.push({_:a,tmpl:b,item:this,data:c,options:d})}function u(b,c,d){return a.tmpl(a.template(b), 192c,d,this)}function j(b,c){var d=b.options||{};d.wrapped=c;return a.tmpl(a.template(b.tmpl),b.data,d,b.item)}function l(b,c){var d=this._wrap;return a.map(a(a.isArray(d)?d.join(""):d).filter(b||"*"),function(a){if(c)a=a.innerText||a.textContent;else{var b;if(!(b=a.outerHTML))b=document.createElement("div"),b.appendChild(a.cloneNode(!0)),b=b.innerHTML;a=b}return a})}function y(){var b=this.nodes;a.tmpl(null,null,null,this).insertBefore(b[0]);a(b).remove()}var t=a.fn.domManip,g="_tmplitem",z=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /, 193h={},w={},x,A={key:0,data:{}},v=0,q=0,i=[];a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){a.fn[b]=function(d){var e=[],d=a(d),g,f,i;g=1===this.length&&this[0].parentNode;x=h||{};if(g&&11===g.nodeType&&1===g.childNodes.length&&1===d.length)d[c](this[0]),e=this;else{f=0;for(i=d.length;f<i;f++)q=f,g=(0<f?this.clone(!0):this).get(),a(d[f])[c](g),e=e.concat(g);q=0;e=this.pushStack(e,b,d.selector)}d=x;x=null;a.tmpl.complete(d); 194return e}});a.fn.extend({tmpl:function(b,c,d){return a.tmpl(this[0],b,c,d)},tmplItem:function(){return a.tmplItem(this[0])},template:function(b){return a.template(b,this[0])},domManip:function(b,c,d,e){if(b[0]&&a.isArray(b[0])){for(var g=a.makeArray(arguments),f=b[0],i=f.length,j=0,n;j<i&&!(n=a.data(f[j++],"tmplItem")););n&&q&&(g[2]=function(b){a.tmpl.afterManip(this,b,d)});t.apply(this,g)}else t.apply(this,arguments);q=0;x||a.tmpl.complete(h);return this}});a.extend({tmpl:function(c,d,g,f){var c= 195'<span class="lifestream-body">'+c+"</span>",i=!f;if(i)f=A,c=a.template[c]||a.template(null,c),w={};else if(!c)return c=f.tmpl,h[f.key]=f,f.nodes=[],f.wrapped&&n(f,f.wrapped),a(e(f,null,f.tmpl(a,f)));if(!c)return[];"function"===typeof d&&(d=d.call(f||{}));g&&g.wrapped&&n(g,g.wrapped);d=a.isArray(d)?a.map(d,function(a){return a?b(g,f,c,a):null}):[b(g,f,c,d)];return i?a(e(f,null,d)):d},tmplItem:function(b){var c;for(b instanceof a&&(b=b[0]);b&&1===b.nodeType&&!(c=a.data(b,"tmplItem"))&&(b=b.parentNode);); 196return c||A},template:function(b,c){return c?("string"===typeof c?c=d(c):c instanceof a&&(c=c[0]||{}),c.nodeType&&(c=a.data(c,"tmpl")||a.data(c,"tmpl",d(c.innerHTML))),"string"===typeof b?a.template[b]=c:c):b?"string"!==typeof b?a.template(null,b):a.template[b]||a.template(null,z.test(b)?b:a(b)):null},encode:function(a){return(""+a).split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}});a.extend(a.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"}, 197wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){h= 198{}},afterManip:function(b,c,d){var e=11===c.nodeType?a.makeArray(c.childNodes):1===c.nodeType?[c]:[];d.call(b,c);r(e);q++}})})(jQuery); 199(function(a){a.fn.lifestream||(a.fn.lifestream=function(b){return this.each(function(){var e=a(this),c=jQuery.extend({classname:"lifestream",feedloaded:null,ticker:!1,limit:10,list:[]},b),d=0,n=0,f=[],r=jQuery.extend(!0,{},c),s=null,u=function(b){clearTimeout(s);n++;
199a.merge(f,b);(c.ticker||c.waitUntilLoaded)&&n!=d?c.ticker||(s=setTimeout(j,1500)):j()},j=function(){function d(a){a=parseInt(((new Date).getTime()-a)/1E3);return 60>a?"less than a minute ago":120>a?"about a minute ago":3600>a?parseInt(a/ 20060).toString()+" minutes ago":7200>a?"about an hour ago":86400>a?"about "+parseInt(a/3600).toString()+" hours ago":172800>a?"1 day ago":parseInt(a/86400).toString()+" days ago"}clearTimeout(s);if(!f||!f.length)e.hide();else{e.hasClass("loading")&&e.removeClass("loading");var h="alternate"==c.boxBackground;e.show();f.sort(function(a,b){return b.date-a.date});for(var g=f.length<c.limit?f.length:c.limit,j=0,n=a('<div class="'+c.classname+"-container "+(h?"lifestream-alternate":"")+'"/>');j<g;j++)if(h= 201f[j],h.html){c.showTime&&(!c.showAvatar||!c.putDateTopRight)&&h.html.append(' <span class="lifestream-date">('+d(f[j].date)+")</span>");var l=0==(j+1)%2?"lifestream-even":"lifestream-odd";if(c.showContent&&h.content||c.showEmbeds&&h.media||c.showImages&&h.image)l+=" lifestream-event-full";if(c.hideTitles&&(c.showContent&&h.content||c.showEmbeds&&h.media||c.showImages&&h.image))h.html=a("");var q,l=a('<div class="lifestream-event lifestream-gradient '+l+'"></div>').data("name",h.config.service).data("url", 202h.url||"#").data("time",h.date);q=b.showIcons?a('<div class="lifestream-event-inner lifestream-'+h.config.service+'-icon"></div>').appendTo(l):l;if(h.avatar&&c.showAvatar){var i='<div class="lifestream-social">';c.putDateTopRight&&(i+='<a class="lifestream-date-right lifestream-date" href="'+h.url+'">'+d(f[j].date)+"</a>");i+='<a class="lifestream-user" href="'+h.profile+'"><img class="lifestream-avatar" src="'+h.avatar+'" /><span class="lifestream-fullname">'+h.fullName+"</span></a>";i+='<div class="lifestream-body">'+ 203h.html.html()+"</div>";h.retweet&&(i+='<div class="lifestream-repost">'+h.retweet+"</div>");i+="</div>"}else i=h.html;i=q.append(i);q=!1;if(c.showEmbeds&&h.media){q=!0;var p={display:"block",lineHeight:"0"};c.hideTitles||(p["margin-top"]="10px");c.centerEmbeds&&(p["margin-left"]="auto",p["margin-right"]="auto");i.append(a(h.media).css(p))}if(c.showImages&&(h.image&&!q)&&(!c.showContent||!h.content||!h.imageFromContent))q={display:"block",border:"none",lineHeight:"0"},c.hideTitles||(q["margin-top"]= 204"10px"),c.centerImages&&(q["margin-left"]="auto",q["margin-right"]="auto"),c.linkImages&&(h.image='<a href="'+h.url+'" style="display:block;">'+h.image+"</a>"),i.append(a(h.image).css(q));c.showContent&&h.content&&i.append(a('<div class="lifestream-body-full">'+h.content+'</div><div style="clear:both"></div>'));l.appendTo(n)}e.html(n);a.isFunction(c.feedloaded)&&c.feedloaded();if(c.ticker&&a.fn.lifestream.ticker[c.stackID]&&a.isFunction(a.fn.lifestream.ticker[c.stackID]))a.fn.lifestream.ticker[c.stackID](e)}}; 205e.addClass("loading");if(c.openLinksInNewWindow)e.on("click","a",function(a){window.open(this.href);a.preventDefault();return!1});var l=0,y=c.list.length,t=[];for(delete r.list;l<y;l++){var g=c.list[l];g.showPrefix=c.showPrefix;g.func=g.service.match(/rss/)?"rss":g.service;g.method?g[g.method]&&!g.user&&(g.user=!0):(g.user=a.trim(g.user),!g.user&&g.or&&(g.user=a.trim(g.or),"..."==g.user&&(g.user="")));g.key&&(g.key=a.trim(g.key));a.fn.lifestream.feeds[g.func]&&(a.isFunction(a.fn.lifestream.feeds[g.func])&& 206g.user)&&(d++,t.push(g))}a.each(t,function(b,c){c._settings=r;a.fn.lifestream.feeds[c.func](c,u)});0==t.length&&(0==a("#stacks_in_348_page1-lifestream-error").length?e.html("Please add at least 1 service to the settings area.").removeClass("loading").css({background:"red",color:"white",padding:"3px"}):e.html("").css("background","transparent"))})});a.fn.lifestream.createYqlUrl=function(a){return"http://query.yahooapis.com/v1/public/yql?q=__QUERY__&env=store://datatables.org/alltableswithkeys&format=json".replace("__QUERY__", 207encodeURIComponent(a))};a.fn.lifestream.feeds=a.fn.lifestream.feeds||{};Object.keys||(Object.keys=function(a){if(a!==Object(a))throw new TypeError("Object.keys called on non-object");var e=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&e.push(c);return e})})(jQuery); 208 209 210 211(function(b){b.fn.lifestream.feeds.blogger=function(a,c){a.link="http://"+a.user+".blogspot.com/feeds/posts/default/";b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 212 213 214 215(function(b){b.fn.lifestream.feeds.dailymotion=function(a,c){a.template={item:(a.showPrefix?"uploaded a video ":"")+'<a href="${link}">${title}</a>'};a.link="http://www.dailymotion.com/rss/user/"+a.user;a.noContent=!0;b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 216 217 218(function(b){b.fn.lifestream.feeds.delicious=function(c,e){var f=b.extend({},{bookmarked:(c.showPrefix?"bookmarked ":"")+'<a href="${u}">${d}</a>'},c.template);b.ajax({url:"http://feeds.delicious.com/v2/json/"+c.user,dataType:"jsonp",success:function(a){var g=[],d=0,h;if(a&&a.length&&0<a.length)for(h=a.length;d<h;d++){var i=a[d];g.push({date:parseDate(i.dt),config:c,html:b.tmpl(f.bookmarked,i)})}e(g)},error:function(){e([])}});return{template:f}}})(jQuery); 219 220 221(function(b){b.fn.lifestream.feeds.deviantart=function(a,c){a.template={item:(a.showPrefix?"posted ":"")+'<a href="${link}">${title}</a>'};a.link="http://backend.deviantart.com/rss.xml?q=gallery%3A"+encodeURIComponent(a.user)+"&type=deviation&formatted=1";b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 222 223 224(function(b){b.fn.lifestream.feeds.dribbble=function(c,f){var g=b.extend({},{posted:(c.showPrefix?"posted a shot ":"")+'<a href="${url}">${title}</a>'},c.template);b.ajax({url:"http://api.dribbble.com/players/"+c.user+"/shots",dataType:"jsonp",success:function(d){var h=[],e=0,i;if(d&&d.total)for(i=d.shots.length;e<i;e++){var a=d.shots[e],j='<img src="'+a.image_url+'" width="'+a.width+'" height="'+a.height+'" />';h.push({date:parseDate(a.created_at),config:c,html:b.tmpl(g.posted,a),image:j})}f(h)}, 225error:function(){f([])}});return{template:g}}})(jQuery); 226 227 228 229 230(function(b){b.fn.lifestream.feeds.formspring=function(a,c){a.template={item:(a.showPrefix?"answered a question ":"")+'<a href="${link}">${title}</a>'};a.link="http://www.formspring.me/profile/"+a.user+".rss";b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 231 232 233(function(c){c.fn.lifestream.feeds.forrst=function(d,f){var g=c.extend({},{posted:(d.showPrefix?"posted a ${post_type} ":"")+'<a href="${post_url}">${title}</a>'},d.template);c.ajax({url:"http://forrst.com/api/v2/users/posts?username="+d.user,dataType:"jsonp",success:function(a){var h=[],e=0,i;if(a&&a.resp.length&&0<a.resp.length)for(i=a.resp.length;e<i;e++){var b=a.resp[e],j=b.snaps?'<img src="'+b.snaps.mega_url+'" />':"";h.push({date:parseDate(b.created_at.replace(" ","T")),config:d,html:c.tmpl(g.posted,
234b),image:j,content:b.formatted_description})}f(h)},error:function(){f([])}});return{template:g}}})(jQuery); 235 236 237(function(b){b.fn.lifestream.feeds.foursquare=function(a,c){a.template={item:(a.showPrefix?"checked in @ ":"")+'<a href="${link}">${title}</a>'};a.link="https://feeds.foursquare.com/history/"+a.user+".rss";b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 238 239 240(function(c){c.fn.lifestream.feeds.gimmebar=function(d,f){var g=c.extend({},{bookmarked:(d.showPrefix?"bookmarked ":"")+'<a href="${short_url}">${title}</a>'},d.template);c.ajax({url:"https://gimmebar.com/api/v0/public/assets/"+d.user+".json?jsonp_callback=?",dataType:"json",success:function(a){var a=a.records,h=[],e=0,i;if(a&&a.length&&0<a.length)for(i=a.length;e<i;e++){var b=a[e],j="image"==b.asset_type?'<img src="'+b.content.display+'" />':"";h.push({date:parseDate(1E3*b.date),config:d,html:c.tmpl(g.bookmarked, 241b),image:j,content:b.description})}f(h)},error:function(){f([])}});return{template:g}}})(jQuery); 242 243 244(function(b){b.fn.lifestream.feeds.github=function(d,e){var c=b.extend({},{commitCommentEvent:'commented on <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>',createBranchEvent:'created branch <a href="http://github.com/${status.repo.name}/tree/${status.payload.ref}">${status.payload.ref}</a> at <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>',createRepositoryEvent:'created repository <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>', 245createTagEvent:'created tag <a href="http://github.com/${status.repo.name}/tree/${status.payload.ref}">${status.payload.ref}</a> at <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>',deleteBranchEvent:'deleted branch ${status.payload.ref} at <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>',deleteTagEvent:'deleted tag ${status.payload.ref} at <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>',followEvent:'started following <a href="http://github.com/${status.payload.target.login}">${status.payload.target.login}</a>', 246forkEvent:'forked <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>',gistEvent:'${status.payload.action} gist <a href="http://gist.github.com/${status.payload.gist.id}">${status.payload.gist.id}</a>',issueCommentEvent:'commented on issue <a href="http://github.com/${status.repo.name}/issues/${status.payload.issue.number}">${status.payload.issue.number}</a> on <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>',issuesEvent:'${status.payload.action} issue <a href="http://github.com/${status.repo.name}/issues/${status.payload.issue.number}">${status.payload.issue.number}</a> on <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>', 247pullRequestEvent:'${status.payload.action} pull request <a href="http://github.com/${status.repo.name}/pull/${status.payload.number}">${status.payload.number}</a> on <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>',pushEvent:'pushed to <a href="http://github.com/${status.repo.name}/tree/${status.payload.ref}">${status.payload.ref}</a> at <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>',watchEvent:'started watching <a href="http://github.com/${status.repo.name}">${status.repo.name}</a>'}, 248d.template),h=function(a){if("CommitCommentEvent"===a.type)return b.tmpl(c.commitCommentEvent,{status:a});if("CreateEvent"===a.type&&"branch"===a.payload.ref_type)return b.tmpl(c.createBranchEvent,{status:a});if("CreateEvent"===a.type&&"repository"===a.payload.ref_type)return b.tmpl(c.createRepositoryEvent,{status:a});if("CreateEvent"===a.type&&"tag"===a.payload.ref_type)return b.tmpl(c.createTagEvent,{status:a});if("DeleteEvent"===a.type&&"branch"===a.payload.ref_type)return b.tmpl(c.deleteBranchEvent, 249{status:a});if("DeleteEvent"===a.type&&"tag"===a.payload.ref_type)return b.tmpl(c.deleteTagEvent,{status:a});if("FollowEvent"===a.type)return b.tmpl(c.followEvent,{status:a});
249if("ForkEvent"===a.type)return b.tmpl(c.forkEvent,{status:a});if("GistEvent"===a.type)return"create"===a.payload.action?a.payload.action="created":"update"===a.payload.action&&(a.payload.action="updated"),b.tmpl(c.gistEvent,{status:a});if("IssueCommentEvent"===a.type)return b.tmpl(c.issueCommentEvent,{status:a});if("IssuesEvent"=== 250a.type)return b.tmpl(c.issuesEvent,{status:a});if("PullRequestEvent"===a.type)return b.tmpl(c.pullRequestEvent,{status:a});if("PushEvent"===a.type)return a.payload.ref=a.payload.ref.split("/")[2],b.tmpl(c.pushEvent,{status:a});if("WatchEvent"===a.type)return b.tmpl(c.watchEvent,{status:a})};b.ajax({url:b.fn.lifestream.createYqlUrl('select json.type, json.actor, json.repo, json.payload, json.created_at from json where url="https://api.github.com/users/'+d.user+'/events/public?per_page=100"'),dataType:"jsonp", 251success:function(a){var b=[],c=0,f;if(a.query&&a.query.count&&0<a.query.count)for(f=a.query.count;c<f;c++){var g=a.query.results.json[c].json;b.push({date:parseDate(g.created_at),config:d,html:h(g),url:"https://github.com/"+d.user})}e(b)},error:function(){e([])}});return{template:c}}})(jQuery); 252 253 254 255 256(function(b){b.fn.lifestream.feeds.instapaper=function(a,c){a.template={item:(a.showPrefix?"loved ":"")+'<a href="${link}">${title}</a>'};a.link="http://www.instapaper.com/starred/rss/"+a.user;b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 257 258 259(function(d){d.fn.lifestream.feeds.iusethis=function(b,l){var m=d.extend({},{global:'${action} <a href="${link}">${what}</a> on (${os})'},b.template);d.ajax({url:d.fn.lifestream.createYqlUrl('select * from xml where url="http://iphone.iusethis.com/user/feed.rss/'+b.user+'" or url="http://osx.iusethis.com/user/feed.rss/'+b.user+'" or url="http://win.iusethis.com/user/feed.rss/'+b.user+'"'),dataType:"jsonp",success:function(c){var n=[],i,e,p,a,q,f=0,r,g,j,h,k,s,t=["iPhone","OS X","Windows"];if(c.query&& 260c.query.count&&0<c.query.count&&c.query.results.rss){r=c.query.results.rss.length;h="started using;stopped using;stopped loving;Downloaded;commented on;updated entry for;started loving;registered".split(";");for(q=h.length;f<r;f++)if(s=t[f],i=c.query.results.rss[f].channel.item){e=0;for(p=i.length;e<p;e++){g=i[e];j=g.title.replace(b.user+" ","");for(a=0;a<q;a++)if(-1<j.indexOf(h[a])){k=h[a];break}a=j.split(k);n.push({date:parseDate(g.pubDate),config:b,html:d.tmpl(m.global,{action:k.toLowerCase(), 261link:g.link,what:a[1],os:s})})}}}l(n)},error:function(){l([])}});return{template:m}}})(jQuery); 262 263 264(function(c){c.fn.lifestream.feeds.lastfm=function(d,f){var g=c.extend({},{loved:(d.showPrefix?"loved ":"")+'<a href="${url}">${name}</a> by <a href="${artist.url}">${artist.name}</a>'},d.template);c.ajax({url:c.fn.lifestream.createYqlUrl('select * from xml where url="http://ws.audioscrobbler.com/2.0/user/'+d.user+"/lovedtracks.xml?limit="+d._settings.limit+'"'),dataType:"jsonp",success:function(a){var h=[],e=0,i;if(a.query&&a.query.count&&0<a.query.count&&a.query.results.lovedtracks&&a.query.results.lovedtracks.track){a= 265a.query.results.lovedtracks.track;for(i=a.length;e<i;e++){var b=a[e],k=b.nowplaying?new Date:b.date.uts,j="";b.image&&b.image[2]&&(j='<img src="'+b.image[2].content+'" />');h.push({date:parseDate(parseInt(1E3*k,10)),config:d,html:c.tmpl(g.loved,b),image:j})}}f(h)},error:function(){f([])}});return{template:g}}})(jQuery); 266 267 268 269(function(b){b.fn.lifestream.feeds.mlkshk=function(a,c){a.template={item:(a.showPrefix?"posted ":"")+'<a href="${link}">${title}</a>'};a.link="http://mlkshk.com/user/"+a.user+"/rss";b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 270 271 272(function(b){b.fn.lifestream.feeds.pinboard=function(a,c){a.template={item:(a.showPrefix?"bookmarked ":"")+'<a href="${link}">${title}</a>'};a.link="http://feeds.pinboard.in/rss/u:"+a.user;b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 273 274 275 276(function(b){b.fn.lifestream.feeds.quora=function(a,c){a.template={item:'<a href="${link}">${title}</a>'};a.link="http://www.quora.com/"+a.user+"/rss";b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 277 278 279(function(d){d.fn.lifestream.feeds.reddit=function(f,g){var e=d.extend({},{commented:'<a href="http://www.reddit.com/r/${item.data.subreddit}/comments/${item.data.link_id.substring(3)}/u/${item.data.name.substring(3)}?context=3">commented (${score})</a> in <a href="http://www.reddit.com/r/${item.data.subreddit}">${item.data.subreddit}</a>',created:'<a href="http://www.reddit.com${item.data.permalink}">created new thread (${score})</a> in <a href="http://www.reddit.com/r/${item.data.subreddit}">${item.data.subreddit}</a>'}, 280f.template),i=function(a){var c=a.data.ups-a.data.downs,c={item:a,score:0<c?"+"+c:c};if("t1"===a.kind)return d.tmpl(e.commented,c);if("t3"===a.kind)return d.tmpl(e.created,c)};d.ajax({url:"http://www.reddit.com/user/"+f.user+".json",dataType:"jsonp",jsonp:"jsonp",success:function(a){var c=[],e=0,h;if(a&&a.data&&a.data.children&&0<a.data.children.length)for(h=a.data.children.length;e<h;e++){var b=a.data.children[e];b.data.link_title||(b.data.link_title=b.data.title);f._settings.showContent&&(b.data.body_html? 281b.data.body_html=d("<div />").html(b.data.body_html).text():b.data.selftext_html&&(b.data.body_html=d("<div />").html(b.data.selftext_html).text()));c.push({date:new Date(1E3*b.data.created_utc),config:f,html:i(b),url:"http://reddit.com/user/"+f.user,content:b.data.body_html})}g(c)},error:function(){g([])}});return{template:e}}})(jQuery); 282 283(function(i){i.fn.lifestream.feeds.rss=function(b,g){var l=i.extend({},{item:(b.showPrefix?"posted ":"")+'<a href="${link}">${title}</a>'},b.template);parseRss=function(f){var g=[],j=0,m,e,a;if(f.responseData.feed&&f.responseData.feed.entries){f=f.responseData.feed.entries;for(m=f.length;j<m;j++){a=f[j];var k="",c="",d=null,h="";imageFromContent=!1;if(a.mediaGroups)for(e=0;e<a.mediaGroups[0].contents.length;e++)if(d=a.mediaGroups[0].contents[e],"text/html"==d.type){k='<iframe frameborder="0" width="'+ 284d.width+'" height="'+d.height+'" src="'+d.url+'"></iframe>';break}else if("image"==d.medium){c='<img src="'+d.url+'" width="'+d.width+'" height="'+d.height+'" />';a.content&&-1!=a.content.indexOf(d.url)&&(imageFromContent=!0);break}if((!c||!k)&&a.content&&/<img/i.test(a.content))c=a.content.match(/<img[^>]*>/i)[0],e=c.match(/src=["\']?(.*?)[\'"\s]/i),d=c.match(/width=["\']?(.*?)[\'"\s]/i),c=c.match(/height=["\']?(.*?)[\'"\s]/i),e?(/http/i.test(e[1])||(e[1]="http://"+e[1].replace(/^\/+/,"")),c=d&& 285c?'<img src="'+e[1]+'" width="'+d[1]+'" height="'+c[1]+'" />':'<img src="'+e[1]+'" />',imageFromContent=!0):c="";b._settings.showContent&&(b.noContent?h="":(!a.content&&a.description&&(a.content=a.description),h=/sr
285c="\/\//i.test(a.content)?a.content.replace('src="//','src="http://'):a.content),"<p></p>"==h&&(h=""));if(c&&(/feeds\.feedburner\.com/i.test(c)||/feeds\.wordpress\.com\/[0-9]/i.test(c)))c="";g.push({date:parseDate(a.publishedDate),config:b,html:i.tmpl(l.item,a),media:k,image:c,imageFromContent:imageFromContent, 286content:h})}}return g};!b.link&&(b.user&&!b.user.match(/http/i))&&(b.user="http://"+b.user);i.ajax({dataType:"jsonp",url:"http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num="+b._settings.limit+"&q="+encodeURIComponent(b.link?b.link:b.user),success:function(b){g(parseRss(b))},error:function(){g([])}});return{template:l}}})(jQuery); 287 288 289(function(b){b.fn.lifestream.feeds.slideshare=function(a,c){a.template={item:(a.showPrefix?"uploaded a presentation ":"")+'<a href="${link}">${title}</a>'};a.link="http://www.slideshare.net/rss/user/"+a.user;b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 290 291 292(function(b){b.fn.lifestream.feeds.snipplr=function(a,c){a.template={item:(a.showPrefix?"posted a snippet ":"")+'<a href="${link}">${title}</a>'};a.link="http://snipplr.com/rss/users/"+a.user;b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 293 294 295(function(f){f.fn.lifestream.feeds.stackoverflow=function(g,h){var i=f.extend({},{global:'<a href="${link}">${text}</a> - ${title}'},g.template),j=function(a){var c="",b="",d="",e="http://stackoverflow.com/users/"+g.user;if("badge"===a.timeline_type)c="was "+a.action+" the '"+a.description+"' badge",b=a.detail,d=e+"?tab=reputation";else if("comment"===a.timeline_type)c="commented on",b=a.description,d="http://stackoverflow.com/questions/"+a.post_id,content=a.detail;else if("revision"===a.timeline_type|| 296"accepted"===a.timeline_type||"askoranswered"===a.timeline_type)c="askoranswered"===a.timeline_type?a.action:a.action+" "+a.post_type,b=a.detail||a.description||"",d="http://stackoverflow.com/questions/"+a.post_id;return{link:d,title:b,text:c}};f.ajax({url:"http://api.stackoverflow.com/1.1/users/"+g.user+"/timeline?jsonp",dataType:"jsonp",jsonp:"jsonp",success:function(a){var c=[],b=0,d;if(a&&a.total&&0<a.total&&a.user_timelines)for(d=a.user_timelines.length;b<d;b++){var e=a.user_timelines[b],k="comment"== 297e.timeline_type?e.detail:"";c.push({date:parseDate(1E3*e.creation_date),config:g,html:f.tmpl(i.global,j(e)),content:k})}h(c)},error:function(){h([])}});return{template:i}}})(jQuery); 298 299 300 301 302 303 304 305(function(h){h.fn.lifestream.feeds.twitter=function(c,i){template=h.extend({},{posted:"{{html tweet}}"},c.template);linkify=function(b){return b.replace(/[a-z]+:\/\/[a-z0-9\-_]+\.[a-z0-9\-_:~%&\?\/.=]+[^:\.,\)\s*$]/ig,function(b){return'<a href="'+b+'">'+(50<b.length?b.substr(0,49)+"...":b)+"</a>"}).replace(/(^|[^\w]+)\@([a-zA-Z0-9_]{1,15})/g,function(b,f,c){return f+'<a href="http://twitter.com/'+c+'">@'+c+"</a>"}).replace(/(^|[^\w'"]+)\#([a-zA-Z0-9à åÃäÃöÃøÃæÃéÃèÃüÃêÃûÃî_]+)/g,function(b,c,g){return c+ 306'<a href="http://search.twitter.com/search?q=%23'+ +g+'">#'+g+"</a>"})};linkify_entities=function(b){if(!b.entities)return escapeHTML(b.text);var c={};
306h.each(b.entities.urls,function(b,a){c[a.indices[0]]=[a.indices[1],function(){return"<a href='"+escapeHTML(a.url)+"'>"+escapeHTML(a.display_url)+"</a>"}]});h.each(b.entities.hashtags,function(a,b){c[b.indices[0]]=[b.indices[1],function(a){return"<a href='http://twitter.com/search?q="+escape("#"+b.text)+"'>"+escapeHTML(a)+"</a>"}]});h.each(b.entities.user_mentions, 307function(a,b){c[b.indices[0]]=[b.indices[1],function(a){return"<a title='"+escapeHTML(b.name)+"' href='http://twitter.com/"+escapeHTML(b.screen_name)+"'>"+escapeHTML(a)+"</a>"}]});for(var f="",g=0,d=0,d=0;d<b.text.length;++d){var a=c[d];if(a){var e=a[0],a=a[1];d>g&&(f+=escapeHTML(b.text.substring(g,d)));f+=a(b.text.substring(d,e));d=e-1;g=e}}d>g&&(f+=escapeHTML(b.text.substring(g,d)));return f};parseTwitter=function(b,i){if(i){var f=[],g=0,d,a;if(b&&0<b.length)for(d=b.length;g<d;g++){a=b[g];if(a.retweeted_status)var e= 308"http://twitter.com/#!/"+a.retweeted_status.user.screen_name,j=e+"/statuses/"+a.id_str;else e="http://twitter.com/#!/"+a.user.screen_name,j=e+"/statuses/"+a.id_str;a.text=linkify_entities(a);c._settings.showAvatar&&a.retweeted_status&&(a.text=a.text.replace(RegExp("^RT <a[^>]*>@"+a.retweeted_status.user.screen_name+"</a>:s*"),""));f.push({date:parseDate(a.created_at),config:c,html:h.tmpl(template.posted,{tweet:a.text+(!c._settings.showAvatar?' <a href="'+j+'">#</a>':""),complete_url:j}),avatar:a.retweeted_status? 309a.retweeted_status.user.profile_image_url:a.user.profile_image_url,fullName:a.retweeted_status?a.retweeted_status.user.name:a.user.name,username:a.retweeted_status?"@"+a.retweeted_status.user.screen_name:"@"+a.user.screen_name,retweet:a.retweeted_status?"Retweeted":"",url:j,profile:e});if(f.length>=c._settings.count)break}}else f=[],b&&b.body&&h(b.body).find("li.tweet").each(function(){var a=h(this),b=a.find("a.permalink").attr("href"),d=a.find("span.p-nickname").text(),g=a.find(".retweet-credit").length? 310"Retweeted":"",e=a.find(".e-entry-title").find(".tco-ellipsis").remove().end().html(),e=e.replace(/<b[^>]*>(.*?)<\/b>/gi,function(a,b){return b}).replace(/class=".*?"|data-query-source=".*?"|dir=".*?"|rel=".*?"/gi,"");c._settings.showAvatar||(g&&(e='RT <a href="http://twitter.com/'+d+'">'+d+"</a>: "+e),e+=' <a href="'+b+'">#</a>');f.push({date:parseDate(a.find("time").attr("datetime")),config:c,html:h.tmpl(template.posted,{tweet:e,complete_url:b}),avatar:a.find("img.avatar").attr("src"),fullName:a.find("span.p-name").text(), 311username:d,url:b,profile:a.find("a.profile").attr("href"),retweet:g})});return f};"widget"==c.method?(c.widget=h.trim(c.widget),isNaN(c.widget)?i([]):twitterFetcher.fetch(c.widget,c._settings.stackID,function(b){i(parseTwitter(b,!1))})):"php"==c.method?i(parseTwitter(c.data,!0)):h.ajax({url:"http://query.yahooapis.com/v1/public/yql?q="+encodeURIComponent('select * from html where url="https://twitter.com/'+c.user+'" and compat="html5" and xpath=\'//div[contains(concat(" ",@class," ")," js-stream-tweet ")] \''), 312dataType:"text",success:function(b){i(parseTwitter(b.replace(/(\r\n|\n|\r)/gm,"").replace(/>\s+</gm,"><").replace(/\s+/gm," "),!1))},error:function(){i([])}});return{template:template}}})(jQuery); 313 314 315 316 317(function(b){b.fn.lifestream.feeds.wordpress=function(a,c){a.link=0===a.user.indexOf("http://")?-1==a.user.indexOf("/feed")?a.user+"/feed":a.user:a.user.match(/wordpress\.com/i)?"http://"+a.user+"/feed":"http://"+a.user+".wordpress.com/feed";b.fn.lifestream.feeds.rss(a,c)}})(jQuery); 318 319 320 321$(document).ready(function () { 322 $("#stacks_in_348_page1container").lifestream({ 323 stackID: 'stacks_in_348_page1', 324 limit: 10, 325 waitUntilLoaded: true, 326 showTime: true, 327 openLinksInNewWindow: true, 328 showPrefix: true, 329 showMedia: 0, 330 showImages: 0 == 1, 331 showEmbeds: 0 == 2, 332 showContent: '0' == 'False' ? 0 : ('0' == 'True' ? 1 : 0), 333 boxBackground: 'solid', 334 roundedCorners: 5, 335 borderWidth: 1, 336 centerEmbeds: 0, 337 centerImages: 0, 338 linkImages: 0, 339 hideTitles: (0 == 2), 340 boxType: "separate", 341 showAvatar: 0, 342 putDateTopRight: 0, 343 showIcons: ('icon' == 'icon' ? true : false), 344 ticker: 0, 345 list: [ 346 {service: "twitter", user: "", php: "", widget: "508825648849113088", data: twitterDatastacks_in_348_page1, method: "widget" }, 347 {service: "facebook", user: "", "key": $.trim("")}, 348 {service: "tumblr", user: "" }, 349 {service: "youtube", user: "" }, 350 {service: "vimeo", user: "" }, 351 {service: "flickr", user: "" }, 352 {service: "bitly", user: "" }, 353 {service: "appnet", user: "" }, 354 {service: "blogger", user: "", or: $('#blogger_stacks_in_348_page1').text() }, 355 {service: "citeulike", user: "" }, 356 {service: "dailymotion", user: "", or: $('#dailymotion_stacks_in_348_page1').text() }, 357 {service: "delicious", user: "", or: $('#delicious_stacks_in_348_page1').text() }, 358 {service: "deviantart", user: "", or: $('#deviantart_stacks_in_348_page1').text() }, 359 {service: "dribbble", user: "", or: $('#dribbble_stacks_in_348_page1').text() }, 360 {service: "formspring", user: "", or: $('#formspring_stacks_in_348_page1').text() }, 361 {service: "forrst", user: "", or: $('#forrst_stacks_in_348_page1').text() }, 362 {service: "foursquare", user: "", or: $('#foursquare_stacks_in_348_page1').text() }, 363 {service: "gimmebar", user: "" }, 364 {service: "github", user: "", or: $('#github_stacks_in_348_page1').text() }, 365 {service: "googleplus", user: "", "key": "" }, 366 {service: "heello", user: "", "key": ""}, 367 {service: "hypem", user: "" }, 368 {service: "instapaper", user: "", or: $('#instapaper_stacks_in_348_page1').text() }, 369 {service: "iusethis", user: "", or: $('#iusethis_stacks_in_348_page1').text() }, 370 {service: "lastfm", user: "", or: $('#lastfm_stacks_in_348_page1').text() }, 371 {service: "librarything", user: "" }, 372 {service: "mlkshk", user: "", or: $('#mlkshk_stacks_in_348_page1').text() }, 373 {service: "pinboard", user: "", or: $('#pinboard_stacks_in_348_page1').text() }, 374 {service: "pinterest", user: "" }, //feed://pinterest.com/[username]/feed.rss 375 {service: "quora", user: ""}, 376 {service: "reddit", user: "", or: $('#reddit_stacks_in_348_page1').text() }, 377 {service: "slideshare", user: "", or: $('#slideshare_stacks_in_348_page1').text() }, 378 {service: "snipplr", user: "", or: $('#snipplr_stacks_in_348_page1').text() }, 379 {service: "stackoverflow", user: "", or: $('#stackoverflow_stacks_in_348_page1').text() }, 380 {service: "wikipedia", user: "" }, 381 {service: "wordpress", user: "", or: $('#wordpress_stacks_in_348_page1').text() }, 382 {service: "rss_1", user: "", or: $('#rss_stacks_in_348_page1').text() }, 383 {service: "rss_2", user: "", or: $('#rss_2_stacks_in_348_page1').text() }, 384 {service: "rss_3", user: "", or: $('#rss_3_stacks_in_348_page1').text() }, 385 {service: "rss_4", user: "", or: $('#rss_4_stacks_in_348_page1').text() }, 386 {service: "rss_5", user: "", or: $('#rss_5_stacks_in_348_page1').text() } 387 ] 388 }); 389}); 390 391$.fn.lifestream.ticker = $.fn.lifestream.ticker || {}; 392 393$.fn.lifestream.ticker.stacks_in_348_page1 = function(el) { 394 el.easyTicker({ 395 'visible': 5, 396 'move': 1, 397 'interval': 5.00*1000, 398 'divider': 1, 399 'speed': 2.00*1000 400 }); 401}; 402 403stack.twitterFetcher = twitterFetcher; 404return stack; 405 return stack; 406})(stacks.stacks_in_348_page1); 407 408
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.