* Create first start at desktop top header updates * Update mobile styling of top header * Stylize sign in widget card * Update nav menu and top bar * Changes based on user being logged-in or not * Uses user_signed_in? on top nav bar * Fix lingering old cloudinary helper method * Trigger CI * Fixes specs * Adds redirect_using_referer_spec, fixes other specs & cleanup * Adds nav-menu.scss to layouts/_styles.html.erb for inline & small edit in referer check * Remove logged-out styles to make it more uniform with logged in * Remove nav-menu.scss file * cleanup markup and JS a little * Fixes FB auth specs to new login links * Makes sure unauthenticated /new redirects back to editor * CI fix Sing in with -> Continue with * Update db/schema.rb * Update db/schema.rb * Update db/schema.rb Co-authored-by: Fernando Valverde <fdov88@gmail.com> Co-authored-by: ludwiczakpawel <ludwiczakpawel@gmail.com> Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
26 lines
967 B
JavaScript
26 lines
967 B
JavaScript
function initializeSpecialNavigationFunctionality() {
|
|
var connectLink = document.getElementById('connect-link');
|
|
var notificationsLink = document.getElementById('notifications-link');
|
|
var moderationLink = document.getElementById('moderation-link');
|
|
|
|
if (connectLink) {
|
|
if (document.getElementById('notifications-container')) {
|
|
notificationsLink.blur();
|
|
notificationsLink.classList.add('top-bar__link--current');
|
|
} else {
|
|
notificationsLink.classList.remove('top-bar__link--current');
|
|
}
|
|
if (document.getElementById('chat')) {
|
|
connectLink.blur();
|
|
connectLink.classList.add('top-bar__link--current');
|
|
} else {
|
|
connectLink.classList.remove('top-bar__link--current');
|
|
}
|
|
if (document.getElementById('moderation-page')) {
|
|
moderationLink.blur();
|
|
moderationLink.classList.add('top-bar__link--current');
|
|
} else {
|
|
moderationLink.classList.remove('top-bar__link--current');
|
|
}
|
|
}
|
|
}
|