+ 10

Code is not working on Sololearn

Why is this code https://code.sololearn.com/Wjnsx92ojP5j/?ref=app not working but jsfiddle code https://jsfiddle.net/Galaxy_Coding/qnprb1dy/ is working. The code is identical Syntax highlighting is not showing

23rd Nov 2020, 4:47 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
4 odpowiedzi
+ 4
You have typo in your link and script tags http: is missing from the beginning of the url's
23rd Nov 2020, 5:59 PM
Tibor Santa
Tibor Santa - avatar
+ 9
Tibor Santa see this https://en.wikipedia.org/wiki/Wikipedia:Protocol-relative_URL#:~:text=A%20protocol%2Drelative%20URL%20(PRURL,t%20support%20HTTPS%20at%20all Maybe this will help you understand my question
23rd Nov 2020, 8:12 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
+ 6
Galaxy-Coding (use the search bar) hm okay, I learned something new today, I did not know about protocol-relative URLs. Thank you. Maybe they just don't work on SoloLearn for some reason (could be some security or spam prevention measure). Anyway I see you managed to fix the code, so all is cool :)
23rd Nov 2020, 8:48 PM
Tibor Santa
Tibor Santa - avatar
+ 4
SL is just a place to practice, you can only practice how much SL has taught you....Maybe so It's not working
23rd Nov 2020, 5:26 PM
Aastha
Aastha - avatar