
module.exports = ->
  script 'data-id': 'appendCSS', -> raw """
    (function(){
      window.appendCSS = function(css) {
        var head = document.getElementsByTagName('head')[0];
        var el = document.createElement('style');
        el.setAttribute('type', 'text/css');
        if (el.styleSheet) {
          el.styleSheet.cssText = css;
        } else {
          el.appendChild(document.createTextNode(css));
        }
        return head.appendChild(el);
      };
    })();
  """
