diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-03-01 02:57:02 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-03-01 02:57:02 -0500 |
| commit | 48c6ecda32f329b2874d3f79310268819054ea3c (patch) | |
| tree | c4e2efd21cf3089e79f11c224abf1e70d582b496 /js/util.js | |
| parent | fb46410c5cb6aab64ed61def053076ab0ef35635 (diff) | |
| parent | 5b7549932c55ebe7388258fb19b65a907dd5d3d1 (diff) | |
Merge branch 'master' of lmno:ascii
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 ) ) } |
