painel / static /csa.html
Atualli's picture
Upload 85 files
bce4323
raw
history blame
1.16 kB
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta charset="utf-8" />
<title>CSA</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {
margin: 0;
}
iframe {
display: block;
background: #ffffff;
border: none;
height: 100vh;
width: 100vw;
}
</style>
</head>
<body>
<iframe id="clienteiframe" src="/csa-COLEGIO-SANTO-AMERICO2.html">
</iframe>
<script async">
iniciaPagina();
function getCookie(name) {
return window.localStorage.getItem(name);
}
function iniciaPagina()
{
var cliente=getCookie("CLIENTEVIEW2");
var objAovivo = document.getElementById("clienteiframe");
if(cliente)
{
objAovivo.setAttribute('src', "/csa-"+cliente+".html");
}
else
{
objAovivo.setAttribute('src', "/csa-COLEGIO-SANTO-AMERICO2.html");
}
}
</script>
</body>
</html>