|
Не работает Canvas на HTML
|
|||
---|---|---|---|
#18+
Не работает Canvas на HTML. Пишет что-то очень странное (скрин ниже). Что исправить или переписывать всё? ====================== <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <tile>Анимация с canvas</title> </head> <body> <canvas id="canvas" width="200" height="200"></canvas> <script> var canvas = document.getElementByld("canvas") var ctx = canvas.getContext("2d") var position = 0; setInterval(function () { ctx.clearRect(0, 0, 200, 200); ctx.fillRect(position, 0, 20, 20); position++; if (position > 200) { position = 0; } }, 30}; </script> </body> </html> ... |
|||
:
Нравится:
Не нравится:
|
|||
24.05.2019, 21:35 |
|
|
start [/forum/topic.php?fid=59&msg=39818043&tid=2121294]: |
0ms |
get settings: |
12ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
143ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
others: | 243ms |
total: | 482ms |
0 / 0 |