Skip to content

Instantly share code, notes, and snippets.

/*
* Replace all SVG images with inline SVG
*/
jQuery('img.svg').each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
jQuery.get(imgURL, function(data) {
@imaginethepoet
imaginethepoet / 0_reuse_code.js
Created December 2, 2013 14:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@imaginethepoet
imaginethepoet / popup_example_test
Created February 2, 2012 14:58
Simple Multipage - Popup Example - Broken
<code>
<!-- Start of first page -->
<div data-role="page" id="foo">
<div data-role="header">
<h1>Foo 1</h1>
</div>
<!-- /header -->
<div data-role="content" data-theme="f">