Anonymous Anonymous - 5 months ago
1453 0

web components

Javascript

trivia-game

///////////////////////////////////////
// Game component
class TriviaGame extends HTMLElement {
  constructor(){
    super()

    this.currentQuestionIndex = 0
    
    this.innerHTML = `
      <style>
        .startBtn{ 
          font-size:22px; 
          margin: 10px 0;
        }
      </style>

      <header>
        <trivia-score></trivia-score>
        <br />
        <button class='startBtn'>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download