Files
youlegames/tools/server2017-64-stable/test/indexokok.html

95 lines
2.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<meta name="viewport" content="width=device-width,initial-scale=1 user-scalable=0"/>
<title>黑狐服务器</title>
</head>
<body>
<script src="server/servernet_okok.js" type="text/javascript"></script>
<h1>黑狐服务器 2016</h1>
<div id="divChat">
<textarea name="txtChatMain" id="txtChatMain" class="txtarea"></textarea>
<!-- Inputs are disabled by default -->
<input type="button" name="btnChatSend" id="btnChatSend" value="清除" onClick="clearmsg();" class="btn" />
</div>
<style type='text/css'>
div#divChat { width:30em; }
textarea.txtarea { float:left; width: 50em; height: 30em;}
input.txt { float:left; display: inline; width: 26em; }
input.btn { float:left; display: inline; width: 4em; }
</style>
<script>
/*var rf=require("fs");
var data1=rf.readFileSync("test.txt","utf-8");
//var obj={}
//obj.dfw=123;
var jj=[];
jj[0]={};
jj[0].dfw="123";
var last=JSON.stringify(jj);
console.log(last);
var obj =JSON.parse(data1);
console.log('====:'+data1+' dfw='+obj[0].dfw);
*/
var hhhhhhhhh=0;
function $() {
return document.getElementById(arguments[0]);
}
function logMsg(msg) {
$('txtChatMain').value += msg + '\n';
hhhhhhhhh++;
if (hhhhhhhhh>1000)
{
clearmsg();
}
}
function logmsg(msg) {
$('txtChatMain').value += msg + '\n';
hhhhhhhhh++;
if (hhhhhhhhh>1000)
{
clearmsg();
}
};
function clearmsg() {
$('txtChatMain').value = '黑狐服务器2016'+ '\n';
};
logMsg('黑狐服务器');
/* document.write(process.version);
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' }); res.end('Hello World\n');
}).listen(1337, "127.0.0.1");
console.log('Server running at http://127.0.0.1:1337/');
*/
</script>.
</body>
</html>