Anonymous Anonymous - 2 months ago
324 0

web components

Javascript

tikal-trivia-game-1

///////////////////////////////////////
// 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