summaryrefslogtreecommitdiff
path: root/html/input.html
diff options
context:
space:
mode:
authoradmin (centauri.fritz.box) <puppet@mx.buetow.org>2014-07-01 20:17:26 +0200
committeradmin (centauri.fritz.box) <puppet@mx.buetow.org>2014-07-01 20:17:26 +0200
commit0b4ccf59b27f0a8de71b10120b50c916fdbc46a0 (patch)
tree4252a66e1438004c08c1ac96338a0352a2408d58 /html/input.html
parenta7aa66722070de6ab2e84e5a1311b96c98f36e14 (diff)
parentc67ed39bc994a0aef06454c1e3044e79f712b739 (diff)
Merge remote-tracking branch 'remotes/github/ychat-0.7' into ychat-0.7ychat-0.7
Diffstat (limited to 'html/input.html')
-rw-r--r--html/input.html52
1 files changed, 39 insertions, 13 deletions
diff --git a/html/input.html b/html/input.html
index a403d8e..31ed9fe 100644
--- a/html/input.html
+++ b/html/input.html
@@ -1,34 +1,60 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
- <head>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>
- %%PGETITLE%%
+ %%HTML_TITLE_TAG_CONTENT%%
</title>
-<link rel=stylesheet href="style.css" type=text/css>
-
+ <link rel=stylesheet href="style.css" type=text/css>
<script language="JavaScript">
<!--
function delout()
{
- document.input.message.focus();
- document.input.message.select();
+ 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 bgcolor=#000000 text=#ffffff>
- <form name="input" action="input.html" target="blank" onsubmit="return delout();">
- <input type="hidden" name="event" value="post">
- <input type="hidden" name="nick" value="%%nick%%">
+ <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%%">
- <input type="text" name="message" size="50">
- <input type="submit" value="send">
- <input type="button" value="select" onclick="javascript:selectinput();">
</form>
</body>
</html>