so basically I am trying to create a ie9 specific if statement that basically says if the menu collapsed = true move 3 classes from the left and the opposite for if it is false... can't seem to get this statement working though can someone help ? this is what i have so far ...
var ms_ie = false;
var ua = window.navigator.userAgent;
var old_ie = ua.indexOf('MSIE ');
var new_ie = ua.indexOf('Trident/');
if ((old_ie > -1) || (new_ie > -1)) {
ms_ie = true;
}
if ( ms_ie ) {
if $('#menu').multilevelpushmenu({Collapsed: false}) {
$( ".navbtn, .submenu-ctn, .logo-title" ).animate({
left: "+=310",
}, 500);
else {
$( ".navbtn, .submenu-ctn, .logo-title" ).animate({
left: "-=310",
}, 500);
}
}