Skip to content

Instantly share code, notes, and snippets.

View danielgroner's full-sized avatar

Daniel danielgroner

View GitHub Profile
@danielgroner
danielgroner / svg.js
Created September 27, 2019 12:49 — forked from schmidt1024/svg.js
Replace all SVG images with inline SVG using jQuery
/*
* 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) {