Rocketing 60,000+ Users to the Cloud
Feb 25, 2022
 
												
					jQuery(document).ready(function ($) {
    function openTabFromHash() {
        var hash = window.location.hash.substring(1); // Get hash from URL
        if (hash) {
            // Find correct tab index
            var tabIndex = -1;
            if (hash === "in-development") tabIndex = 0;
            if (hash === "rolling-out") tabIndex = 1;
            if (hash === "launched") tabIndex = 2;
            if (hash === "cancelled") tabIndex = 3;
            if (tabIndex !== -1) {
                $(".et_pb_tabs_controls li").removeClass("et_pb_tab_active");
                $(".et_pb_tab").removeClass("et_pb_active_content").hide();
                // Activate the correct tab
                $(".et_pb_tabs_controls li").eq(tabIndex).addClass("et_pb_tab_active").trigger("click");
                $(".et_pb_tab").eq(tabIndex).addClass("et_pb_active_content").show();
            }
        }
    }
    openTabFromHash(); // Run on page load
    $(window).on("hashchange", function () {
        openTabFromHash(); // Run when hash changes
    });
});
					
				