client/webserver/site/src/js/settings.js
/* showForm shows a modal form with a little animation. */
showForm shows a modal form with a little animation.
showForm shows a modal form with a little animation .
async showForm (form) {
    const page = this.page
    this.currentForm = form
    Doc.hide(page.dexAddrForm, page.confirmRegForm)
    form.style.right = '10000px'
    Doc.show(page.forms, form)
    const shift = (page.forms.offsetWidth + form.offsetWidth) / 2
    await Doc.animate(animationLength, progress => {
      form.style.right = `${(1 - progress) * shift}px`
    }, 'easeOutHard')
    form.style.right = '0px'
  }
async showForm ( form ) { const page = this . page this . currentForm = form Doc . hide ( page . dexAddrForm , page . confirmRegForm ) form . style . right = '10000px' Doc . show ( page . forms , form ) const shift = ( page . forms . offsetWidth + form . offsetWidth ) / 2 await Doc . animate ( animationLength , progress => { form . style . right = ` ${ ( 1 - progress ) * shift } ` } , 'easeOutHard' ) form . style . right = '0px' }
showForm shows a modal form with a little animation.
showForm shows a modal form with a little animation .