fix: refresh louco
This commit is contained in:
parent
983448983a
commit
4a3392a764
@ -34,20 +34,6 @@
|
|||||||
<!-- Rest of head remains the same... -->
|
<!-- Rest of head remains the same... -->
|
||||||
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
|
||||||
|
|
||||||
<script>
|
|
||||||
// JavaScript redirect to canonical URL
|
|
||||||
(function() {
|
|
||||||
var canonical = 'https://jobmaker.com.br/en/';
|
|
||||||
var current = window.location.href;
|
|
||||||
|
|
||||||
// If not on canonical URL, redirect
|
|
||||||
if (current !== canonical && !current.includes('/en/')) {
|
|
||||||
window.location.replace(canonical);
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
<!-- Meta refresh as backup -->
|
|
||||||
<meta http-equiv="refresh" content="0;URL=https://jobmaker.com.br/en/" />
|
|
||||||
<!-- Favicon-->
|
<!-- Favicon-->
|
||||||
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
|
||||||
<!-- Font Awesome icons (free version)-->
|
<!-- Font Awesome icons (free version)-->
|
||||||
@ -871,7 +857,7 @@
|
|||||||
<i class="fas fa-at me-2"></i>Email:
|
<i class="fas fa-at me-2"></i>Email:
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" id="showEmail" class="form-control bg-secondary text-light border-secondary" id="emailAddress" readonly>
|
<input type="text" id="showEmail" class="form-control bg-secondary text-light border-secondary" readonly>
|
||||||
<button class="btn btn-outline-primary" type="button" onclick="copyEmail()">
|
<button class="btn btn-outline-primary" type="button" onclick="copyEmail()">
|
||||||
<i class="fas fa-copy"></i>
|
<i class="fas fa-copy"></i>
|
||||||
</button>
|
</button>
|
||||||
@ -889,7 +875,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
<!-- Core theme JS-->
|
<!-- Core theme JS-->
|
||||||
<script src="js/scripts.js"></script>
|
<script src="js/scripts.js"></script>
|
||||||
@ -965,7 +950,7 @@
|
|||||||
|
|
||||||
const mailto = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
|
const mailto = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
|
||||||
|
|
||||||
// Tenta abrir o cliente de email
|
// Try to open email client
|
||||||
const link = document.createElement('a');
|
const link = document.createElement('a');
|
||||||
link.href = mailto;
|
link.href = mailto;
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
@ -975,7 +960,7 @@
|
|||||||
const showText = document.getElementById('showEmail');
|
const showText = document.getElementById('showEmail');
|
||||||
showText.setAttribute('value',email);
|
showText.setAttribute('value',email);
|
||||||
|
|
||||||
// Mostra o modal após 1.5 segundos
|
// Show modal after 1.5 seconds
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const modal = new bootstrap.Modal(document.getElementById('emailModal'));
|
const modal = new bootstrap.Modal(document.getElementById('emailModal'));
|
||||||
modal.show();
|
modal.show();
|
||||||
@ -990,6 +975,13 @@
|
|||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function copyEmail() {
|
||||||
|
const emailField = document.getElementById('showEmail');
|
||||||
|
emailField.select();
|
||||||
|
emailField.setSelectionRange(0, 99999);
|
||||||
|
navigator.clipboard.writeText(emailField.value);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
23
index.html
23
index.html
@ -34,22 +34,6 @@
|
|||||||
<!-- Resto do head mantém igual... -->
|
<!-- Resto do head mantém igual... -->
|
||||||
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
|
||||||
|
|
||||||
<script>
|
|
||||||
// Redirecionamento JavaScript para URL canônica
|
|
||||||
(function() {
|
|
||||||
var canonical = 'https://jobmaker.com.br/';
|
|
||||||
var current = window.location.href;
|
|
||||||
|
|
||||||
// Se não estiver na URL canônica, redirecionar
|
|
||||||
if (current !== canonical && !current.includes('/en/')) {
|
|
||||||
window.location.replace(canonical);
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Meta refresh como backup -->
|
|
||||||
<meta http-equiv="refresh" content="0;URL=https://jobmaker.com.br/" />
|
|
||||||
|
|
||||||
<script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
|
<script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
|
||||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css" />
|
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css" />
|
||||||
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700" rel="stylesheet" type="text/css" />
|
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700" rel="stylesheet" type="text/css" />
|
||||||
@ -987,6 +971,13 @@
|
|||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function copyEmail() {
|
||||||
|
const emailField = document.getElementById('showEmail');
|
||||||
|
emailField.select();
|
||||||
|
emailField.setSelectionRange(0, 99999);
|
||||||
|
navigator.clipboard.writeText(emailField.value);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user