+ 3
I haven't uploaded the images into a folder in sololearn. So I think the images aren't being displayed.
https://code.sololearn.com/WSMJu9FAAB7U/?ref=app How can I solve this problem. And how can I upload for instance 2 files like chat.js and bot. js into the code editor (in JS tab) as there is no separate option.
10 ответов
+ 6
There is no where to store them here.
You will need to place them somewhere on the internet that is accessible by everyone. Somewhere like a free image hosting service (such as https://imgbb.com/). if you already have a web hosting service you can upload them there
+ 9
You can upload your images to a site like imgur.com then use a link in your code to display the image
eg
https://code.sololearn.com/W0Ah5WmNz6QR/?ref=app
+ 5
in your code <img src> bit you would include something like <img src ="https://goo.gl/images/Tzf0h1"> but with the link to your image/s
+ 4
Tq @jay
+ 4
i imagine you could do the same method. not sure about that one. i dont javascript. but dare say you could upload them to a webhost somewhere and include them here
+ 3
you will need to store images elsewhere(another server) and link them in your code.
+ 3
@jay In the code editor how can I add 2js files (chat.js, bot. js) since there is no separate option.
+ 3
K le me try
+ 2
Can you plz explain in depth @jay
+ 1
For sololearn programs you can't put images stored on your device so you might have to use a CDN (content delivery network) to link images in the page or use data uri images by converting your images into text that HTML can display as a image..
You can convert your images here
https://websemantics.uk/tools/image-to-data-uri-converter/
https://code.sololearn.com/WC54BZf4fJ94/?ref=app