Resize div according to window size
jQuery(window).resize(function(){
resizeNav();
});
resizeNav();
function resizeNav(){
var windowWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
if(windowWidth < 767) {
console.log('here');
var w = windowWidth - 30;
jQuery('.languageswitcherload .nav-child.dropdown-menu.mega-dropdown-menu').css('width', w);
}
}