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 93
93
}
94
94
if ( inArray ( includes , 'dat-gui' ) ) {
95
95
inputScript ( "http://cdn.bootcss.com/dat-gui/0.6.5/dat.gui.min.js" ) ;
96
+ datGuiI18N ( ) ;
96
97
}
97
98
if ( inArray ( includes , 'admin-lte' ) ) {
98
99
inputCSS ( "http://cdn.bootcss.com/admin-lte/2.3.8/css/AdminLTE.min.css" ) ;
147
148
}
148
149
}
149
150
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
+
150
161
load ( ) ;
151
162
window . isLocal = false ;
152
163
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