-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (40 loc) · 1.66 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Scramble game</title>
<script src="https://unpkg.com/vue@next"></script>
</head>
<body>
<div id="app" class="container">
<h1>Welcome to Scrameble.</h1>
<div ref="alert" :class="game.alertClass" v-if="game.isVisible" role="alert">
<strong> {{ game.messageBody }} </strong>
</div>
<div class=push-down>
<h3 class="pull-left">{{ game.points }}<br/> Points</h3><h3 class="pull-right">{{ game.strikes }} <br/>Strikes</h3>
<br><br>
<span>
<h1 class="scrumbled-word">
{{ game.scrambledWord }}
</h1>
</span>
<input type="text" class="form-control form-control-lg" v-model="game.guess" name="game.guess" @keyup.enter="guessWord" :disabled="game.disabled == 1"/>
<br>
<button type="button" class="btn btn-danger" @click="passWord">
<span class="badge badge-light">{{ game.passes }}</span> Passes Remaining
</button>
<div v-if="game.playAgainVisible" class="push-down">
<button type="button" class="btn btn-primary btn-lg" @click="playAgain">
Play again
</button>
</div>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>