summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
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 ) ) }