1 2 var msgArray = new Array(); 3 var msgclear = new Array(); 4 var ie=document.all; 5 var isIE = /*@cc_on!@*/false; 6 var cSession; 7 var minimised = 0; 8 var zdex = 100; 9 zdex = zdex * 1; 10 var blinkOrder = 0; 11 var newMessagesWin = new Array(); 12 var newMessages = new Array(); 13 originalTitle = document.title; 14 var HeartbeatCount = 0; 15 var minHeartbeat = 10000; 16 var maxHeartbeat = 33000; 17 var HeartbeatTime = minHeartbeat; 18 var itemsfound = 0; 19 var $sachat = jQuery.noConflict(); 20 var windowFocus = true; 21 var memberID = ""; 22 lastKeyUp = 0; 23 var saChatShow = $sachat.cookie('2sichat_show'); 24 var saChatListKeepOpen = $sachat.cookie('2sichat_list_keep'); 25 styleChat = $sachat.cookie('2sichat_Style'); 26 var milliseconds = new Date().getTime(); 27 28 chatcss = 'style.css?' + milliseconds; 29 30 $sachat('head').append('<link rel="stylesheet" id="stylechange" href="http://www.agrar.de/pferde/forum/sachat/themes/default/css/' + chatcss + '" type="text/css" />'); 31 32 33 34 35 $sachat("<div />").attr("id","chat_containter").attr("class","chatBar_containter").attr("dir","ltr").html('<img src=\"http://www.agrar.de/pferde/forum/sachat/themes/default/images/balloon.png\" alt=\"{}\" border=\"0\"><a class=\"white\" href=\"http://www.agrar.de/pferde/forum/index.php?action=login\">Login to chat</a>').appendTo($sachat("body")); 36 if(saChatShow == 1){ 37 $sachat('#chat_containter').removeClass('chatBar_containter'); 38 $sachat('#chatonhover').hide(); 39 $sachat('#sa_friends').hide(); 40 $sachat('#chattools_containter').hide(); 41 $sachat('#hideimg').attr('src','http://www.agrar.de/pferde/forum/sachat/themes/default/images/world_off.png'); 42 $sachat('#hideimg').attr('title','Show Chat'); 43 } 44 45 $sachat("<div />" ).attr("id","extra").attr("class","extrabox").attr("dir","ltr").html(' <div class=\"extraboxhead\">Tools</div><div class=\"extraboxcontent\"><br /><div class=\"extrasettings\">Social:</div><a href=\"javascript:void(0)\" onclick=\"javascript:getSocial(\'gplus\');\"><img src=\"http://www.agrar.de/pferde/forum/sachat/themes/default/images/gplus.png\" width=\"20\" height=\"20\" alt=\"Google+\" title=\"Google+\" border=\"0\"></a> <a href=\"javascript:void(0)\" onclick=\"javascript:getSocial(\'twitter\');\"><img src=\"http://www.agrar.de/pferde/forum/sachat/themes/default/images/twitter.png\" width=\"20\" height=\"20\" alt=\"Tweet\" title=\"Tweet\" border=\"0\"></a> <a href=\"javascript:void(0)\" onclick=\"javascript:getSocial(\'facebook\');\"><img src=\"http://www.agrar.de/pferde/forum/sachat/themes/default/images/facebook.png\" width=\"20\" height=\"20\" alt=\"Facebook\" title=\"Facebook\" border=\"0\"></a><br /><br /><div class=\"extrasettings\">Links:</div><a href=\"http://www.agrar.de/pferde/forum/index.php\" ><img src=\"http://www.agrar.de/pferde/forum/sachat/themes/default/images/home.png\" width=\"18\" height=\"18\" alt=\"Home\" title=\"Home\"/> </a> <a href=\"http://www.agrar.de/pferde/forum/index.php?action=pm\" ><img src=\"http://www.agrar.de/pferde/forum/sachat/themes/default/images/mail.png\" width=\"18\" height=\"18\" alt=\"Messages\" title=\"Messages\"/> </a> <br /> <div class=\"extraboxbottom\"> Powered by SA Chat © 2010 - 2015 <a href=\"http://samods.github.io/SAChatBar/\">SA Mods</a> </div> </div>').appendTo($sachat("body")); 46 $sachat('#extra').hide(); 47 48 function selectmouse(selector,handle){ 49 $sachat('.'+selector).draggable({ 50 handle: '.'+handle, 51 opacity: 0.35, 52 drag: function(event, ui) { 53 54 newX = ui.offset.left; 55 newY = ui.offset.top; 56 57 $sachat(this).css('left', newX); 58 $sachat(this).css('top', newY); 59 60 zdex = (zdex+1); 61 $sachat(this).css('zIndex', zdex); 62 63 cgobj = $sachat(this).attr('id'); 64 gadid = cgobj.substr(6); 65 gadFix = cgobj.substr(0, 6); 66 67 if (gadFix == 'Gadget') { 68 var myArray = []; 69 myArray[0] = '2sichat_gadget'; 70 myArray[1] = cgobj; 71 myArray[2] = gadid;
72 myArray[3] = newX; 73 myArray[4] = newY; 74 $sachat.cookie('2sichat_gadget'+gadid, escape(myArray.join(','))); 75 } 76 else{ 77 var myArray = []; 78 myArray[0] = '2sichat'; 79 myArray[1] = 'msg_win'+cgobj; 80 myArray[2] = cgobj; 81 myArray[3] = newX; 82 myArray[4] = newY; 83 $sachat.cookie('2sichat'+cgobj, escape(myArray.join(','))); 84 } 85 } 86 }); 87 } 88 89 function openGadget(id) { 90 if (document.getElementById('Gadget'+id) == undefined) { 91 92 zdex = (zdex+1); 93 94 var div = $sachat("<div />").attr("id","Gadget"+id).attr("dir","ltr").attr("class","gadget_win").attr("style","position: fixed; zIndex: " +zdex+ ";").appendTo($sachat("body")); 95 96 $sachat.ajax({ 97 url: 'http://www.agrar.de/pferde/forum/sachat/index.php', 98 data: 'theme=default&gid='+id, 99 dataType: "json", 100 cache: false, 101 success: function(data){ 102 if (data.DATA != null){ 103 $sachat(div).html(data.DATA); 104 } 105 if (data != null && data.CONLINE != null) { 106 $sachat("#cfriends").text('('+data.CONLINE+')'); 107 } 108 if (data != null && data.ONLINE != null) { 109 $sachat("#sa_friends").html(data.ONLINE); 110 } 111 } 112 }); 113 114 $sachat(window).load(selectmouse('gadget_win','gadgetboxhead')); 115 116 if (cSession == undefined) { 117 var myArray = []; 118 myArray[0] = '2sichat_gadget'; 119 myArray[1] = 'Gadget'+id; 120 myArray[2] = id; 121 $sachat.cookie('2sichat_gadget'+id, escape(myArray.join(','))); 122 }else{ 123 var myArray = []; 124 myArray[0] = '2sichat_gadget'; 125 myArray[1] = 'Gadget'+id; 126 myArray[2] = id; 127 myArray[3] = cSession[3]; 128 myArray[4] = cSession[4]; 129 $sachat.cookie('2sichat_gadget'+id, escape(myArray.join(','))); 130 } 131 } 132 } 133 134 function closeGadget(id) { 135 $sachat('#Gadget'+id).remove(); 136 $sachat.cookie('2sichat_gadget'+id, null); 137 } 138 139 doCookies(); 140 function doCookies() { 141 142 $sachat.each(document.cookie.split(';'), function(i, cookie) { 143 144 var c = $sachat.trim(cookie); 145 name = c.split('=')[0]; 146 var cookie = unescape($sachat.cookie(name)); 147 cSession = cookie.split(','); 148 149 if(cSession[0] == '2sichat_gadget'){ 150 openGadget(cSession[1].substr(6)); 151 document.getElementById(cSession[1]).style.left = cSession[3]+'px'; 152 document.getElementById(cSession[1]).style.top = cSession[4]+'px'; 153 } 154 155 if(cSession[0] == '2sichat'){ 156 if(cSession[3] == ''){ 157 chatTo(cSession[1].substr(7)); 158 } 159 } 160 }); 161 } 162 163 var expdate = new Date(); 164 expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 365)); 165 166 167 function hide_showChat() { 168 if ($sachat('#chatonhover').is(':visible')){ 169 $sachat('#chattools_containter').hide(); 170 $sachat('#chatonhover').hide(); 171 $sachat('#chat_containter').removeClass('chatBar_containter'); 172 $sachat('#extra').hide(); 173 $sachat('#sa_friends').hide(); 174 $sachat('.chatbox').hide(); 175 $sachat('#hideimg').attr('src','http://www.agrar.de/pferde/forum/sachat/themes/default/images/world_off.png'); 176 $sachat('#hideimg').attr('title','Show Chat'); 177 $sachat('#chattools_containter').removeClass('chat_tools_open'); 178 $sachat('#chattools_containter').addClass('chat_tools_containter'); 179 $sachat('#opencog').show(); 180 checked = 1; 181 }else{ 182 $sachat('#chat_containter').show(); 183 $sachat('#chatonhover').show(); 184 $sachat('#chat_containter').addClass('chatBar_containter'); 185 $sachat('#chattools_containter').show(); 186 $sachat('.chatbox').show(); 187 $sachat('#hideimg').attr('src','http://www.agrar.de/pferde/forum/sachat/themes/default/images/world_on.png'); 188 $sachat('#hideimg').attr('title','Hide Chat'); 189 checked = 0; 190 } 191 192 $sachat.cookie('2sichat_show',checked ,{ expires: 10000}); 193 if(memberID){ 194 updateChatBoxPosition(); 195 } 196 } 197 198 $sachat("#chatcollapse_containter").on('click',function() { 199 hide_showChat(); 200 }); 201 202 $sachat("#sa_friends").on('click', '#chattools_containter', function () { 203 showhide('extra'); 204 }); 205 $sachat("#chattools_containter").on('click',function() { 206 showhide('extra'); 207 }); 208 $sachat(".extraboxhead").on('click',function() { 209 showhide('extra'); 210 }); 211 function showhide(layer_ref) { 212 213 if(document.getElementById(layer_ref).style.display == 'none') 214 { 215 $sachat(document.getElementById(layer_ref)).fadeIn("fast"); 216 217 if(layer_ref == 'sa_friends'){ 218 $sachat('#extra').hide(); 219 220 $sachat('#chattools_containter').removeClass('chat_tools_open'); 221 $sachat('#chattools_containter').addClass('chat_tools_containter'); 222 $sachat('#opencog').show(); 223 } 224 if(layer_ref == 'extra'){ 225 $sachat('#chat_containter').show(); 226 $sachat('#sa_friends').hide(); 227 $sachat('#chattools_containter').removeClass('chat_tools_containter_hover'); 228 $sachat('#chattools_containter').removeClass('chat_tools_containter'); 229 $sachat('#chattools_containter').addClass('chat_tools_open'); 230 $sachat('#opencog').hide(); 231 232 } 233 } 234 else 235 { 236 $sachat(document.getElementById(layer_ref)).fadeOut("fast"); 237 238 if(layer_ref == 'sa_friends'){ 239 $sachat('#chat_containter').show(); 240 } 241 if(layer_ref == 'extra'){ 242 if($sachat.cookie('2sichat_list_keep') == 1 && memberID){ 243 //$sachat('#chat_containter').hide(); 244 $sachat('#sa_friends').show(); 245 } 246 $sachat('#chattools_containter').removeClass('chat_tools_open'); 247 $sachat('#chattools_containter').addClass('chat_tools_containter'); 248 $sachat('#opencog').show(); 249 250 } 251 } 252 } 253 254 $sachat.getScript('http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-503f263237ff99da'); 255 256 function getSocial (social) { 257 if (social == 'myspace') { 258 pupUP("http://www.myspace.com/Modules/PostTo/Pages/default.aspx?c="+window.location+"&t="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML); 259 } 260 if (social == 'twitter') { 261 pupUP("http://twitter.com/home?status="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML+" @ "+window.location); 262 } 263 if (social == 'facebook') { 264 pupUP("http://www.facebook.com/sharer.php?t="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML+"&u="+window.location); 265 } 266 if (social == 'gplus') { 267 pupUP("https://plusone.google.com/_/+1/confirm?hl=en-US&url="+window.location); 268 } 269 } 270 function pupUP(url) { 271 newwindow=window.open(url,'pupUP','height=400,width=550,top=200,left=2
27100,toolbar=0,location=0,directories=0,status=0,menubar=0,statusbar=0'); 272 if (window.focus) {newwindow.focus()} 273 return false; 274 } 275 276
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.