86 lines
No EOL
2.1 KiB
HTML
86 lines
No EOL
2.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
|
<title>Página não encontrada</title>
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto:700" rel="stylesheet">
|
|
<style>
|
|
h1 {
|
|
font-size: 80px;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
font-family: 'Roboto', sans-serif;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 25px;
|
|
text-align: center;
|
|
font-family: 'Roboto', sans-serif;
|
|
margin-top: -40px;
|
|
}
|
|
|
|
p {
|
|
text-align: center;
|
|
font-family: 'Roboto', sans-serif;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.container {
|
|
width: 300px;
|
|
margin: 0 auto;
|
|
margin-top: 15%;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
const cookie = `site=${window.location.origin}`;
|
|
if (!document.cookie.includes(cookie)) {
|
|
document.cookie = cookie;
|
|
window.location.reload()
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<h1>404</h1>
|
|
<h2>Página não encontrada</h2>
|
|
<p id="erro">
|
|
A página que você procura não existe ou ocorreu outro erro.
|
|
</p>
|
|
<p>
|
|
<!-- Instrução para abertura de chamado no link https://atende.idz.one/index.php?a=add -->
|
|
<p>
|
|
<a id="link" href="https://atende.idz.one/index.php?a=add" target="_blank">Clique aqui para abrir um
|
|
chamado</a>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
<script>
|
|
const original = `{${'ERRO'}}`
|
|
// essa variável deve ser preenchida com o erro que ocorreu
|
|
const erro = `{ERRO}`
|
|
|
|
const link = document.getElementById('link');
|
|
const url_chamado = new URL(link.href);
|
|
url_chamado.searchParams.append('message', `{Descreva o problema}
|
|
-- Mantenha o texto abaixo --
|
|
URL: ${window.location.href}
|
|
ERRO:
|
|
`+ erro);
|
|
link.href = url_chamado.href;
|
|
|
|
const erroElement = document.getElementById('erro');
|
|
original != erro && (erroElement.innerText = erro);
|
|
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html> |