-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (96 loc) · 2.91 KB
/
Copy pathindex.html
File metadata and controls
107 lines (96 loc) · 2.91 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cliente Websocket</title>
<script type="text/javascript" src="websocket.js" charset="utf-8"></script>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
h3 {
text-align: center;
margin-top: 20px;
color: #333;
}
.container {
max-width: 500px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.block {
margin-top: 20px;
text-align: center;
}
input[type="text"] {
padding: 10px;
border-radius: 5px;
border: none;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
font-size: 18px;
width: 100%;
}
.button {
border: none;
color: #fff;
padding: 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50%;
width: 100px;
height: 100px;
transition: all 0.3s ease-in-out;
}
.buttonverde_si {
background-color: #4caf50;
}
.buttonverde_si:hover {
transform: scale(1.1);
}
.buttonrojo_no {
background-color: #f44336;
}
.buttonrojo_no:hover {
transform: scale(1.1);
}
.buttonenviar {
background-color: #ccc;
border-radius: 20px;
width: 100%;
padding: 10px;
margin-top: 20px;
transition: all 0.3s ease-in-out;
}
.buttonenviar:hover {
background-color: #555;
color: #fff;
}
</style>
</head>
<body onload="init()">
<div class="container">
<h3>Demo App para votar cliente.</h3>
<div id="message" class="block"></div>
<div class="block">
<p>Introduce el id que te han dado en la entrada:</p>
<input type="text" id="text" maxlength="4" size="4" onfocus="selectAll()" />
</div>
<div class="block">
<button class="button buttonverde_si" onclick="respondesi()">SI</button>
<button class="button buttonrojo_no" onclick="respondeno()">NO</button>
</div>
<div class="block">
<button class="button buttonenviar" id="sendJSONObject" onclick="sendJSONOjbect()">Enviar Respuesta</button>
</div>
</div>
</body>
</html>