| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="content-type" content="text/html; charset=Windows-1250"> |
| 5 | <title>Kyberia Chat - iba pre silne zaludky</title> |
| 6 | <link rel="shortcut icon" href="/favicon.ico"> |
| 7 | <link rel='stylesheet' type='text/css' href='/data/css/main.css'> |
| 8 | <script language="JavaScript"><!-- |
| 9 | function setCookie(name,value,days) |
| 10 | { |
| 11 | if (days) |
| 12 | { |
| 13 | var date = new Date(); |
| 14 | date.setTime(date.getTime()+(days*24*60*60*1000)); |
| 15 | var expires = "; expires="+date.toGMTString(); |
| 16 | } |
| 17 | else var expires = ""; |
| 18 | document.cookie = name+"="+value+expires+"; path=/"; |
| 19 | } |
| 20 | |
| 21 | function getCookie(name) |
| 22 | { |
| 23 | var nameEQ = name + "="; |
| 24 | var ca = document.cookie.split(';'); |
| 25 | for(var i=0;i < ca.length;i++) |
| 26 | { |
| 27 | var c = ca[i]; |
| 28 | while (c.charAt(0)==' ') c = c.substring(1,c.length); |
| 29 | if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); |
| 30 | } |
| 31 | return null; |
| 32 | } |
| 33 | |
| 34 | function rmCookie(name) |
| 35 | { |
| 36 | createCookie(name,"",-1); |
| 37 | } |
| 38 | |
| 39 | function CheckValues() { |
| 40 | var nick = document.chat.nick.value; |
| 41 | |
| 42 | if(!(nick.match(/^[a-zA-Z\[\]\{\}^\\\|\_\-`][A-Za-z0-9\[\]\{\}^\\\|\_\-`]{1,32}$/))) |
| 43 | { |
| 44 | alert('Nepouzivaj diakritku a specialne znaky.'); |
| 45 | document.chat.nick.value = nick.replace(/[^A-Za-z0-9\[\]\{\}^\\\|\_\-`]/g, ''); |
| 46 | return false; |
| 47 | } |
| 48 | setCookie("nick", nick, 365); |
| 49 | |
| 50 | ShowApplet(); |
| 51 | } |
| 52 | |
| 53 | function ShowApplet() { |
| 54 | var nick = document.chat.nick.value; |
| 55 | document.open(); |
| 56 | document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'); |
| 57 | document.write('<html>'); |
| 58 | document.write('<head>'); |
| 59 | document.write('<meta http-equiv="content-type" content="text/html; charset=Windows-1250">'); |
| 60 | document.write('<title>KybChat</title>'); |
| 61 | document.write('<link rel="shortcut icon" href="favicon.ico">'); |
| 62 | document.write('<link rel="stylesheet" type="text/css" href="/data/css/main.css">'); |
| 63 | document.write('</head><body>'); |
| 64 | document.write('<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=100% height=600><param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">'); |
| 65 | document.write('<param name="nick" value="'+nick+'">'); |
| 66 | document.write('<param name="alternatenick" value="'+nick+'??">'); |
| 67 | document.write('<param name="host" value="irc.i.cz">'); |
| 68 | document.write('<param name="name" value="Kyberia User">'); |
| 69 | document.write('<param name="alternateserver3" value="irc.felk.cvut.cz">'); |
| 70 | document.write('<param name="alternateserver1" value="irc.nextra.sk">'); |
| 71 | document.write('<param name="alternateserver2" value="irc.tuke.sk">'); |
| 72 | document.write('<param name="languageencoding" value="Windows-1250">'); |
| 73 | document.write('<param name="command1" value="/join #kyberia.sk">'); |
| 74 | document.write('<param name="plugin1" value="config.Config">'); |
| 75 | document.write('<param name="quitmessage" value="KybChat: EOF">'); |
| 76 | document.write('<param name="soundword1" value="'+nick+' snd/ding.au">'); |
| 77 | document.write('<param name="soundbeep" value="snd/bell2.au">'); |
| 78 | document.write('<param name="soundquery" value="snd/ding.au">'); |
| 79 | document.write('<param name="style:highlightlinks" value="true">'); |
| 80 | document.write('<param name="style:sourcefontrule1" value="Status+Channel+Query all Lucida_Console 12">'); |
| 81 | document.write('<param name="style:sourcecolorrule1" value="all all 0=000000 1=6dae42 2=4d8e22 3=3d7e12 4=7dbe52 5=7dbe52 6=8dce62">'); |
| 82 | document.write('<param name="gui" value="pixx">'); |
| 83 | document.write('<param name="pixx:highlight" value="true">'); |
| 84 | document.write('<param name="pixx:highlightnick" value="true">'); |
| 85 | document.write('<param name="pixx:highlightcolor" value="4">'); |
| 86 | document.write('<param name="pixx:highlightwords" value="'+nick+'">'); |
| 87 | document.write('<param name="pixx:color0" value="000000">'); |
| 88 | document.write('<param name="pixx:color1" value="6dae42">'); |
| 89 | document.write('<param name="pixx:color2" value="5d9e32">'); |
| 90 | document.write('<param name="pixx:color3" value="5d9e32">'); |
| 91 | document.write('<param name="pixx:color4" value="7dbe52">'); |
| 92 | //document.write('<param name="pixx:color5" value="6dae42">'); //scrollback |
| 93 | document.write('<param name="pixx:color5" value="000000">'); //foreground |
| 94 | document.write('<param name="pixx:color6" value="000000">'); //background |
| 95 | document.write('<param name="pixx:color7" value="1d5e00">'); //selection |
| 96 | document.write('<param name="pixx:color8" value="2d6e0f">'); //event color |
| 97 | document.write('<param name="pixx:color9" value="6dae42">'); //close button |
| 98 | document.write('<param name="pixx:color10" value="606000">'); //VOICE |
| 99 | document.write('<param name="pixx:color11" value="1d5e00">'); //OP |
| 100 | document.write('<param name="pixx:color12" value="000060">'); //HALFOP |
| 101 | document.write('<param name="pixx:color15" value="000000">'); //nick buttons |
| 102 | document.write('<param name="pixx:timestamp" value="true">'); |
| 103 | document.write('<param name="pixx:mouseurlopen" value="1 2">'); |
| 104 | document.write('<param name="pixx:mousechanneljoin" value="1 2">'); |
| 105 | document.write('<param name="pixx:showabout" value="false">'); |
| 106 | document.write('<param name="pixx:showhelp" value="false">'); |
| 107 | document.write('<param name="pixx:showchannels" value="false">'); |
| 108 | document.write('<param name="pixx:nicklistwidth" value="140">'); |
| 109 | document.write('<param name="pixx:nickprefix" value="<\b">'); |
| 110 | document.write('<param name="pixx:nickpostfix" value="\b\> ">'); |
| 111 | document.write('<param name="pixx:configurepopup" value="true">'); |
| 112 | document.write('<param name="pixx:popupmenustring1" value="Whois">'); |
| 113 | document.write('<param name="pixx:popupmenustring2" value="Private Message">'); |
| 114 | document.write('<param name="pixx:popupmenustring3" value="Send file">'); |
| 115 | document.write('<param name="pixx:popupmenustring4" value="Direct Chat">'); |
| 116 | document.write('<param name="pixx:popupmenucommand1_1" value="/Whois %1">'); |
| 117 | document.write('<param name="pixx:popupmenucommand2_1" value="/Query %1">'); |
| 118 | document.write('<param name="pixx:popupmenucommand3_1" value="/DCC FILE %1">'); |
| 119 | document.write('<param name="pixx:popupmenucommand4_1" value="/DCC CHAT %1"></applet>'); s |
| 120 | document.write('</body></html>'); |
| 121 | document.close(); |
| 122 | return false; |
| 123 | } |
| 124 | //--> |
| 125 | </script> |
| 126 | </head> |
| 127 | <body> |
| 128 | <div align=center> |
| 129 | <br> |
| 130 | <form action="#" method="post" name="chat" onsubmit="return ShowApplet();"> |
| 131 | nick: <input type="text" name="nick" onsubmit="return ShowApplet();" /> |
| 132 | <input type="button" value="Submit" onclick="ShowApplet();" /> |
| 133 | </form> |
| 134 | <script language="JavaScript"><!-- |
| 135 | if (!(getCookie("nick")==null)) document.chat.nick.value = getCookie("nick"); |
| 136 | //--> |
| 137 | </script> |
| 138 | <b>download java: </b><a href="http://jdl.sun.com/webapps/download/AutoDL?BundleId=9993">Sun Java</a> |
| 139 | <br> |
| 140 | </div> |
| 141 | </body> |
| 142 | </html> |