File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 9393 }
9494 if ( inArray ( includes , 'dat-gui' ) ) {
9595 inputScript ( "http://cdn.bootcss.com/dat-gui/0.6.5/dat.gui.min.js" ) ;
96+ datGuiI18N ( ) ;
9697 }
9798 if ( inArray ( includes , 'admin-lte' ) ) {
9899 inputCSS ( "http://cdn.bootcss.com/admin-lte/2.3.8/css/AdminLTE.min.css" ) ;
147148 }
148149 }
149150
151+ function datGuiI18N ( ) {
152+ document . writeln ( "<script>function registerEventListener(evt,fn){" +
153+ "if(window.attachEvent){window.attachEvent('on'+evt,fn);}" +
154+ "else{window.addEventListener(evt,fn,false);}" +
155+ "}</script>" ) ;
156+ document . writeln ( "<script>registerEventListener('load',function() { " +
157+ "dat.GUI.TEXT_CLOSED=resources.text_close;dat.GUI.TEXT_OPEN=resources.text_open;" +
158+ "})</script>" )
159+ }
160+
150161 load ( ) ;
151162 window . isLocal = false ;
152163 window . server = document . location . toString ( ) . match ( / f i l e : \/ \/ / ) ? "http://localhost:8090" : document . location . protocol + "//" + document . location . host ;
You can’t perform that action at this time.
0 commit comments