summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-03-01 02:57:02 -0500
committerJules Laplace <jules@okfoc.us>2015-03-01 02:57:02 -0500
commit48c6ecda32f329b2874d3f79310268819054ea3c (patch)
treec4e2efd21cf3089e79f11c224abf1e70d582b496 /js/util.js
parentfb46410c5cb6aab64ed61def053076ab0ef35635 (diff)
parent5b7549932c55ebe7388258fb19b65a907dd5d3d1 (diff)
Merge branch 'master' of lmno:ascii
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 91055f9..81e8f60 100644
--- a/js/util.js
+++ b/js/util.js
@@ -115,6 +115,10 @@ function weave(a){
reverse(aa[1]).forEach(function(el){ b.push(el) })
return b
}
+function cssRule (selector, declaration) {
+ var x = document.styleSheets, y = x.length-1;
+ x[y].insertRule(selector+"{"+declaration+"}", x[y].cssRules.length);
+}
// easing functions
function circular (t) { return Math.sqrt( 1 - ( --t * t ) ) }