// YOU CAN CHANGE THE DYNAMIC VARS ON CALLING THE start method, see the system.js for more information about it.\r
\r
numMSG = 20; // set the number of messages to be show\r
- containerDiv="tweets", // //Set a place holder DIV which will receive the list of tweets example <div id="juitterContainer"></div>\r
+ containerDiv="juitterContainer", // //Set a place holder DIV which will receive the list of tweets example <div id="juitterContainer"></div>\r
loadMSG="Loading messages...", // Loading message, if you want to show an image, fill it with "image/gif" and go to the next variable to set which image you want to use on \r
imgName="loader.gif", // Loading image, to enable it, go to the loadMSG var above and change it to "image/gif"\r
readMore="Read it on Twitter", // read more message to be show after the tweet content\r
readMore=opt.readMore?opt.readMore:readMore;\r
fromID=opt.nameUser?opt.nameUser:nameUser;\r
filterWords=opt.filter;\r
- openLink=opt.openExternalLinks?"target='_self'":"";\r
+ openLink=opt.openExternalLinks?"target='_blank'":"";\r
},\r
start: function(opt) { \r
ultID=0;\r
tultID = item.id;\r
$("<ul></ul>")\r
.attr('id', 'twittList'+ultID)\r
- .attr('class','twittList rounded')\r
+ .attr('class','twittList')\r
.prependTo("#"+contDiv); \r
}\r
if (item.text != "undefined") {\r
\r
var tweet = $.Juitter.filter(item.text);\r
\r
- if(fromID=="image") mHTML="<a href='http://www.twitter.com/"+item.from_user+"'><img src='"+item.profile_image_url+"' alt='"+item.from_user+"' class='juitterAvatar' /></a> "+$.Juitter.textFormat(tweet)+" <a href='" + link + "' class='jRM' "+openLink+"><span class='time'>» "+item.created_at+"</span></a>";\r
- else mHTML="<a href='http://www.twitter.com/"+item.from_user+"'>@"+item.from_user+":</a> "+$.Juitter.textFormat(tweet)+" <a href='" + link + "' "+openLink+"><span class='time'>» "+item.created_at+"</span></a>";\r
+ if(fromID=="image") mHTML="<a href='http://www.twitter.com/"+item.from_user+"'><img src='"+item.profile_image_url+"' alt='"+item.from_user+"' class='juitterAvatar' /></a> "+$.Juitter.textFormat(tweet)+" -| <span class='time'>"+item.created_at+"</span> |- <a href='" + link + "' class='JRM' "+openLink+">"+readMore+"</a>";\r
+ else mHTML="<a href='http://www.twitter.com/"+item.from_user+"'>@"+item.from_user+":</a> "+$.Juitter.textFormat(tweet)+" -| <span class='time'>"+item.created_at+"</span> |- <a href='" + link + "' "+openLink+">"+readMore+"</a>";\r
\r
$("<li></li>") \r
.html(mHTML) \r
arrParam = tempParam.split("+");\r
$.each(arrParam,function(i,item){ \r
regExp=eval('/'+item+'/gi');\r
- newString = new String(''+item+'');\r
+ newString = new String(' <b>'+item+'</b> ');\r
texto = texto.replace(regExp, newString); \r
}); \r
}\r