Skip to content

Instantly share code, notes, and snippets.

View chrisege's full-sized avatar

Chris Ege chrisege

View GitHub Profile
@chrisege
chrisege / script.js
Last active December 14, 2015 14:49
A CodePen by chrisege. ajax example
// you can pass in a different jsonUrl as needed:
// doSomeAjax({jsonUrl:'/path/to/some/other/json'});
function doSomeAjax(opts){
var defaults = {
jsonUrl : "/path/to/json"
};
var options = $.extend( {}, defaults, opts );
@chrisege
chrisege / index.html
Created March 4, 2013 22:01
A CodePen by chrisege. on-demand video players
<!-- using older jquery because $.browser is removed in 1.9 -->
<div class="container">
<div class="videoCtn" data-media-id="2210514101" >
<img src="http://www.wttw.com/video/images/graves_SW1V.jpg">
</div>
<div class="videoCtn" data-media-id="2210737419" >
<img src="http://pbs.merlin.cdn.prod.s3.amazonaws.com/Video%20Asset/WTTW/geoffrey-baer-tours/46865/images/363627_iPad-Large_20120919065200.jpg.resize.768x432.jpg">
</div>
</div>