第一次提交 游戏界面资源数据已更新
This commit is contained in:
119
tools/server2017-64-stable/test/index.html
Normal file
119
tools/server2017-64-stable/test/index.html
Normal file
@@ -0,0 +1,119 @@
|
||||
<!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>
|
||||
|
||||
|
||||
|
||||
<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: 26em; }
|
||||
</style>
|
||||
|
||||
|
||||
<script src="server/servernet.js" type="text/javascript"></script>
|
||||
<script>
|
||||
|
||||
function server_findip(str)//查找ip
|
||||
{
|
||||
var j=0; var x;
|
||||
for (var i = 0; i < str.length; i++) {
|
||||
|
||||
x=parseInt(str[i]);
|
||||
if (!isNaN(x))
|
||||
|
||||
// if (str[i]=='1')
|
||||
{
|
||||
j=i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return str.substr(j, str.length-j);
|
||||
|
||||
}
|
||||
|
||||
var ii="::fff:59.22.222";
|
||||
ii=server_findip(ii);
|
||||
//alert(ii);
|
||||
|
||||
/*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>
|
||||
Reference in New Issue
Block a user