Hi, I copy the code from Paul Wilkins on this thread:
I have a function to insert a Div in a certain width using resize function my problem is how can I undo that when the specified size is not met in the condition?
jQuery(function($){
function mobileViewUpdate() {
var viewportWidth = $(window).width();
if (viewportWidth <= 1023) {
$(".top_panel_top").addClass("top_panel_outside_header").insertBefore(".header_mobile");
}
}