diff options
Diffstat (limited to 'js/util.js')
| -rw-r--r-- | js/util.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 ) ) } |
