Skeleton icon indicating copy to clipboard operation
Skeleton copied to clipboard

prettify.js not working on site getskeleton.com

Open radiosparks opened this issue 8 years ago • 2 comments

Just noticed prettify.js not working on your site. Looks like a link problem.

radiosparks avatar May 16 '17 19:05 radiosparks

After going through the network logs (in chrome dev tools) I see that browser is receiving HTTP 404. The url in the page is not valid anymore. On trying the url directly, got following error.

  1. That’s an error.

The requested URL /svn/loader/run_prettify.js was not found on this server. That’s all we know.

Solution: Change the url to https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js

Let me know if you want me to fix it.

dnafication avatar Nov 23 '17 04:11 dnafication

I threw together a simple function I could run in the JS Console to enable prettify for the time being.

(function(url) {
    var js = document.createElement('script');
    js.src = url;
    document.body.appendChild(js);
})('https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js');

I'm not sure how else to work around it at this time.

alexgurrola avatar Dec 06 '17 18:12 alexgurrola