WeiWeiXinNet/Games/game3/js/other/terminal.js
(完整代码) 888Bfunction cout(message, colorIndex) {
var terminal_output = document.getElementById("terminal_output");
if ((colorIndex != 0 || DEBUG_MESSAGES) && (colorIndex != -1 || DEBUG_WINDOWING)) {
var lineout = document.createElement('span');
lineout.appendChild(document.createTextNode(message));
switch (colorIndex) {
case -1:
case 0:
lineout.className = "white";
break;
case 1:
lineout.className = "yellow";
break;
case 2:
lineout.className = "red";
}
terminal_output.appendChild(lineout);
terminal_output.appendChild(document.createElement('br'));
terminal_output.scrollTop = terminal_output.scrollHeight - terminal_output.clientHeight;
}
}
function clear_terminal() {
var terminal_output = document.getElementById("terminal_output");
while (terminal_output.firstChild != null) {
terminal_output.removeChild(terminal_output.firstChild);
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。