Skip to content

Instantly share code, notes, and snippets.

Avatar

Pixievolt No. 1 PixievoltNo1

View GitHub Profile
View Pixievolt No. 1 Logo Creator's Randomizer.md
View Vex contributions.markdown
  • PR #233: Fixed an animation bug affecting IE 11
  • PR #238: Added Autoprefixer to the Gruntfile and cut down CSS file sizes (after getting the go-ahead in issue #236)
  • PR #241: Documentation improvements
View gist:431fe9b15fe66bcd1f9c
// Shortcut functions makeSVGElem & makeUseElem for making SVG elements
var svgNS = "http://www.w3.org/2000/svg";
function makeSVGElem(name) { return document.createElementNS(svgNS, name); }
function makeUseElem(url) {
var elem = makeSVGElem("use");
elem.setAttributeNS("http://www.w3.org/1999/xlink", "href", url);
return elem;
}
// Workaround for jQuery bug #11166 to allow setting viewBox
You can’t perform that action at this time.