Add privacy policy to sate Facebook.
[hermes] / www / js / jquery.juitter.js
old mode 100755 (executable)
new mode 100644 (file)
index 53e29c0..9f12f69
@@ -16,7 +16,7 @@ The Juitter developer shall have no responsability for data loss or damage of an
                // 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
@@ -47,7 +47,7 @@ The Juitter developer shall have no responsability for data loss or damage of an
                        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
@@ -113,7 +113,7 @@ The Juitter developer shall have no responsability for data loss or damage of an
                                                                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
@@ -121,8 +121,8 @@ The Juitter developer shall have no responsability for data loss or damage of an
                                                                \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'>&raquo; "+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'>&raquo; "+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
@@ -172,7 +172,7 @@ The Juitter developer shall have no responsability for data loss or damage of an
                                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