Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prettify.js not working on site getskeleton.com #354

Open
radiosparks opened this issue May 16, 2017 · 2 comments
Open

prettify.js not working on site getskeleton.com #354

radiosparks opened this issue May 16, 2017 · 2 comments

Comments

@radiosparks
Copy link

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

@radiosparks radiosparks changed the title prettify.js not work in site getskeleton.com prettify.js not working on site getskeleton.com May 16, 2017
@dnafication
Copy link

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.

@alexgurrola
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants