SOURCE

<!DOCTYPE html>
<html>
<center>

<center>
 <table border="2">
<tr><th>时间</th><head>
  
 <th><style type="text/css">
 
  </style>
 </head>
 <body>
    <div id="times">
    </div>
   <script type="text/javascript">
     function  getD1(){
         var date=new Date();
         var d1=date.toLocaleString();
         var div1=document.getElementById("times");
         div1.innerHTML =d1;
 
     }
 
     setInterval("getD1();",1000);
 
    </script>
 
 </body></th></tr>
</table>
<head> 


<meta charset=“utf-8" />
<title>二元一次方程计算器</title>

</head>
<script type="text/javascript">

        function stop() {

            return false;

        }

        document.oncontextmenu = stop;

    </script>

	 
    </div>
  <div class="knr">
<div class="mobile_main">
<script type="text/javascript">
function calculate() {
    var a=parseFloat(document.getElementById("a").value);
    var b=parseFloat(document.getElementById("b").value);
    var c=parseFloat(document.getElementById("c").value);
    var d=parseFloat(document.getElementById("d").value);

    var p=parseFloat(document.getElementById("p").value);
    var q=parseFloat(document.getElementById("q").value);
    var dtr=a*d-b*c;    
    var bx=a*q-c*p;
    var ax=p*d-q*b;
    if(dtr!=0){
        x=(ax)/dtr;
        y=(bx)/dtr;
    }else{
        x=0;
        y=0;
    }
    document.getElementById("res_area").style.visibility="visible";
    document.getElementById("result1").innerHTML= Math.round(x*10000)/10000;
    document.getElementById("result2").innerHTML= Math.round(y*10000)/10000;
}
</script>
<center>
<table width="350" align="center" >
  <body style="background=https://i.loli.net/2020/04/27/q13QgbsTYviPMIu.jpg">   



<center> 
 <table border="0">
<tr>
<th><table border="1">
<caption><h1 style="font-family:KAITI;color:white;font-size:30px;text-align:center">二元一次方程计算器</h1></caption>   
<tr> 
<th align="center" valign="middle">
<tbody >

                    <tr>
                        <td align="center" valign="middle">
                        <div id="input">
                        <table style="margin: 0px; width: 100%;padding:40px 0;background=https://i.loli.net/2020/04/27/q13QgbsTYviPMIu.jpg">
                            </center><tbody>
                               
                                <tr>
                                    <td valign="top" colspan="2"><input id="a" class="span2" size="6" type="text" /><label id="unit"> X + </label><input id="b" class="span2" size="5" type="text" /><label> Y = </label><input id="p" class="span2" size="5" type="text" /><br />
                                    &nbsp;</td>
                                </tr>
                                <tr>
                                    <td valign="top" colspan="2"><input id="c" class="span2" size="6" type="text" /><label id="unit"> X + </label><input id="d" class="span2" size="5" type="text" /><label> Y = </label><input id="q" class="span2" size="5" type="text" /><br />
                                    &nbsp;</td>
                                </tr>
                                <tr>
                                   <td><input id="button" onclick="calculate()" type="button" style="background-color:white" value="立即计算" /></td>
                                    <td>&nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                        </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        <div id="res_area">
                        <table border="3"align="center">
                            <tbody>
                                <tr>
                                    <td colspan="2">计算结果:</td>
                                </tr>
                                <tr>
                                    <td>X =</td>
                                    <td>
                                    <div id="result1">&nbsp;</div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Y =</td>
                                    <td>
                                    <div id="result2">&nbsp;</div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        </div>
                        </td>
                    </tr>
                </tbody>
            </table>   
</center>         
<div style='height:10px;'></div><div class="mob_det">
</th>
</tr>
</table><th>
<th><table border="1"><tr><th style="font-family:KAITI;color:black;font-size:30px">免费游戏账号,小说阅读,<br />听音乐,在线工具<br />更多在线小游戏<br />全国教材配套练习答案<br />最大搜索器……<br /><address>
<a href="http://jsrun.net/xf2Kp"target="_blank"><h3 style="font-family:KAITI;color:blue;;text-align:center">点这里<h3></a></table>
</address><th>
<tr>
<table>

</center>
<SCRIPT language=javascript>
function click() {if (event.button==2) {alert('检测到您非法右键,请立即停止!');}}document.onmousedown=click
</SCRIPT>
<style>

            body {   

                background:url("https://i.loli.net/2020/04/27/3jOaoFNn9MPx5cs.jpg");

            }
</body>   
</center>
  
<html lang="en">
<head>
    <meta charset="UTF-8">
    
    <style type="text/css">
*{margin:0;padding: 0;font-family: "Microsoft YaHei";}
#page{margin-right: auto;margin-left: auto; margin-top: 20px;height: 600px; width: 980px; }
#yard{ width: 800px;border: 1px solid gray;box-shadow: 0 0 10px black; float: right;}
#mark{font-weight: 800;}
#mark_con{ color: red; }
button{width: 50px; }
a{text-decoration:none;}
</style>
<script type="text/javascript">
       
        var BLOCK_SIZE = 20;       
        var COLS = 40;                     
        var ROWS = 30;                        
    
        var snakes = [];            
        var c = null;                        
        var toGo = 3;                     
        var snakecount = 4;                
        var interval = null;      
        var foodX = 0;                     
        var foodY = 0;                     
        var oMark = null;               
        var isPause = false;        

        function draw(){
            c.clearRect(0,0,BLOCK_SIZE * COLS, BLOCK_SIZE * ROWS);

            for( var i = 1; i <= ROWS; i++ ) {
                c.beginPath();
                c.moveTo(0, i * BLOCK_SIZE);
                c.lineTo(BLOCK_SIZE * COLS, i * BLOCK_SIZE);
                c.strokeStyle = "gray";
                c.stroke();
            }

            for(var i = 1; i <= COLS; i++){
                c.beginPath();
                c.moveTo(i * BLOCK_SIZE, 0);
                c.lineTo(i * BLOCK_SIZE, BLOCK_SIZE * ROWS);
                c.stroke();
            }

            for (var i = 0; i < snakes.length; i++){
                c.beginPath();
                c.fillStyle = "green";
                c.fillRect(snakes[i].x, snakes[i].y, BLOCK_SIZE, BLOCK_SIZE);
                c.moveTo(snakes[i].x, snakes[i].y);
                c.lineTo(snakes[i].x + BLOCK_SIZE, snakes[i].y);
                c.lineTo(snakes[i].x + BLOCK_SIZE, snakes[i].y + BLOCK_SIZE);
                c.lineTo(snakes[i].x, snakes[i].y + BLOCK_SIZE);
                c.closePath();
                c.strokeStyle = "red";
                c.stroke();
            }

            c.beginPath();
            c.fillStyle = "yellow";
            c.fillRect(foodX, foodY, BLOCK_SIZE, BLOCK_SIZE);
            c.moveTo(foodX, foodY);
            c.lineTo(foodX + BLOCK_SIZE, foodY);
            c.lineTo(foodX + BLOCK_SIZE, foodY + BLOCK_SIZE);
            c.lineTo(foodX, foodY + BLOCK_SIZE);
            c.closePath();
            c.strokeStyle = "red";
            c.stroke();
        }

        function start(){
            for( var i = 0; i < snakecount; i++){
                snakes[i] = {x: i * BLOCK_SIZE, y: 0};
            }
            addFood();
            //draw();
            oMark.innerHTML = 0;
        }

        function move(){
            switch(toGo){
                case 1: //左边
                    snakes.push({x: snakes[snakecount - 1].x - BLOCK_SIZE, y: snakes[snakecount - 1].y});
                break;
                case 2: //上边
                    snakes.push({x: snakes[snakecount - 1].x, y: snakes[snakecount - 1].y - BLOCK_SIZE});
                break;
                case 3: //右边
                    snakes.push({x: snakes[snakecount - 1].x + BLOCK_SIZE, y: snakes[snakecount - 1].y});
                break;
                case 4: //下边
                    snakes.push({x: snakes[snakecount - 1].x, y: snakes[snakecount - 1].y + BLOCK_SIZE});
                break;
                default:;
            }
            snakes.shift();
            isEat();
            isDie();
            draw();
        }
        //吃到食物判断
        function isEat(){
            if (snakes[snakecount - 1].x == foodX && snakes[snakecount - 1].y == foodY) {
                oMark.innerHTML = (parseInt(oMark.innerHTML) + 1).toString();
                addFood();
                addSnake();
            }
        }
        //添加蛇身
        function addSnake(){
            snakecount++;
            snakes.unshift({x:BLOCK_SIZE * COLS, y:BLOCK_SIZE * ROWS});
        }
        //交互响应函数
        function keydown(keyCode){
                switch(keyCode){
                        case 37: //左边
                                if(toGo != 1 && toGo != 3)  toGo = 1;break;
                        case 38: //上边
                                if(toGo != 2 && toGo != 4)        toGo = 2;break;
                        case 39: //右边
                                if(toGo != 3 && toGo != 1)         toGo = 3;break;
                        case 40: //下的
                                if(toGo != 4 && toGo != 2)        toGo = 4;break;
                        case 80: //开始/暂停
                                if(isPause){
                                        interval = setInterval(move,200);
                                        isPause = false;
                                        document.getElementById('pause').innerHTML = "Pause";
                                }else{
                                        clearInterval(interval);
                                        isPause = true;
                                        document.getElementById('pause').innerHTML = "Start";
                                }
                                break;
                }
        }
        //制造食物
        function addFood(){
                foodX = Math.floor(Math.random() * (COLS - 1)) * BLOCK_SIZE;
                foodY = Math.floor(Math.random() * (ROWS - 1)) * BLOCK_SIZE;
                // console.log(foodX + " -- " + foodY);
        }
        //死亡判断
        function isDie(){
                if(snakes[snakecount - 1].x == -20 || snakes[snakecount - 1].x == BLOCK_SIZE * COLS
                        || snakes[snakecount - 1].y == -20 || snakes[snakecount - 1].y == BLOCK_SIZE * ROWS){
                        alert("贪吃蛇小游戏,上下左右操控,再玩一局请刷新(F5、Command+R)或重新进入。回车键确定!");
                        clearInterval(interval);
                }
                for(var i = 0; i < snakecount - 1; i++){
                        if(snakes[snakecount - 1].x == snakes[i].x && snakes[snakecount - 1].y == snakes[i].y){
                                clearInterval(interval);
                                alert("贪吃蛇小游戏,上下左右操控,再玩一局请刷新(F5、Command+R)或重新进入。回车键确定!");
                        }
                }
        }
        // 启动函数
        window.onload = function(){
            c = document.getElementById('canvas').getContext('2d');
            oMark = document.getElementById('mark_con');
            start();
            interval = setInterval(move,100);
            document.onkeydown = function(event){
                var event = event || window.event;
                keydown(event.keyCode);
            }
        }
</script>
</head>
<body>

<h3 style="font-family:KAITI;color:black;font-size:30px">贪吃蛇小游戏(电脑版,滑到最下面开始玩),快速运动会扭断脖子=自杀。上下左右操控,再玩一局请刷新(F5、Command+R)或重新进入<h3>

    <div id="page">
        <div id="yard"><canvas id="canvas" height="600px" width="800px"></canvas></div>

        <div id="help">
            <div id="mark">得分:<span id="mark_con"></span></div>
            <!--
            <div id="helper">
                <table>
                    <tr>
                        <td></td>
                        <td><button οnclick="keydown(38);">上</button></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td><button οnclick="keydown(37);">左</button></td>
                        <td><button οnclick="keydown(80);" id="pause">暂停</button></td>
                        <td><button οnclick="keydown(39);">右</button></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><button οnclick="keydown(40);">下</button></td>
                        <td></td>
                    </tr>
                <table><a href="index.html">再玩一次</a></table>
            </div>-->
        </div>
    </div>
    <div style="text-align:center;">

</div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /><br />
<br /><br />
</script>

<SCRIPT LANGUAGE="javascript"> alert("HEllo!按下回车键关闭我,开始游戏或者计算"); </SCRIPT> 
<SCRIPT language=javascript>

</body>
</html>
console 命令行工具 X clear

                    
>
console