Add privacy policy to sate Facebook.
[hermes] / www / js / system.js
1 $(document).ready(function() {\r
2         $.Juitter.start({\r
3                 searchType:"searchWord", // needed, you can use "searchWord", "fromUser", "toUser"\r
4                 searchObject:"iPhone,apple,ipod", // needed, you can insert a username here or a word to be searched for, if you wish multiple search, separate the words by comma.\r
5 \r
6                 // The values below will overwrite the ones on the Juitter default configuration. \r
7                 // They are optional here.\r
8                 // I'm changing here as a example only\r
9                 lang:"en", // restricts the search by the given language\r
10                 live:"live-15", // the number after "live-" indicates the time in seconds to wait before request the Twitter API for updates.\r
11                 placeHolder:"juitterContainer", // Set a place holder DIV which will receive the list of tweets example <div id="juitterContainer"></div>\r
12                 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
13                 imgName: "loader.gif", // Loading image, to enable it, go to the loadMSG var above and change it to "image/gif"\r
14                 total: 20, // number of tweets to be show - max 100\r
15                 readMore: "Read it on Twitter", // read more message to be show after the tweet content\r
16                 nameUser:"image", // insert "image" to show avatar of "text" to show the name of the user that sent the tweet \r
17                 openExternalLinks:"newWindow", // here you can choose how to open link to external websites, "newWindow" or "sameWindow"\r
18                 filter:"sex->*BAD word*,porn->*BAD word*,fuck->*BAD word*,shit->*BAD word*"  // insert the words you want to hide from the tweets followed by what you want to show instead example: "sex->censured" or "porn->BLOCKED WORD" you can define as many as you want, if you don't want to replace the word, simply remove it, just add the words you want separated like this "porn,sex,fuck"... Be aware that the tweets will still be showed, only the bad words will be removed\r
19         });\r
20         $("#aRodrigo").click(function(){\r
21                 $(".jLinks").removeClass("on");\r
22                 $(this).addClass("on");                                                                   \r
23                 $.Juitter.start({\r
24                         searchType:"fromUser",\r
25                         searchObject:"mrjuitter,rodrigofante",\r
26                         live:"live-120" // it will be updated every 120 seconds/2 minutes\r
27                 });\r
28         });\r
29         $("#aIphone").click(function(){\r
30                 $(".jLinks").removeClass("on");\r
31                 $(this).addClass("on");                                                                    \r
32                 $.Juitter.start({\r
33                         searchType:"searchWord",\r
34                         searchObject:"iPhone,apple,ipod",\r
35                         live:"live-20"  // it will be update every 20 seconds \r
36                 });\r
37         });\r
38         $("#aJuitter").click(function(){\r
39                 $(".jLinks").removeClass("on");\r
40                 $(this).addClass("on");                                                           \r
41                 $.Juitter.start({\r
42                         searchType:"searchWord",\r
43                         searchObject:"Juitter",\r
44                         live:"live-180" // it will be updated every 180 seconds/3 minutes\r
45                 });\r
46         });\r
47         $("#juitterSearch").submit(function(){\r
48 \r
49                                                                           \r
50 \r
51                 $.Juitter.start({\r
52 \r
53                         searchType:"searchWord",\r
54 \r
55                         searchObject:$(".juitterSearch").val(),\r
56                         live:"live-20", // it will be updated every 180 seconds/3 minutes\r
57                         filter:"sex->*BAD word*,porn->*BAD word*,fuck->*BAD word*,shit->*BAD word*"\r
58                 });\r
59                 return false;\r
60 \r
61         });\r
62         $(".juitterSearch").blur(function(){\r
63             if($(this).val()=="") $(this).val("Type a word and press enter");\r
64         });\r
65         $(".juitterSearch").click(function(){\r
66             if($(this).val()=="Type a word and press enter") $(this).val("");\r
67         });\r
68         \r
69         \r
70 });\r