CINXE.COM

Sign in to openaire

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" class="login-pf"> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="robots" content="noindex, nofollow"> <meta name="viewport" content="width=device-width,initial-scale=1"/> <title>Sign in to openaire</title> <link rel="icon" href="/auth/resources/blptj/login/rciam/img/favicon.ico" /> <link href="/auth/resources/blptj/common/keycloak/web_modules/@fortawesome/fontawesome-free/css/icons/all.css" rel="stylesheet" /> <link href="/auth/resources/blptj/common/keycloak/web_modules/@patternfly/react-core/dist/styles/base.css" rel="stylesheet" /> <link href="/auth/resources/blptj/common/keycloak/web_modules/@patternfly/react-core/dist/styles/app.css" rel="stylesheet" /> <link href="/auth/resources/blptj/common/keycloak/node_modules/patternfly/dist/css/patternfly.min.css" rel="stylesheet" /> <link href="/auth/resources/blptj/common/keycloak/node_modules/patternfly/dist/css/patternfly-additions.min.css" rel="stylesheet" /> <link href="/auth/resources/blptj/common/keycloak/lib/pficon/pficon.css" rel="stylesheet" /> <link href="/auth/resources/blptj/login/rciam/css/login.css" rel="stylesheet" /> <link href="/auth/resources/blptj/login/rciam/css/tile.css" rel="stylesheet" /> <link href="/auth/resources/blptj/login/rciam/css/styles.css" rel="stylesheet" /> </head> <body class=""> <div class="login-pf-page"> <div id="kc-header" class="login-pf-page-header"> <div id="kc-header-wrapper" class=""><div class="kc-logo-text"><span>OpenAIRE</span></div></div> </div> <div class="card-pf"> <header class="login-pf-header"> <h1 id="kc-page-title"> We are sorry... </h1> </header> <div id="kc-content"> <div id="kc-content-wrapper"> <div id="kc-error-message"> <div class="instruction">Cookie not found. Please make sure cookies are enabled in your browser.</div> <p><a id="backToApplication" href="https://zenodo.org/">芦 Back to Application</a></p> </div> </div> </div> </div> </div> <script> var realm = 'openaire'; var baseUri = 'https://aai.openaire.eu/auth/'; var resourcesCommonPath = '/auth/resources/blptj/common/keycloak'; var resourcesPath = '/auth/resources/blptj/login/rciam'; if(baseUri.endsWith("/")) baseUri = baseUri.substring(0,baseUri.lastIndexOf("/")); //remove the trailing slash var baseUriOrigin = new URL(baseUri).origin; function getConfig() { fetch(baseUri + '/realms/' + realm + '/theme-info/theme-config').then(response => response.json()).then(config => { applyConfig(config); }); } function applyConfig(config){ //set main logo (it's single config entry) var projectLogoIconUrl = config['projectLogoIconUrl'][0]; var fullUrl = projectLogoIconUrl; if(!projectLogoIconUrl.trim().startsWith('http')){ //it's local path fullUrl = baseUriOrigin + resourcesPath + "/" + projectLogoIconUrl; } var image = createElementFromHTML("<img src='" + fullUrl + "' alt='" + realm + "' style='max-height:100px; width:auto;'>") var logoParentDiv = document.querySelector('#kc-header-wrapper'); logoParentDiv.appendChild(image); //set footer icons/logos urls (multiple config entries) var iconUrls = config['footerIconUrls']; var logosContainerElem = document.querySelector('#footer-logos-container'); if(iconUrls != null && iconUrls.length > 0){ for (let i = 0; i < iconUrls.length; i++) { var iconUrl = iconUrls[i]; if(iconUrl != null && iconUrl.length > 0){ var fullUrl = baseUriOrigin + resourcesPath + "/" + iconUrl; var logoUrlElem = createElementFromHTML("<img src='" + fullUrl + "' style='max-height:50px; margin: auto;' class='horizontal-padding-10'></img>"); logosContainerElem.appendChild(logoUrlElem); } } } //set privacy policy url (it's single config entry) var privacyPolicyUrl = config['privacyPolicyUrl']; var linksContainerElem = document.querySelector('#footer-links-container'); if(privacyPolicyUrl != null && privacyPolicyUrl.length > 0 && privacyPolicyUrl[0].length > 0){ var privacyProlicyElem = createElementFromHTML("<a class='horizontal-padding-10' href='" + privacyPolicyUrl[0] + "'>Privacy</a>"); linksContainerElem.appendChild(privacyProlicyElem); } //set terms of use policy url (it's single config entry) var termsOfUseUrl = config['termsOfUseUrl']; var linksContainerElem = document.querySelector('#footer-links-container'); var defaultTOUUrl = baseUri + "/realms/" + realm + "/theme-info/terms-of-use"; var termsOfUseElem = createElementFromHTML("<a class='horizontal-padding-10' href='" + defaultTOUUrl + "'>Terms</a>"); if(termsOfUseUrl != null && termsOfUseUrl.length > 0 && termsOfUseUrl[0].length > 0){ termsOfUseElem = createElementFromHTML("<a class='horizontal-padding-10' href='" + termsOfUseUrl[0] + "'>Terms</a>"); } linksContainerElem.appendChild(termsOfUseElem); //set support url (it's single config entry) var supportUrl = config['supportUrl']; var supportContainerElem = document.querySelector('#footer-support-container'); if(supportUrl != null && supportUrl.length > 0 && supportUrl[0].length > 0){ var supportElem = createElementFromHTML("<a class='horizontal-padding-10' href='" + supportUrl[0] + "'>Support</a>"); supportContainerElem.appendChild(supportElem); } //set html footer text (it's single config entry) var htmlFooterText = config['htmlFooterText']; var footerHtmlTextElem = document.querySelector('#footer-html-text'); if(htmlFooterText != null && htmlFooterText.length > 0) { footerHtmlTextElem.innerHTML = htmlFooterText[0]; } //set a red ribbon if the theme has a ribbon text to show var ribbonText = config['ribbonText']; if(ribbonText != null && ribbonText.length > 0 && ribbonText[0]) { document.body.appendChild(createElementFromHTML("<div class='corner-ribbon'>" + ribbonText + "</div>")); } } function createElementFromHTML(htmlString) { var div = document.createElement('div'); div.innerHTML = htmlString.trim(); return div.firstChild; } function drawFooterInPlace(){ fetch(baseUriOrigin + resourcesPath + "/elements/footer.html") .then((r)=>{r.text().then((d)=>{ let element = createElementFromHTML(d); document.getElementsByClassName("login-pf-page")[0].appendChild(element); getConfig(); }) }); } function removeDefaultLogo() { var logoParentDiv = document.querySelector('#kc-header-wrapper'); for(var i=0 ; i<logoParentDiv.childNodes.length; i++){ var child = logoParentDiv.childNodes[i]; if(child.tagName == undefined || child.tagName != 'IMG') child.remove(); } } document.addEventListener("DOMContentLoaded", function(event) { drawFooterInPlace(); removeDefaultLogo(); }); </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10