-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (105 loc) · 3.32 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
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
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<title>Chuck Norris Joke</title>
</head>
<link rel="stylesheet" href="index.css">
<link rel="Website icon" type="png" href="img2.png">
<style>
*{
padding: 0;
margin: 0;
}
</style>
<body>
<div class="titulo" id="title">
<h1>CHUCK NORRIS JOKES</h1>
</div>
<div class="formulario">
<form method="post" id="formulario-categorias">
<label for="nueva-categoria">Select a category:</label>
<select name="option" id="option">
<option disabled selected value="">SELECT</option>
<option value="animal">animal</option>
<option value="career">career</option>
<option value="celebrity">celebrity</option>
<option value="dev">dev</option>
<option value="explicit">explicit</option>
<option value="fashion">fashion</option>
<option value="food">food</option>
<option value="history">history</option>
<option value="money">money</option>
<option value="movie">movie</option>
<option value="music">music</option>
<option value="political">political</option>
<option value="religion">religional</option>
<option value="science">science</option>
<option value="sport">sport</option>
<option value="travel">travel</option>
</select>
<button type="submit" id="enviar" class="enviar">Send</button>
</form>
</div>
<button>
<a href="#contact">Click HERE!</a>
</button>
<div id="divi"></div>
<section id="contact" class="contacto">
<div class="envelope-wrapper">
<div id="envelope" class="close">
<div class="front flap"></div>
<div class="front pocket"></div>
<div class="letter">
<p class="words line1">Hi,</p>
<p class="words line2">
<a href="https://www.linkedin.com/in/luciana-cabrera-olmedo/">Contact</a>
</p>
<p class="words line3">Love,</p>
<p class="words line4">Luciana</p>
</div>
<!-- <div class="hearts">
<div class="heart a1"></div>
<div class="heart a2"></div>
<div class="heart a3"></div>
</div> -->
</div>
</div>
<div class="reset">
<button id="open">Open</button>
<button id="reset">Close</button>
</div>
<button>
<div class="arrow-container"><a href="#title">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"/></svg>
</a>
</div>
</button>
</section>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src= "script.js"></script>
<script>
$(document).ready(function() {
var envelope = $("#envelope");
var btn_open = $("#open");
var btn_reset = $("#reset");
envelope.click(function() {
open();
});
btn_open.click(function() {
open();
});
btn_reset.click(function() {
close();
});
function open() {
envelope.addClass("open")
.removeClass("close");
}
function close() {
envelope.addClass("close")
.removeClass("open");
}
})
</script>
</body>
</html>