1st Jul 2020, 6:48 AM
Mustafha Ahmad
Mustafha Ahmad - avatar
12 odpowiedzi
+ 3
https://code.sololearn.com/WKIsBG0GfIY7/?ref=app I think this might help
1st Jul 2020, 9:46 AM
Ankit Yadav
Ankit Yadav - avatar
+ 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
1st Jul 2020, 10:00 AM
Ankit Yadav
Ankit Yadav - avatar
+ 2
You can use onload function As onload = () => function Also your function and variables should be global to be called. ☺ hope it helps 😀
1st Jul 2020, 10:16 AM
Ankit Yadav
Ankit Yadav - avatar
+ 1
at line eleven you wrote “ctc” instead of “ctx” for the variable CTX.translate(-ox,-oy);
1st Jul 2020, 6:58 AM
P1NBALL72
P1NBALL72 - avatar
+ 1
Thank you What you have changed is,you wrote javascript in internal mode right. ?
1st Jul 2020, 9:55 AM
Mustafha Ahmad
Mustafha Ahmad - avatar
0
I have changed,but its not working...
1st Jul 2020, 7:27 AM
Mustafha Ahmad
Mustafha Ahmad - avatar
0
Uncaught TypeError: Cannot read property 'getContext' of null Line: 2Uncaught TypeError: Cannot read property 'translate' of undefined Line: 8
1st Jul 2020, 8:25 AM
Jesse Wasike
Jesse Wasike - avatar
0
I asked to solve the problem...
1st Jul 2020, 9:28 AM
Mustafha Ahmad
Mustafha Ahmad - avatar
0
What to do
1st Jul 2020, 10:01 AM
Mustafha Ahmad
Mustafha Ahmad - avatar
0
If i want to place in js tab
1st Jul 2020, 10:01 AM
Mustafha Ahmad
Mustafha Ahmad - avatar
0
Thank you
1st Jul 2020, 10:22 AM
Mustafha Ahmad
Mustafha Ahmad - avatar
0
Nothing wrong working just right
3rd Jul 2020, 5:08 AM
𝖆𝖊𝖙𝖍𝖊𝖗
𝖆𝖊𝖙𝖍𝖊𝖗 - avatar