add("If you don't know what this is, you'll know in less than one minute. If you already know what this is, you'll already know what it is (simple).\nThis is webCLI, a playground for people who find it fascinating to use a computer with commands. You can't use your mouse. You need to type words - commands. Type [whatis] to see a list of all commands. Type [whatis -detail] to see a list of all commands in detail. Type [whatis <command>] to see a more detailed description of just one command.") if (!cb) add("Here's a list of available commands and a description of them:\n\n"+allcommands+"\n\nIf you want to see a more detailed description of a command, type [whatis <command>]. Type [whatis -detail] to see a list of all commands in detail.") else if (cb=="-detail") add("Here's a list of available commands, a description of them and possible parameters:\n\n"+allcommandsdetailed+"\n\nIf you only want to see a list of commands with a description, type [whatis] with no parameters. \n") else if (commandexists()) add("The \""+cb+"\" command:\n"+whatis()) else add("The command \""+cb+"\" doesn't exist. Type [whatis] for a list of all commands and a description. Type [whatis -detail] for a complete reference of all commands.") add(ca.substr(0,1).toUpperCase()+ca.substr(1)+"ing...") window.location.reload() t.value="" add(startmessage,true) if (!cb) { add("You have to specify parameters!") return } if (!cc) { if (cb=="-reset") t.style.font="" else t.style.font=cb } else { if (cb=="family") { if (cc=="-reset") t.style.fontFamily="lucida console" else t.style.fontFamily=cc } else if (cb=="size") { if (cc=="-reset") t.style.fontSize="12px" else t.style.fontSize=cc } else if (cb=="style") { if (cc=="-reset") t.style.fontStyle="normal" else t.style.fontStyle=cc } else if (cb=="variant") { if (cc=="-reset") t.style.fontVariant="normal" else t.style.fontVariant=cc } else if (cb=="weight") { if (cc=="-reset") t.style.fontWeight="bold" else t.style.fontWeight=cc } else { add("That property doesn't exist.") return } } add("",true,true) if (!cb) { add("You have to specify parameters!") return } if (!cc) { if (cb=="-reset") { t.style.color="#fff" t.style.lineHeight="normal" t.style.letterSpacing="normal" t.style.textDecoration="none" t.style.textTransform="none" t.style.wordSpacing="normal" } else { add("You have to specify a value!") return } } else { if (cb=="color") { if (cc=="-reset") t.style.color="#fff" else t.style.color=cc } else if (cb=="line-height") { if (cc=="-reset") t.style.lineHeight="normal" else t.style.lineHeight=cc } else if (cb=="letter-spacing") { if (cc=="-reset") t.style.letterSpacing="normal" else t.style.letterSpacing=cc } else if (cb=="decoration") { if (cc=="-reset") t.style.textDecoration="none" else t.style.textDecoration=cc } else if (cb=="transform") { if (cc=="-reset") t.style.textTransform="none" else t.style.textTransform=cc } else if (cb=="word-spacing") { if (cc=="-reset") t.style.wordSpacing="normal" else t.style.wordSpacing=cc } else { add("That property doesn't exist.") return } } add("",true,true) if (!cb) { add("You have to specify parameters!") return } if (!cc) { if (cb=="-reset") t.style.background="" else t.style.background=cb } else { if (cb=="attachment") { if (cc=="-reset") t.style.backgroundAttachment="scroll" else t.style.backgroundAttachment=cc } else if (cb=="color") { if (cc=="-reset") t.style.backgroundColor="#000" else t.style.backgroundColor=cc } else if (cb=="image") { if (cc=="-reset") t.style.backgroundImage="none" else t.style.backgroundImage=cc } else if (cb=="position") { if (cc=="-reset") t.style.backgroundPosition="0% 0%" else t.style.backgroundPosition=cc } else if (cb=="repeat") { if (cc=="-reset") t.style.backgroundRepeat="repeat" else t.style.backgroundRepeat=cc } else { add("That property doesn't exist.") return } } add("",true,true) t.style.font="normal normal bold 12px 'lucida console'" t.style.color="#fff" t.style.lineHeight="normal" t.style.letterSpacing="normal" t.style.textDecoration="none" t.style.textTransform="none" t.style.wordSpacing="normal" t.style.background="#000" add("",true,true) add("Fetching joke from database...\nOoops, there are no jokes! What a disaster!\nIn fact the joke system hasn't been implemented yet..") add("New chat session started.\nTry writing something like \"My name's Croxy and I'm from the planet Dyyzasf\".\nYou can't use the normal commands while in chat mode. Type [/exit] at any time to quit the chat.") add(msg) if (anirunning) { add("An animation is already running. Wait until it's done.") return } anirunning=true road=document.createElement("div") road.style.width="500px" road.style.height="1060px" road.style.background="url('img/road.png') no-repeat" road.style.position="absolute" road.style.left="50%" road.style.top="50%" road.style.marginTop="-530px" road.style.marginLeft="-250px" road.style.zIndex="2" bdy.appendChild(road) ani=new Array() for (i=0;i<3;i++) { ani[i]=document.createElement("img") ani[i].src="img/m"+(i+1)+".png" ani[i].style.display="hidden" ani[i].alt="" ani[i].style.position="absolute" ani[i].style.top="50%" ani[i].style.left="50%" animt=50 ani[i].style.marginTop="-50px" ani[i].style.marginLeft="-137px" ani[i].style.zIndex="3" bdy.appendChild(ani[i]) } animation() add("Animation is now running. You can't watch another animation while this is still running. You'll have to wait until the animation ends.") if (!cb) add("You have to specify an internet address.") else if (cb=="back") window.history.go(-1) else if (cb=="forward") window.history.go(1) else { var cbn=cb if (!(cbn.indexOf(".")>0 && cbn.indexOf(".")!=cbn.length-2)) { add("Invalid address") return } if (cbn.substr(0,7)!="http://") cbn="http://"+cbn window.location.href=cbn } add("Redirecting...",true) if (!cb) { add("You have to specify an input!") return } var addr if (!cc || cc=="google") addr="http://www.google.com/search?q="+cbc else if (cc=="yahoo") addr="http://search.yahoo.com/search?p="+cbc else if (cc=="lycos") addr="http://search.lycos.com/?query="+cbc else if (cc=="altavista") addr="http://www.altavista.com/web/results?q="+cbc else if (cc=="live") addr="http://search.live.com/results.aspx?q="+cbc else if (cc=="aol") addr="http://search.aol.com/aol/search?query="+cbc else if (cc=="wikipedia") addr="http://en.wikipedia.org/wiki/Special:Search?search="+cbc+"\&go=Go" else if (cc=="imdb") addr="http://www.imdb.com/find?q="+cbc else { add("That site doesn't exist.") return } add("Redirecting...",true) window.location.href=addr if (!cb) { if (svsn==0 && (getCookie("mem")=="" || getCookie("mem")==null)) { add("You have to use [mem] with parameters before you can see what you earlier wrote!") return } if (!cookie) { var remmsg="" for (var ii=0; ii if (!cb) { if (!cookie) { svsn=0 svs=new Array() } else { setCookie("mem","") csvn=0 } add("Everything deleted.",true) } else if (!isnumeric(cb)) { add("Dont write \""+cb+"\"! Write a number!",true) } else if ((cb*1>svsn && !cookie) || cb*1==0 || (cb*1>csvn && cookie)) add("A sentence with that number doesn't exist.",true) else { if (!cookie) { for (i=svsn-cb*1; i