-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
268 lines (237 loc) · 11.7 KB
/
contact.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" data-theme="light">
<!--<![endif]-->
<head>
<title data-i18n="title">Iván Pérez - Portfolio</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Iván Pérez - Portfolio">
<!-- Link-->
<link rel="shortcut icon" href="assets/images/resume.png" title="LogoIcon">
<link
href='https://fonts.googleapis.com/css?family=Roboto:400,500,400italic,300italic,300,500italic,700,700italic,900,900italic'
rel='stylesheet' type='text/css'>
<!-- Global CSS -->
<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
<!-- Plugins CSS -->
<link rel="stylesheet" href="assets/plugins/font-awesome/css/font-awesome.css">
<!-- Theme CSS , 5 for orange -->
<link id="style" rel="stylesheet" href="assets/css/contact.css">
<link id="theme-style" rel="stylesheet" href="assets/css/navbar.css">
<link id="theme-style" rel="stylesheet" href="assets/css/toggleDarkLight.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Dynamic background -->
<ul class="circles">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<!-- End dynamic background -->
<!--Dark Light mode -->
<label>
<input type="checkbox">
<span class="check" id="toggle" onclick="getTheme()"></span>
<span id="mode">Dark/Light Mode</span>
</label>
<!--Navbar -->
<nav class="navbar navbar-default banner">
<div class="container-fluid ">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button class="dropbtn dropdown-toggle" onclick="window.location.href='/index.html';" type="button">
<span data-i18n="navbar.home">Home</span></button>
<button class="dropbtn dropdown-toggle" onclick="window.location.href='/about.html';"
type="button"><span data-i18n="navbar.about">About me</span></button>
<button class="dropbtn dropdown-toggle" onclick="window.location.href='/projects.html';"
type="button"><span data-i18n="navbar.projects">Projects</span></button>
<button class="dropbtn dropdown-toggle" onclick="window.location.href='/contact.html';"
type="button"><span data-i18n="navbar.contact" id="currentPage" >Contact</span></button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div>
<ul class="nav navbar-nav navbar-right navbar-nav-primary">
<li>
<div class="dropdown">
<button class="dropbtn dropdown-toggle" type="button" data-toggle="dropdown">
<span data-i18n="language">Choose language</span>
<span class="arrow down"></span>
</button>
<ul class="dropdown-menu">
<form>
<fieldset>
<label class="dropdown-content">
<input class="dropdown-content" type="button" alt="en" name="lang"
value="English" />
</label>
<br>
<label class="dropdown-content">
<input class="dropdown-content" type="button" alt="es" name="lang"
value="Español" />
</label>
</fieldset>
</form>
</ul>
</div>
</li>
</ul>
</div>
</div><!-- /.container-fluid -->
</nav>
<!--Fin navbar -->
<div class="wrapper">
<div id="left">
<div class="">
<h1 class="title" data-i18n="contact.touch1">Let's get in <span data-i18n="contact.touch2"> touch
</span> </h1>
</div>
<div class="contact-container container-block">
<ul class="contact-list">
<li class="email">
<em class="fa fa-envelope"></em>
<a
href="javascript:location='mailto:\u0069\u0070\u0065\u0072\u0065\u007a\u0068\u0075\u0065\u0074\u0065\u0040\u0067\u006d\u0061\u0069\u006c\u002e\u0063\u006f\u006d';void 0">
<script
type="text/javascript">document.write('\u0069\u0070\u0065\u0072\u0065\u007a\u0068\u0075\u0065\u0074\u0065\u0040\u0067\u006d\u0061\u0069\u006c\u002e\u0063\u006f\u006d')</script>
</a>
</li>
<li class="email">
<em class="fa fa-envelope"></em>
<a
href="javascript:location='mailto:\u0069\u0076\u0061\u006e\u002e\u0070\u0065\u0072\u0065\u007a\u0068\u0075\u0040\u0070\u0072\u006f\u0074\u006f\u006e\u006d\u0061\u0069\u006c\u002e\u0063\u006f\u006d';void 0">
<script
type="text/javascript">document.write('\u0069\u0076\u0061\u006e\u002e\u0070\u0065\u0072\u0065\u007a\u0068\u0075\u0040\u0070\u0072\u006f\u0074\u006f\u006e\u006d\u0061\u0069\u006c\u002e\u0063\u006f\u006d')</script>
</a>
</li>
<!--
<li class="phone">
<em class="fa fa-phone"></em>
<a href="tel:0123456789" title="Telefono: 0123 456 789">0123 456 789</a>
</li>
-->
<li class="linkedin">
<em class="fa fa-linkedin"></em>
<a href="https://es.linkedin.com/in/iv%C3%A1n-p%C3%A9rez-huete-09a52515b" target="_blank"
title="linkedin">Iván Pérez Huete</a>
</li>
<li class="github">
<em class="fa fa-github"></em>
<a href="https://github.com/IvanPerez9" target="_blank" title="github">github.com/IvanPerez9</a>
</li>
<!-- TWITTER
<li class="twitter">
<em class="fa fa-twitter"></em>
<a href="https://twitter.com/Ivan_Prz12" target="_blank" title="Twitter">@Ivan_Prz12</a>
</li>
-->
</ul>
<div>
<img src="/assets/images/message.png" alt="imgEmail" height="100" width="100" class="imgEmail">
</div>
</div>
</div>
<div id="right">
<div class="formulario">
<form class="row" action="https://app.99inbound.com/api/e/tYC6PXfp" method="POST" id="contactForm">
<div class="col-md-8">
<div class="form-group">
<span data-i18n="contact.name" class="required">Enter your name:</span>
<input type="text" class="form-control" id="name" name="name" onkeyup="checkForm()" required>
</div>
<div class="form-group">
<span data-i18n="contact.email" class="required">Enter email address:</span>
<input type="email" class="form-control" id="email" name="email" onkeyup="checkForm()" required>
</div>
<div class="form-group">
<span data-i18n="contact.subject">Enter subject:</span>
<input type="text" class="form-control" id="subject" name="subject">
</div>
<div>
<div class="form-group">
<span data-i18n="contact.message" class="required">Enter message:</span>
<textarea class="form-control" name="message" id="message" rows="4" onkeyup="checkForm()" required></textarea>
</div>
</div>
<div class="boton">
<button disabled="disabled" id="myButton" type="submit" value="submit" class="btn enviar" data-i18n="contact.send">
Send Message</button>
</div>
</div>
<!-- Honey Pot -->
<div style="position: absolute; left: -5000px;">
<input type="checkbox" name="excellent_aqua_spotted_gloves" value="1" tabindex="-1" autocomplete="no">
</div>
</form>
</div>
</div>
</div>
<!-- Javascript -->
<script src="assets/plugins/jquery-1.11.3.min.js"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<!-- Disable button when form is not complete -->
<script type="text/javascript">
function checkForm() {
var name = document.getElementById("name");
var email = document.getElementById("email");
var message = document.getElementById("message");
var reg = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
var cansubmit= true;
if(name.value.length == 0 || email.value.length == 0 || message.value.length == 0)
{
cansubmit = false;
} else {
if (reg.test(email.value) == false)
{
cansubmit = false;
}
}
document.getElementById("myButton").disabled = !cansubmit;
};
</script>
<!-- custom js -->
<script src="assets/js/main.js" type="module"></script>
<script>
/* ==== DARK LIGHT THEME ==== */
let theme = localStorage.getItem('data-theme');
let toggle = document.getElementById('toggle');
if (localStorage.getItem('data-theme')==null){
localStorage.setItem('data-theme','light');
}
if (theme == 'dark'){
changeTheme('assets/css/darkThemeCSS/contactDark.css');
toggle.checked = false;
} else {
changeTheme('assets/css/contact.css')
toggle.checked = true;
}
function changeTheme(theme){
let a = document.getElementById('style');
a.href = theme;
}
var bool = toggle.checked;
function getTheme() {
bool = !bool;
if (bool){
changeTheme('assets/css/contact.css')
localStorage.setItem('data-theme', 'light')
} else {
changeTheme('assets/css/darkThemeCSS/contactDark.css')
localStorage.setItem('data-theme' , 'dark')
}
}
</script>
</body>
</html>