dist/crocodoc.viewer.js
function (css) {
            var styleEl = document.createElement('style'),
                cssTextNode = document.createTextNode(css);
            try {
                styleEl.setAttribute('type', 'text/css');
                styleEl.appendChild(cssTextNode);
            } catch (err) {
                // uhhh IE < 9
            }
            document.getElementsByTagName('head')[0].appendChild(styleEl);
            return styleEl;
        }
function (css) {
            var styleEl = document.createElement('style'),
                cssTextNode = document.createTextNode(css);
            try {
                styleEl.setAttribute('type', 'text/css');
                styleEl.appendChild(cssTextNode);
            } catch (err) {
                // uhhh IE < 9
            }
            document.getElementsByTagName('head')[0].appendChild(styleEl);
            return styleEl;
        }
function ( css ) { var styleEl = document . createElement ( 'style' ) , cssTextNode = document . createTextNode ( css ) ; try { styleEl . setAttribute ( 'type' , 'text/css' ) ; styleEl . appendChild ( cssTextNode ) ; } catch ( err ) { // uhhh IE < 9 } document . getElementsByTagName ( 'head' ) [ 0 ] . appendChild ( styleEl ) ; return styleEl ; }
Insert the given CSS string into the DOM and return the resulting DOMElement
@param   {string} css The CSS string to insert
@returns {Element}    The <style> element that was created and inserted
Insert the given CSS string into the DOM and return the resulting DOMElement