My website needs to convert its nav menu when it is in a viewport which size is less than 800px.More over I have made a plugin for this and that plugin also provide vertical nav options.So i want to apply that vertical nav when it is in viewport less than 800px.
My codes for vertical nav
if(verticalNav){
menuConvert()
}
And when in less than 800px
if($(window).width < 800){
menuConvert()
}
And menuConvert function is
var menuConvert = function(){
// codes here
}
But in console log: menuConvert is not a function
Any solution for that?
var menuConvert = function(){is executed aftermenuConvert()call<body></body>tags?