Spaces:
Sleeping
Sleeping
| |
<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>OPERACAO</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 { | |
position: absolute; | |
top: 5vh; | |
display: block; | |
background: #ffffff; | |
border: none; | |
height: 95vh; | |
width: 100vw; | |
} | |
</style> | |
</head> | |
<body> | |
<iframe id="clienteiframe" src="/operacao-MULTILASER-MANAUS-DVR-1.html"> | |
</iframe> | |
<script async"> | |
iniciaPagina(); | |
function getCookie(name) { | |
return window.localStorage.getItem(name); | |
} | |
function iniciaPagina() | |
{ | |
var cliente=getCookie("CLIENTE"); | |
var objAovivo = document.getElementById("clienteiframe"); | |
if(cliente) | |
{ | |
objAovivo.setAttribute('src', "/operacao-"+cliente+".html"); | |
} | |
else | |
{ | |
objAovivo.setAttribute('src', "/operacao-MULTILASER-MANAUS-DVR-1.html"); | |
} | |
} | |
</script> | |
</body> | |
</html> | |