unclean SPARC
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>European Innovation Council</title>
|
||||
<link href="/app/thirdparty/eicui/eicui-2.0.css" rel="stylesheet" type="text/css">
|
||||
<script>
|
||||
window.onload = (() => {
|
||||
document.querySelector('.retry-btn').addEventListener('click', (e) => { document.location.href = '/' })
|
||||
fetch('/app/config/config.json?'+Math.random())
|
||||
.then(r=>r.json())
|
||||
.then(config=>{
|
||||
fetch(config.userLib.logoutEndpoint,
|
||||
{ headers: {'content-type' : 'application/json'}, method: 'GET', credentials: 'include'}
|
||||
)
|
||||
.then(response => response.json())
|
||||
.then((response) => {
|
||||
document.querySelector('.logout-btn').addEventListener('click', (e) => { document.location.href = response.payload.logoutUri })
|
||||
}).catch(err => {
|
||||
console.warn('problem getting eulogout:',err)
|
||||
})
|
||||
}).catch(err => {
|
||||
console.warn('problem loading config:',err)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body eicapp>
|
||||
<style>
|
||||
body {
|
||||
align-items: center;
|
||||
background: radial-gradient(#4786da, #1b4986);
|
||||
background-position: center;
|
||||
color: white;
|
||||
display: grid;
|
||||
padding: 150px 15px 100px;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
width: 100vw;
|
||||
background-size: cover;
|
||||
height: 100vh;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
.auth-error{
|
||||
max-width: 40vw!important;
|
||||
margin: auto!important;
|
||||
}
|
||||
.retry-btn {
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
<article class="auth-error" eiccard="" aria-enabled="true" >
|
||||
<header><h1>Server error</h1></header>
|
||||
<section>
|
||||
<div>
|
||||
<section>
|
||||
<alert eicalert="" danger="">
|
||||
Looks like your user has no access to this application.<br>
|
||||
Please contact the helpdesk if you think this is mistake.
|
||||
</alert>
|
||||
<button class="logout-btn" eicbutton="" primary="" aria-enabled="true" role="button" aria-label="Button">Logout</button>
|
||||
<button class="retry-btn" eicbutton="" primary="" aria-enabled="true" role="button" aria-label="Button">Retry</button>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user