Facebook
From Denim Crane, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 183
  1.     render() {
  2.         return h(
  3.                 'div',
  4.                 {
  5.                         id: 'box',
  6.                         class: 'box box-login'
  7.                 },
  8.                         h(
  9.                 'center',
  10.                 {
  11.                     class: 'center'
  12.                 },
  13.                 h(
  14.                     'img',
  15.                     {
  16.                         src: 'https://i.imgur.com/2cod08r.png',
  17.                         id: 'logo',
  18.                         class: 'logo-select',
  19.                         alt: 'Honest Roleplay'
  20.                     },
  21.                 ),
  22.                 h(
  23.                     'div',
  24.                     {
  25.                         id: 'characterLogin',
  26.                         style: 'display: block'
  27.                     },
  28.                     h(
  29.                         'h1',
  30.                         {
  31.  
  32.                         }, "Nazwa użytkownika"
  33.                     ),
  34.                     h(
  35.                         'input',
  36.                         {
  37.                             id: 'username',
  38.                             class: 'input',
  39.                             oninput: this.validData.bind(this),
  40.                             type: 'text'
  41.                         }
  42.                     ),
  43.                     h(
  44.                         'h1',
  45.                         {
  46.  
  47.                         }, "Hasło"
  48.                     ),
  49.                     h(
  50.                         'input',
  51.                         {
  52.                             id: 'password',
  53.                             class: 'input',
  54.                             oninput: this.validData.bind(this),
  55.                             type: 'password'
  56.                         }
  57.                     ),
  58.                     h(
  59.                         'button',
  60.                         {
  61.                             id: 'button_login',
  62.                             class: 'button',
  63.                             onclick: this.checkData.bind(this),
  64.                             title: "Zaloguj się"
  65.                         }, "Zaloguj się"
  66.                     ),
  67.                     h(
  68.                         'div',
  69.                         {
  70.                             id: 'error',
  71.                             class: 'error'
  72.                         },
  73.                         h(
  74.                             'span',
  75.                             {
  76.                                 style: 'display: none'
  77.                             }, "Wprowadzone dane są niepoprawne."
  78.                         )
  79.                     )
  80.                 )
  81.             )
  82.         );
  83.     }