Coder Social home page Coder Social logo

gist-blogger's People

Contributors

m1chaeldg avatar moski avatar sethillgard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gist-blogger's Issues

Gists not displaying in Internet Explorer (IE10)

I can't manage to get the gists loading on my blog when I use Internet Explorer (IE 10). Also I've tried viewing posts containings gists from other blogs with IE and encountered the same problem.

Error in Chrome 35.0.1.1883.0 dev-m

Chrome Console Displays: Refused to execute script from 'https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

Searching for a fix lead me here: http://stackoverflow.com/questions/17341122/link-and-execute-external-javascript-file-hosted-on-github

Which lead me here: https://github.com/blog/1482-

Turns out it can't be linked to the github hosted version; self hosting the two js files (and modifying the link in the loader.js file) fixed the issue for me.

Embed in Blogger Template

Hello Moski,

Thanks for the awesome effort for creating gist-Blogger. I've been using it and finding it really handy. Is there a way to modify the script to embed it within Blogger's HTML template?

I've tried including it this way, right before but it does not work

<script expr:src='data:blog.dynamicViewsCommentsSrc'/>
<script src='https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js' type='text/javascript'/>

Thanks,
Hanxue

Uncaught ReferenceError

I just gave this a try and it failed,

Uncaught ReferenceError: $ is not defined gistBlogger.js:125

This was a standard theme from Blogger...

Mobile template doesn't load gist but dynamic view does

The instructions in the Readme allow gists in dynamic views, yaaaay! However my blog is set up to use a mobile friendly template when Blogger detects a mobile device. This doesn't load the gist-Blogger workaround and as a result only displays the text within the <div> tag.

This:

<div class="gistLoad" data-id="GistID" id="gist-GistID">Loading ....</div>

Displays:

Loading ....

As a workaround I use the following form in my HTML for my blog so that it gracefully degrades to using the proper GitHub gist loading script on mobile. However on desktop it uses gist-Blogger correctly.

<div class="gistLoad" data-id="GistID" id="gist-GistID">
    <script src="https://gist.github.com/GitUserName/GistID.js">Loading ....</script>
</div>

Can this be rolled into the code somehow? Or the Readme updated?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.