+ 1
What's wrong with this...?
12 Antworten
+ 3
https://code.sololearn.com/WKIsBG0GfIY7/?ref=app
I think this might help
+ 2
Mustafha Ahmad Actually if code is placed in JS tab then it will be rendered first before body's element and hence document.selection will not work
So simply I pasted that code down all the elements of body
+ 2
You can use onload function
As
onload = () => function
Also your function and variables should be global to be called. ☺
hope it helps 😀
+ 1
at line eleven you wrote “ctc” instead of “ctx” for the variable
CTX.translate(-ox,-oy);
+ 1
Thank you
What you have changed is,you wrote javascript in internal mode right. ?
0
I have changed,but its not working...
0
Uncaught TypeError: Cannot read property 'getContext' of null
Line: 2Uncaught TypeError: Cannot read property 'translate' of undefined
Line: 8
0
I asked to solve the problem...
0
What to do
0
If i want to place in js tab
0
Thank you
0
Nothing wrong working just right