qiita_pet/static/js/networkVue.js
/**
 *
 * Toggle the graph view
 *
 * Show/hide the graph div and update GUI accordingly
 *
 **/
Toggle the graph view
Show/hide the graph div and update GUI accordingly
Toggle the graph view Show / hide the graph div and update GUI accordingly
function toggleNetworkGraph() {
  if($("#processing-network-div").css('display') == 'none' ) {
    if (!$("#processing-network-div").html().includes('waiting')){
      $("#processing-network-instructions-div").show();
    }
    $("#processing-network-div").show();
    $("#show-hide-network-btn").text("Hide");
  } else {
    $("#processing-network-instructions-div").hide();
    $("#processing-network-div").hide();
    $("#show-hide-network-btn").text("Show");
  }
}
function toggleNetworkGraph ( ) { if ( $ ( "#processing-network-div" ) . css ( 'display' ) == 'none' ) { if ( ! $ ( "#processing-network-div" ) . html ( ) . includes ( 'waiting' ) ) { $ ( "#processing-network-instructions-div" ) . show ( ) ; } $ ( "#processing-network-div" ) . show ( ) ; $ ( "#show-hide-network-btn" ) . text ( "Hide" ) ; } else { $ ( "#processing-network-instructions-div" ) . hide ( ) ; $ ( "#processing-network-div" ) . hide ( ) ; $ ( "#show-hide-network-btn" ) . text ( "Show" ) ; } }
Toggle the graph view
 Show/hide the graph div and update GUI accordingly
Toggle the graph view Show / hide the graph div and update GUI accordingly
// if we are displayin the waiting page, do not show the instructions