Export.zip from codepen and commit to github not working

Export.zip from codepen and commit to github not working
0

#1

Hi,

I have exported a pen from Codepen, extracted the files, and commited them to a Github repository created earlier, but the JS code does not work anymore.

When I download the files from the Github repository to my PC, it works fine.

Can anybody help me know what I’am doing wrong here?

Github Link

Codepen Link

Thanks ind advance


#2

The JS code doesn’t work where? In codepen? It doesn’t seem broken in codepen and if it’s working for you on your pc after you downloaded from github, Where is it broken?


#3

It is broken on Github

https://tchoukoualeu.github.io/JS_Pomodoro_Clock/

Update:
current link: https://tchoukoualeu.github.io/JS-Pomodoro-Clock/


#4

If you open up the network activity in the dev tools it shows the cdn link to the jquery is blocked. But I am not sure why


#5

Thank you very much.

I changed the line

<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>

to

<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>

And all started working. I did not have in mind I can use the dev tools to check what is going wrong.

Thanks again!


#6

Nice one. I like the design of your app.

Also the link is giving me a 404 now
https://tchoukoualeu.github.io/JS_Pomodoro_Clock/


#7

Oh Sorry! :wink:
I renamed the repository, and I had to update the link
Here is the current one
https://tchoukoualeu.github.io/JS-Pomodoro-Clock/