-
Notifications
You must be signed in to change notification settings - Fork 0
/
words.html
116 lines (110 loc) · 4.71 KB
/
words.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!--
____ _____ _ _ _
| _ \ | __ \ (_) | | |
| |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___
| _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \
| |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/
|____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___|
__/ | __/ |
|___/ |___/
____________________________________
/ Si necesitas ayuda, contáctame en \
\ https://parzibyte.me /
------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
Creado por Parzibyte (https://parzibyte.me). Este encabezado debe mantenerse intacto,
excepto si este es un proyecto de un estudiante.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hangman game by parzibyte</title>
<script src="js/sweetalert2.all.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-success fixed-top">
<a class="navbar-brand" target="_blank" href="//parzibyte.me/blog">Hangman Game</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" id="botonMenu"
aria-label="Mostrar u ocultar menú">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="menu">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Play <i class="fa fa-home"></i></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="words.html">Manage words <i class="fa fa-home"></i></a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="//parzibyte.me/blog">Support & help <i
class="fa fa-hands-helping"></i></a>
</li>
</ul>
</div>
</nav>
<main class="container-fluid">
<div class="row" id="app">
<div class="col-12 text-center">
<h1>Manage words</h1>
</div>
<div class="col-12 text-center">
<div class="form-inline mb-2">
<label class="mr-2" for="newWord">Add new word:</label>
<input @keyup="deleteWhiteSpaces()" placeholder="Write word here..." class="m-2 form-control"
id="newWord" type="text" v-model="newWord">
<button @click="saveWord()" :disabled="newWord.length <= 0" class="btn btn-success">Save</button>
</div>
</div>
<div class="col-12 text-center">
<div class="jumbotron jumbotron-fluid" v-show="!words.length">
<div class="container">
<h1 class="display-4">Such empty</h1>
<p class="lead">Please add some words by using the form above</p>
</div>
</div>
<div class="table-responsive" v-show="words.length">
<table class="table">
<thead>
<tr>
<th>Word</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<tr v-for="(word, index) in words">
<td>{{word}}</td>
<td>
<button @click="deleteWord(index)" class="btn btn-outline-danger">🗑️</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
<footer class="px-2 py-2 fixed-bottom bg-dark">
<span class="text-muted">Hangman game written by
<a class="text-white" href="//parzibyte.me/blog">Parzibyte</a>
|
<a target="_blank" class="text-white" href="//github.com/parzibyte/hangman-javascript">
View source
</a>
</span>
</footer>
</body>
<script src="js/vue.min.js"></script>
<script src="js/common.js"></script>
<script src="js/manage_words.js"></script>
</html>