diff --git a/src/DAT/GUI/GUI.js b/src/DAT/GUI/GUI.js index a25c3c8..5f6ac55 100644 --- a/src/DAT/GUI/GUI.js +++ b/src/DAT/GUI/GUI.js @@ -460,6 +460,14 @@ DAT.GUI = function(parameters) { DAT.GUI.toggleHide(); } }, false); + + if (DAT.GUI.inlineCSS) { + var styleSheet = document.createElement('style'); + styleSheet.setAttribute('type', 'text/css'); + styleSheet.innerHTML = DAT.GUI.inlineCSS; + document.head.insertBefore(styleSheet, document.head.firstChild); + } + } }; @@ -685,4 +693,4 @@ if (DAT.GUI.getVarFromURL('saveString') != null) { DAT.GUI.load(DAT.GUI.getVarFromURL('saveString')); } -window["DAT.GUI"] = DAT.GUI; \ No newline at end of file +window["DAT.GUI"] = DAT.GUI;