Skip to content

Instantly share code, notes, and snippets.

View jhonatasfender's full-sized avatar
🐧
I want linux

Jonatas Rodrigues jhonatasfender

🐧
I want linux
View GitHub Profile
@labmorales
labmorales / drupal_menu_positioning.js
Created June 7, 2019 15:19
Drupal 8 - Menu Positioning Script
(function ($) {
var userLoggedIn = $('body.user-logged-in').length ? true:false;
// Only Runs if logged In
if(userLoggedIn){
$(window).resize(positionMenuIfLoggedPosition);
window.onload = function(){
positionMenuIfLoggedPosition();
};
initMenuPositionObserverMutator();