Unique content material for AASM Members solely. Get the most recent updates, insights, and important information from the sector of sleep medication, delivered solely to AASM members. Keep knowledgeable with well timed updates on medical pointers, advocacy efforts, {and professional} alternatives. Log in or register to view the total content material.
Login and Register Web page
/* Styling for the login and register buttons */
.login-register {
show: flex;
justify-content: left;
margin-top: 30px;
}
.btn-login, .btn-register {
background-color: #0073aa;
coloration: white;
padding: 15px 30px;
border: none;
font-size: 16px;
cursor: pointer;
margin: 0 10px;
transition: background-color 0.3s ease;
}
.btn-login:hover, .btn-register:hover {
background-color: #005a8d;
}
/* Styling for the member entry message */
.member-message {
margin-top: 30px;
font-size: 16px;
coloration: #555;
text-align: left;
}
.member-message a {
coloration: #0073aa;
text-decoration: none;
}
.member-message a:hover {
text-decoration: underline;
}
Be a part of At this time
// Registration button redirect
operate register() {
window.location.href=”https://my.aasm.org/register?_ga=2.16207284.320455735.1538144335-1391125712.1530032080″;
}
// Make sure the DOM is totally loaded
doc.addEventListener(‘DOMContentLoaded’, operate () {
var loginButton = doc.getElementById(‘lnkMemberLoginRedirect’);
// Examine if loginButton exists
if (!loginButton) {
console.error(‘Login button not discovered’);
return;
}
// Get the present URL
var currentUrl = window.location.href;
var relayStateUrl;
// Decide the relayStateUrl
if (currentUrl.indexOf(‘?’) > -1) {
var queryString = getUrlParameter(‘url’);
relayStateUrl = queryString ? queryString : encodeURIComponent(currentUrl);
} else {
relayStateUrl = encodeURIComponent(currentUrl);
}
// Assign the onclick handler straight
loginButton.onclick = operate () {
window.location.href=”https://sso.aasm.org/saml/84691709-2d5a-4bd9-bfb0-7008e00bbbc8/init?relaystate=” + relayStateUrl;
};
});
// Helper operate to get URL parameters
operate getUrlParameter(identify) {
identify = identify.substitute(/[[]/, ‘[‘).replace(/[]]/, ‘]’); var regex = new RegExp(‘[?&]’ + identify + ‘=([^&#]*)’);
var outcomes = regex.exec(window.location.href);
return outcomes === null ? ” : decodeURIComponent(outcomes[1].substitute(/+/g, ‘ ‘));
}
The put up Learn Montage journal subject 4 of 2024 appeared first on American Academy of Sleep Medication – Affiliation for Sleep Clinicians and Researchers.