|
Не работает 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/moderation_log.php?user_name=rigid_joke]: |
0ms |
get settings: |
7ms |
get forum list: |
10ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
144ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
others: | 656ms |
total: | 901ms |
0 / 0 |