+ 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

1st May 2019, 12:08 AM
Coder
Coder - avatar
17 odpowiedzi
+ 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
1st May 2019, 1:07 AM
Gordon
Gordon - avatar
+ 41
Maybe you've already fixed it, but it works. And great!
1st May 2019, 12:38 AM
NiKi🌸💕 (DM bug🐞)
NiKi🌸💕 (DM bug🐞) - avatar
+ 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
1st May 2019, 2:19 AM
NiKi🌸💕 (DM bug🐞)
NiKi🌸💕 (DM bug🐞) - avatar
+ 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.
1st May 2019, 12:10 AM
JTLZ
+ 13
Edwin Pratt oops wrong typo
1st May 2019, 12:15 AM
JTLZ
+ 10
Gordon Great, thank you!
1st May 2019, 1:46 AM
Coder
Coder - avatar
+ 10
NiKi 🌸 Still doesn't work for me but thanks 😂
1st May 2019, 1:46 AM
Coder
Coder - avatar
+ 9
⚜️JTLZ⚜️[#Never Give Up!] * synatxe should be syntax
1st May 2019, 12:14 AM
Edwin Pratt
Edwin Pratt - avatar
+ 9
In my aspects, your pc IDE & SoloLearn online IDE,there is a lot of difference.
2nd May 2019, 2:35 AM
Nasir❤
Nasir❤ - avatar
+ 7
Yes it works now, but the time is not centred on my device.
1st May 2019, 5:41 AM
Sonic
Sonic - avatar
+ 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?
1st May 2019, 11:11 PM
Coder
Coder - avatar
+ 6
Jekar Abdo What kind of work?
1st May 2019, 11:14 PM
Coder
Coder - avatar
+ 2
Hi
1st May 2019, 10:37 PM
Jekar Abdo
Jekar Abdo - avatar
+ 2
can you help me for work please in Bosnia and thank you?☺
1st May 2019, 10:39 PM
Jekar Abdo
Jekar Abdo - avatar
+ 1
I need work
1st May 2019, 11:14 PM
Jekar Abdo
Jekar Abdo - avatar
+ 1
I don't know what do you have a work
1st May 2019, 11:19 PM
Jekar Abdo
Jekar Abdo - avatar
+ 1
and this is first time I right here
1st May 2019, 11:21 PM
Jekar Abdo
Jekar Abdo - avatar