Commit fbe1bfaf authored by i❤computers's avatar i❤computers

Handle multiple SVGs for reset

In preparation for bringing in the logo
parent 6cdd6db9
......@@ -100,12 +100,15 @@ document.addEventListener('DOMContentLoaded', function initializePage() {
// Doing this cause of a Safari bug: https://bugs.webkit.org/show_bug.cgi?id=183433
function resetSVGTransforms() {
Array.from($('svg')[0].children).forEach(function applyTransform(element) {
element.style.transform = "scale(1)";
requestAnimationFrame(function removeTransform() {
element.style.transform = "";
$('svg').forEach(function resetSVGTransform(svg) {
Array.from(svg.children).forEach(function applyTransform(element) {
element.style.transform = "scale(1)";
requestAnimationFrame(function removeTransform() {
element.style.transform = "";
})
})
})
});
}
}, false);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment