|
1620 0 |
|
///////////////////////////////////////
// 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'>