html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!--made by vladislav shevchenko-->
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<script>
alert("tap 2 times in start to begin,button auto,isn't work now...")
var xpos=2;
var ypos=2;
function sleep(miliseconds) { var currentTime = new Date().getTime(); while (currentTime + miliseconds >= new Date().getTime()) { } }
function start(){
var cnvs=document.getElementById("an");
var ctx=cnvs.getContext("2d");
ctx.fillRect(xpos,ypos,10,10);
ctx.fillStyle="white";
ctx.fill()
}
function right(){
var cnvs=document.getElementById("an");
var ctx=cnvs.getContext("2d");
start()
xpos+=10;
}
function down(){
var cnvs=document.getElementById("an");
var ctx=cnvs.getContext("2d"); ctx.clearRect(1,1000,cnvs.height,cnvs.weight)
start()
ypos+=10;
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
#niz{
background-color:grey;
position:relative ;
vertical-align:bottom ;
border-style:dotted ;
}
#an{background-color:black;}
*{
background-color:grey;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run