File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { SetEventHandler, HandleEvent } from './eventhandler.js';
5
5
import { PluginType , RegisterPlugin } from './pluginregistry.js' ;
6
6
import { ButtonDialog , ProgressDialog } from './dialog.js' ;
7
7
import { ShowMessageDialog } from './dialogs.js' ;
8
+ import { Loc } from '../engine/core/localization.js' ;
8
9
9
10
import * as Engine from '../engine/main.js' ;
10
11
export { Engine } ;
@@ -25,7 +26,8 @@ export const UI = {
25
26
ButtonDialog,
26
27
ProgressDialog,
27
28
ShowMessageDialog,
28
- HandleEvent
29
+ HandleEvent,
30
+ Loc
29
31
} ;
30
32
31
33
export function SetWebsiteEventHandler ( eventHandler )
@@ -46,8 +48,12 @@ export function RegisterToolbarPlugin (plugin)
46
48
export function StartWebsite ( externalLibLocation )
47
49
{
48
50
SetExternalLibLocation ( externalLibLocation ) ;
51
+
49
52
window . addEventListener ( 'load' , ( ) => {
50
- let website = new Website ( {
53
+ document . getElementById ( 'intro_dragdrop_text' ) . innerHTML = Loc ( 'Drag and drop 3D models here.' ) ;
54
+ document . getElementById ( 'intro_formats_title' ) . innerHTML = Loc ( 'Check an example file:' ) ;
55
+
56
+ let website = new Website ( {
51
57
headerDiv : document . getElementById ( 'header' ) ,
52
58
headerButtonsDiv : document . getElementById ( 'header_buttons' ) ,
53
59
toolbarDiv : document . getElementById ( 'toolbar' ) ,
Original file line number Diff line number Diff line change 68
68
< div class ="intro_content " id ="intro_content ">
69
69
< div class ="intro_logo ">
70
70
< svg class ="intro_logo "> < use href ="assets/images/3dviewer_net_logo_text.svg#logo "> </ use > </ svg >
71
- < div class ="intro_dragdrop_text "> Drag and drop 3D models here. </ div >
71
+ < div class ="intro_dragdrop_text " id =" intro_dragdrop_text " > </ div >
72
72
</ div >
73
73
< div class ="intro_formats ">
74
- < div class ="intro_formats_title "> Check an example file: </ div >
74
+ < div class ="intro_formats_title " id =" intro_formats_title " > </ div >
75
75
< div class ="intro_file_formats ">
76
76
< a href ="#model=assets/models/RhinoLogo.3dm "> 3dm</ a >
77
77
< a href ="#model=assets/models/cubes.3ds,assets/models/texture.png "> 3ds</ a >
You can’t perform that action at this time.
0 commit comments