summaryrefslogtreecommitdiff
path: root/html/input.html
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-11-21 16:56:10 +0000
committerPaul Buetow <paul@buetow.org>2010-11-21 16:56:10 +0000
commitc67ed39bc994a0aef06454c1e3044e79f712b739 (patch)
tree4397f736b9161f50cd0b00cdcfd2b0acc7c1af7e /html/input.html
parent93ce2024a62325cbae5f2f6fd2155a4ef89cee63 (diff)
Diffstat (limited to 'html/input.html')
-rw-r--r--html/input.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/html/input.html b/html/input.html
new file mode 100644
index 0000000..31ed9fe
--- /dev/null
+++ b/html/input.html
@@ -0,0 +1,60 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <title>
+ %%HTML_TITLE_TAG_CONTENT%%
+ </title>
+ <link rel=stylesheet href="style.css" type=text/css>
+ <script language="JavaScript">
+ <!--
+ function delout()
+ {
+ document.input.message.value = document.input.message.value.replace(/&/g, '\\AND');
+ document.input.submit();
+ document.input.message.value = "";
+ document.input.message.focus();
+ return false;
+ }
+ function selectinput()
+ {
+ document.input.message.select();
+ }
+ function popup(site,width,height)
+ {
+ var left = (screen.availWidth-width)/2;
+ var top = (screen.availHeight-height)/2;
+ var win = window.open(site,"_blank","width="+width+",height="+height+",left="+left+",top="+top+",scrollbars=yes");
+ }
+ function chgscroll(f)
+ {
+ if(f.checked)
+ parent.stream.autoscroll();
+ else
+ parent.stream.stopscroll();
+ }
+ //-->
+ </script>
+ </head>
+ <body>
+ <form method="GET" name="input" action="input.html" target="blank" onsubmit="return delout();">
+ <div style="position: absolute; top: 5px;">
+ <input class="text" type="text" name="message" size="60" maxlength="%%chat.maxlength.message%%">
+ <input type="submit" value="Send" accesskey='s'>
+ <input type="button" value="Select" accesskey='e' onclick="javascript:selectinput();">
+ </div>
+ <div style="position: absolute; top: 29px;">
+ <a href='#' class="fancy" onclick="javascript:popup('colors.html?event=colors&tmpid=%%tmpid%%', 600, 480)">Colors</a>
+ <a href='#' class="fancy" onclick="javascript:popup('options.html?event=options&tmpid=%%tmpid%%', 600, 480)">Options</a>
+ <a href='#' class="fancy" onclick="javascript:popup('help.html?event=help&tmpid=%%tmpid%%', 600, 480)">Help</a>
+ <a href='#' class="fancy" onclick="javascript:popup('loggedin.html?event=loggedin&tmpid=%%tmpid%%', 600, 480)">Users</a>
+ <a href='#' class="fancy" onclick="javascript:popup('admin.html?event=admin&tmpid=%%tmpid%%', 600, 480)">Admin</a>
+ <a href='input.html?event=input&tmpid=%%tmpid%%&message=%2Fq' class="fancy" target='blank'>Logout</a>
+ Scrolling:
+ <input type="checkbox" name="scroll" checked onClick="chgscroll(this);">
+ </div>
+ <input type="hidden" name="event" value="input">
+ <input type="hidden" name="tmpid" value="%%tmpid%%">
+ </form>
+ </body>
+</html>