• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

aarongough/ajax-gist: [DEPRECATED] A simple web-service that allows GitHub Gists ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

aarongough/ajax-gist

开源软件地址:

https://github.com/aarongough/ajax-gist

开源编程语言:

JavaScript 91.9%

开源软件介绍:

Ajax-Gist

Ajax-Gist is a simple web-service that acts as a proxy between your website and the GitHub Gist service to provide a translation of the Gist embed code that is AJAX friendly.

The normal Gist embed code uses Javascript 'document.write' commands to insert the Gist into your webpage. This is a problem when you want to insert a Gist after the page has loaded as 'document.write' will wipe out the current content of the page!

This service is mainly aimed at people that need to embed Gists in their application in a non-standard fashion. The service was inspired by the need to embed Gists in pages via AJAX for ReadMyCode.org

To use the service simply grab the Gist ID that you're after and embed it in a script tag pointing to the web-service like so:

<script src="http://ajax-gist.com/gist/419993.js" type="text/javascript"></script>
                                         ^ Gist ID

Check out the examples page to see simple demos using the service both statically and dynamically.

Gists accessed via this web-service are cached for 30 minutes, so if you make any changes to an existing Gist it will take 30 minutes before you see the changes.

Author & Credits

Author

Aaron Gough

Copyright © 2010 Aaron Gough (thingsaaronmade.com), released under the MIT license




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap