function self.ready() { centerize(800, 600); } class Install: Reactor.Component { function render() { return
{translate('Installation')}
{translate('Installation Path')} {": "}
{translate('Create start menu shortcuts')}
{translate('Create desktop icon')}
{translate('End-user license agreement')}
{translate('agreement_tip')}
; } event click $(#cancel) { view.close(); } event click $(#aggrement) { view.open_url("http://rustdesk.com/privacy"); } event click $(#submit) { for (var el in $$(button)) el.state.disabled = true; $(progress).style.set{ display: "inline-block" }; var args = ""; if ($(#startmenu).value) { args += "startmenu "; } if ($(#desktopicon).value) { args += "desktopicon "; } view.install_me(args); } } $(body).content();