Help: My Wikipedia Viewer App does not work in my local machine

Help: My Wikipedia Viewer App does not work in my local machine
0

#1

Please, I tried all i could to make my app work in my location machine because coding with CodePen slows me down, but all my effort did not make any difference as my app refuses to work except on CodePen.
Here is my Code:

See the Pen Wikipedia Viewer by AMADI LUCKY SAMPSON (@tranxcop) on CodePen.


#2

If you check your console (Ctrl+Shft+I in Chrome) you would see the following error message:

jquery.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.min.js:4
ajax @ jquery.min.js:4
(anonymous) @ pen.js:18
dispatch @ jquery.min.js:3
q.handle @ jquery.min.js:3
To fix this, make sure you are making asynchronous calls to the API by using the following setting:

async: true,

#3

Thanks… I have tried that and yet nothing is happening.


#4

Do you see any errors in the console (Ctrl+Shft+I in chrome) on your local machine version?


#5

It works fine for me. How did you transfer your files from Codepen to your computer? You might not have set it up correctly, e.g. forgetting to include script tags.

At the bottom right corner of Codepen there should be a button to export. Click on it then choose export zip. Download it and from there you can extract it to a folder in your computer and it should work fine.


#6

Oh thanks…that helped.


#7

not at all…