Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
1,291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.04 KB | None | 0 0
  1. <form onSubmit={this.handleSubmit} id="search">
  2.                             <table>
  3.                                 <tbody>
  4.                                     <tr>
  5.                                         <td className="text">
  6.                                             <input onChange={this.handleChange} className="searchplayer" placeholder="Player name search..." type="search" />
  7.                                         </td>
  8.                                         <td className="platforms">
  9.                                             <i onClick={() => {
  10.                                                 this.handleClick('uplay');
  11.                                                 this.setState({ uplay: true, xbl: false, psn: false })
  12.                                             }
  13.                                             } className={`platform s_uplay fab fa-windows ${this.state.uplay ? 'selected' : ''}`} />
  14.                                             <i onClick={() => {
  15.                                                 this.handleClick('psn');
  16.                                                 this.setState({ psn: true, uplay: false, xbl: false })
  17.                                             }
  18.                                             } className={`platform s_psn fab fa-playstation ${this.state.psn ? 'selected' : ''}`} />
  19.                                             <i onClick={() => {
  20.                                                 this.handleClick('xbl');
  21.                                                 this.setState({ xbl: true, uplay: false, psn: false })
  22.                                             }
  23.                                             } className={`platform s_xbl fab fa-xbox ${this.state.xbl ? 'selected' : ''}`} />
  24.                                         </td>
  25.                                         <td className="go"><button><i className="fas fa-angle-right" /></button></td>
  26.                                     </tr>
  27.                                 </tbody>
  28.                             </table>
  29.                         </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement