+ 15
Why isn't PC to SoloLearn working?
I made a code on my PC and wanted to use it in SoloLearn as well so I copied the code and it's not working. How can I fix it? https://code.sololearn.com/W6785Tfe1H6G/?ref=app
18 Answers
+ 12
When you post your source code from your IDE, it contains no line break, and then you posted on SL directly, so the JS is in one line.
Problem is that your // for comment will make all codes after it a comment, thus you can see most part is grey now. I found one // here:
document.getElementById("demo").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s "; // If the count down is finished, write some text if (distance < 0)
But don't remove it manually, the solve should be in this way:
Go to your IDE,
Copy
Paste in Windows notepad, now line break is added
Select all, copy
Paste in sl web js tab
Now code should be properly lined.
Do same for css
+ 41
Maybe you've already fixed it, but it works. And great!
+ 35
😀 I took a screenshot from your code. The countdown and the others animation works perfectly. 👍
https://dl.dropboxusercontent.com/s/vygmziet7h6850p/Screenshot_2019-05-01%20Ramadan%20Mubarak%20.png?dl=0
+ 15
Maybe put it in order first and then check the synatx of the code. Maybe you forgot one little stuff that make your code wrong when you copied and paste.
+ 13
Edwin Pratt oops wrong typo
+ 10
Gordon Great, thank you!
+ 10
NiKi 🌸 Still doesn't work for me but thanks 😂
+ 9
⚜️JTLZ⚜️[#Never Give Up!]
* synatxe should be syntax
+ 9
In my aspects, your pc IDE & SoloLearn online IDE,there is a lot of difference.
+ 7
Yes it works now, but the time is not centred on my device.
+ 7
Jekar Abdo I'm not sure I can help, maybe try asking it in the Q&A because I'm no expert. What do you need help with?
+ 6
Jekar Abdo What kind of work?
+ 2
Hi
+ 2
can you help me for work please in Bosnia and thank you?☺
+ 1
I need work
+ 1
I don't know what do you have a work
+ 1
and this is first time I right here