function initializeVisibility(hideAll = false) {
  $(".hide-at-start").each(function() {
    const pageId = $(this).attr("id");
    if (hideAll || pageId !== window.sk_params.page) {
      $(this).hide();
    } else {
      $(this).show();
      prePopulatePage(pageId);

      if (
        window.sk_params.hasOwnProperty("page") &&
        window.sk_params.hasOwnProperty("noback") &&
        window.sk_params.noback
      ) {
        $(`#${window.sk_params.page} .back_enabled`).addClass("back_disabled");
      }
    }
  });

  $("#claim").hide();
  $("#accounts").html("");
  $(".error_div").hide();
  $(".success_div").hide();
  $("#username").val("");
  $("#pwd").val("");
  $(".error_div").html("");
  $("#posting_key").prop("checked", true);
  $("#active_key").prop("checked", true);
  $("#memo_key").prop("checked", true);
  $(".account_info_menu").removeClass("rotate180");
  $("#new_key").val("");
  $("#keys_info").empty();
  $("#balance_steem").html("");
  $("#balance_sbd").html("");
  $("#balance_sp").html("");
  $(".checkbox_memo").hide();
  $("#encrypt_memo").prop("checked", false);
  $("#add_account_div .back_enabled").removeClass("back_disabled");
  $(".wallet_currency").removeClass("dropdown-open");
  $(".dropdown").hide();
}
// Visibility state on the main menu
Visibility state on the main menu
Visibility state on the main menu
function initializeVisibility(hideAll = false) {
  $(".hide-at-start").each(function() {
    const pageId = $(this).attr("id");
    if (hideAll || pageId !== window.sk_params.page) {
      $(this).hide();
    } else {
      $(this).show();
      prePopulatePage(pageId);
      if (
        window.sk_params.hasOwnProperty("page") &&
        window.sk_params.hasOwnProperty("noback") &&
        window.sk_params.noback
      ) {
        $(`#${window.sk_params.page} .back_enabled`).addClass("back_disabled");
      }
    }
  });
  $("#claim").hide();
  $("#accounts").html("");
  $(".error_div").hide();
  $(".success_div").hide();
  $("#username").val("");
  $("#pwd").val("");
  $(".error_div").html("");
  $("#posting_key").prop("checked", true);
  $("#active_key").prop("checked", true);
  $("#memo_key").prop("checked", true);
  $(".account_info_menu").removeClass("rotate180");
  $("#new_key").val("");
  $("#keys_info").empty();
  $("#balance_steem").html("");
  $("#balance_sbd").html("");
  $("#balance_sp").html("");
  $(".checkbox_memo").hide();
  $("#encrypt_memo").prop("checked", false);
  $("#add_account_div .back_enabled").removeClass("back_disabled");
  $(".wallet_currency").removeClass("dropdown-open");
  $(".dropdown").hide();
}
function initializeVisibility ( hideAll = false ) { $ ( ".hide-at-start" ) . each ( function ( ) { const pageId = $ ( this ) . attr ( "id" ) ; if ( hideAll || pageId !== window . sk_params . page ) { $ ( this ) . hide ( ) ; } else { $ ( this ) . show ( ) ; prePopulatePage ( pageId ) ; if ( window . sk_params . hasOwnProperty ( "page" ) && window . sk_params . hasOwnProperty ( "noback" ) && window . sk_params . noback ) { $ ( ` ${ window . sk_params . page } ` ) . addClass ( "back_disabled" ) ; } } } ) ; $ ( "#claim" ) . hide ( ) ; $ ( "#accounts" ) . html ( "" ) ; $ ( ".error_div" ) . hide ( ) ; $ ( ".success_div" ) . hide ( ) ; $ ( "#username" ) . val ( "" ) ; $ ( "#pwd" ) . val ( "" ) ; $ ( ".error_div" ) . html ( "" ) ; $ ( "#posting_key" ) . prop ( "checked" , true ) ; $ ( "#active_key" ) . prop ( "checked" , true ) ; $ ( "#memo_key" ) . prop ( "checked" , true ) ; $ ( ".account_info_menu" ) . removeClass ( "rotate180" ) ; $ ( "#new_key" ) . val ( "" ) ; $ ( "#keys_info" ) . empty ( ) ; $ ( "#balance_steem" ) . html ( "" ) ; $ ( "#balance_sbd" ) . html ( "" ) ; $ ( "#balance_sp" ) . html ( "" ) ; $ ( ".checkbox_memo" ) . hide ( ) ; $ ( "#encrypt_memo" ) . prop ( "checked" , false ) ; $ ( "#add_account_div .back_enabled" ) . removeClass ( "back_disabled" ) ; $ ( ".wallet_currency" ) . removeClass ( "dropdown-open" ) ; $ ( ".dropdown" ) . hide ( ) ; }
Visibility state on the main menu
Visibility state on the main menu