Images in JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Images in JavaScript

How do I get my game images to show up on my phone? My images are local (works fine) but when I link to the image using the URL my code stops working. On my phone I get a “script error” when I try to launch the code to start the game. https://code.sololearn.com/W54u7o812TBp/?ref=app

6th Jul 2018, 9:32 PM
ThThinka
ThThinka - avatar
2 Answers
+ 13
You need to upload your images to file services (Dropbox for example) to make them visible to the Internet. https://www.sololearn.com/discuss/1054246/?ref=app
6th Jul 2018, 9:41 PM
Igor Makarsky
Igor Makarsky - avatar
0
i tried with google before. No luck. Dropbox was my next move. Thanks
7th Jul 2018, 1:03 PM
ThThinka
ThThinka - avatar