-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaraFeliz_Dani.html
More file actions
50 lines (50 loc) · 1.32 KB
/
CaraFeliz_Dani.html
File metadata and controls
50 lines (50 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<link href="https://fonts.googleapis.com/css?family=Oswald|Titan+One" rel="stylesheet">
<meta charset="utf-8">
<title>Ejercicio 9</title>
<script type="text/javascript">
function cambiar1(){
document.getElementById("feliz").src = "https://images.emojiterra.com/google/android-oreo/512px/2639.png";
}
function cambiar2(){
document.getElementById("feliz").src = "https://images.emojiterra.com/google/android-oreo/512px/1f92d.png";
}
</script>
<style>
body{
text-align: center;
}
h1, p{
font-family: Oswald;
}
button{
font-size: 20px;
border-radius: 5px;
border: none;
width: 15%;
height: 60px;
font-family: Titan One;
}
#hap{
background-color: #13f103;
}
#sad{
background-color: #e01c0b;
}
button:hover{
cursor: pointer;
}
</style>
</head>
<body>
<h1>CAMBIAR TU ESTADO ANIMO CON DOS BOTONES!</h1>
<p>ACABA CON TU DEPRESIÓN!</p>
<div id="cara">
<button onclick="cambiar1()" id="sad">TRSITE</button>
<img src="https://png.icons8.com/metro/1600/question-mark.png" id="feliz" width="30%" height="30%">
<button onclick="cambiar2()" id="happy">FEILZ</button>
</div>
</body>
</html>