File Editor
Directories:
.. (Back)
Files:
brightcove.js
gist.js
instagram.js
jmpress.js
jquery.cycle.min.js
main.js
quiz.js
recipes-printthis.js
recipes.js
slideshow-shortcode.js
Create New File
Create
Edit File: gist.js
( function( $, undefined ) { var gistStylesheetLoaded = false, gistEmbed = function() { $( '.gist-oembed' ).each( function( i, el ) { var url = 'https://gist.github.com/' + $( el ).data( 'gist' ), ts = parseInt( $( el ).data( 'ts' ), 10 ); $.ajax( { url: url, dataType: 'jsonp', } ).done( function( response ) { if ( ts && 8 !== ts ) { $( el ).replaceWith( $( response.div ).css( 'tab-size', ts.toString() ) ); } else { $( el ).replaceWith( response.div ); } if ( ! gistStylesheetLoaded ) { var stylesheet = '<link rel="stylesheet" href="' + response.stylesheet + '" type="text/css" />'; $( 'head' ).append( stylesheet ); gistStylesheetLoaded = true; } } ); } ); }; $( document ).ready( gistEmbed ); $( 'body' ).on( 'post-load', gistEmbed ); } )( jQuery );
Save Changes
Rename File
Rename