var button_flag = 0; var banner_flag = 1; // if (window.location.href == "http://umbrella-army.local/online-weapons-for-recruits/") { if (window.location.href == "https://www.umbrella-army.com/online-weapons-for-recruits/") { if (banner_flag == 1) { // show_button(); show_banner(); $('#button_button').removeClass("activeBtn"); $('#banner_button').addClass('activeBtn'); $('#button_container').css('display', 'none'); } // } else if (window.location.href == "http://umbrella-army.local/online-weapons-for-comrades/") { } else if (window.location.href == "https://www.umbrella-army.com/online-weapons-for-comrades/") { if (banner_flag == 1) { // show_button(); show_banner(); $('#button_container').css('display', 'none'); $('#button_button').removeClass("activeBtn"); $('#banner_button').addClass('activeBtn'); } } else { show_button(); } function show_button() { $('#button_button').click(function() { $('#button_button').addClass("activeBtn"); $('#banner_button').removeClass('activeBtn'); $('#button_container').css('display', 'block'); $('#banner_container').css('display', 'none'); }); banner_flag = 1; button_flag = 0; } show_button(); function show_banner() { $('#banner_button').click(function() { $('#button_button').removeClass("activeBtn"); $('#banner_button').addClass('activeBtn'); $('#banner_container').css('display', 'block'); $('#button_container').css('display', 'none'); }); banner_flag = 0; button_flag = 1; }