Ir ao conteúdo
  • Cadastre-se
Xandrules

HTML Tab active e fade não funcionam

Posts recomendados

Bom dia Pessoal,
Pessoal estou com um problema na minha view HTML,
quando clico para alternar entre as tabs não mudam a tab não mostra qual tab esta ativa e não da pra saber de qual tab é o conteudo exibido, mais altera o conteudo exibido.
 

<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">

  <!-- <style>
    * {
      font-size: 15px;
    }

    #apply {
      background: #5cb85c;
      width: 160px;
      padding: 11px;
      line-height: 1.4em;

    }

    a {
      position: relative;
      text-align: center;
      display: block;
      text-decoration: none;
    }

    a:link,
    a:visited,
    a:active {
      text-decoration: none;
      color: #000;
    }

    #rundpd a:hover {
      text-decoration: none;
      color: #000;
    }

    #apply a:hover {
      text-decoration: none;
      color: #000;
    }
  </style> -->


  <title>Template Calibração</title>
 
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>


  <!-- <link rel="canonical" href="https://getbootstrap.com/docs/4.0/examples/offcanvas/"> -->

  <!-- Bootstrap core CSS -->
  <link href="https://getbootstrap.com/docs/4.0/dist/css/bootstrap.min.css" rel="stylesheet">

  <!-- Custom styles for this template -->
  <link href="https://getbootstrap.com/docs/4.0/examples/offcanvas/offcanvas.css" rel="stylesheet">
</head>

<body class="bg-light">

  <main class="container">

    <div id="calibration" class="p-3 bg-white rounded box-shadow col-xl-12">
      <h6 class=" border-gray ">Power Sensor Calibration</h6>
      <hr>
      <div class="row justify-content-md-center">
        <div class="col-xl-3 col-md-4">
          <label>Cal Point</label>
          <select id="calpoint" class="form-control" onchange="calChange(0)">
            <option value="0">P6-1</option>
            <option value="1">P6-2</option>
            <option value="2">P5-1</option>
            <option value="3">P5-2</option>
            <option value="4">P4-1</option>
            <option value="5">P4-2</option>
            <option value="6">P3-1</option>
            <option value="7">P3-2</option>
            <option value="8">P2-1</option>
            <option value="9">P2-2</option>
            <option value="10">P1-1</option>
            <option value="11">P1-2</option>
            <option value="12">P0-1</option>
          </select>
        </div>
        <div class="col-xl-3 col-md-4">
          <label>Cal Offset</label>
          <input id="caloffset" type="number" value="0" step="0.01" class=" form-control rounded"
            onchange="calChange(1)">
        </div>
        <div class="col-xl-3 col-md-4">
          <label>Scale Offset</label>
          <input id="scaleoffset" type="number" value="0" step="0.01" class=" form-control rounded"
            onchange="calChange(2)">
        </div>
        <div class="col-xl-3 col-md-4">
          <label>Algorithm</label>
          <select id="algorithm" class="form-control">
            <option>Memory</option>
            <option>Memory Less</option>

          </select>
        </div>
        <div class="col-xl-4 col-md-4">
          <label></label>
          <button id="rundpd" type="button" class="form-control btn btn-secondary">Run DPD</button>
        </div>
        <div class="col-xl-4 col-md-4">
          <label></label>
          <button id="savepoint" type="button" class="form-control btn btn-info" onclick="apply()">Save Point</button>
        </div>

      </div>
    </div>

  </main>
  
  <div class="container">
    <br>
    <ul class="nav nav-tabs" role="tablist">
      <li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#home">Transmitter Information</a></li>
      <li class="nav-item"><a class="nav-link" data-toggle="tab" href="#menu1">Calibration Report</a></li>
    </ul>

    <div class="tab-content">
      <div id="home" class="tab-pane active">
        <div id="transmitter_information" class="p-3 bg-white rounded box-shadow">

          <table class="table table-bordered">

            <tbody>
              <tr>
                <th scope="col">Model</th>
                <td id="model" scope="row">EC720LP</td>
                <th scope="col">Average Temperature [°C]</th>
                <td id="avg_temp" scope="row">55</td>
              </tr>

              <tr>
                <th scope="col">Channel</th>
                <td id="channel" scope="row">20</td>
                <th scope="col">Valc [V]</th>
                <td id="valc" scope="row">4.32</td>
              </tr>
              <tr>
                <th scope="col">Max. Power [W]</th>
                <td id="max_power_watt" scope="row">100</td>
                <th scope="col">FWD Vsens [V]</th>
                <td id="fwd_Vsens" scope="row">3.98</td>
              </tr>
              <tr>
                <th scope="col">Max. Power [dBm]</th>
                <td id="max_power_dbm" scope="row">50</td>
                <th scope="col">FWD Power [W] [dBm]</th>
                <td id="fwd_power_watt_dbm" scope="row"> ----/----</td>

              </tr>
              <tr>
                <th scope="col">Oper. Power [W]</th>
                <td id="oper_power_watt" scope="row">80</td>
                <th scope="col">RFL Vsens [V]</th>
                <td id="rfl_vsens" scope="row">0.05</td>
              </tr>
              <tr>
                <th scope="col">Oper. Power [dBm]</th>
                <td id="oper_power_dbm" scope="row">49.03</td>
                <th scope="col">RFL Power [W] [dBm]</th>
                <td id="rfl_power_watt_dbm" scope="row">----/----</td>
              </tr>
              <tr>
                <th scope="col">Pwr Adj Ofs(CH) [dB]</th>
                <td id="pwr_adj_ofs" scope="row">0.92</td>
                <th scope="col">DPD LUT/Scale</th>
                <td id="dpd_lut_scale" scope="row">----/----</td>
              </tr>
            </tbody>
          </table>

        </div>
      </div>
      <div id="menu1" class="tab-pane">
        <div class="p-3 bg-white rounded box-shadow">

          <table class="table table-bordered">

            <thead>
              <th scope="col">Point</th>
              <th scope="col">Power ref. [dBm]</th>
              <th scope="col">Power ref. [W]</th>
              <th scope="col">Valc [V]</th>
              <th scope="col">Vsens [V]</th>
              <th scope="col">Id [A]</th>
              <th scope="col">DPD</th>
              <th scope="col">Scale</th>
              <th scope="col">Pofs [dB]</th>
              <th scope="col">Temp.</th>
              <th scope="col">Date</th>
              <th scope="col">Time</th>
            </thead>

            <tbody>
              <tr>
                <td scope="row">P6-1</th>
                <td scope="row">50</td>
                <td scope="row">100</th>
                <td scope="row">4.36</td>
                <td scope="row">3.98</td>
                <td scope="row">8.36</td>
                <td scope="row">P-6</td>
                <td scope="row">612</td>
                <td scope="row">0.15</td>
                <td scope="row">54.5</td>
                <td scope="row">19/09/2019</td>
                <td scope="row">10:00</td>
              </tr>
              <tr>
                <td scope="row">P6-2</th>
                <td scope="row">50</td>
                <td scope="row">100</th>
                <td scope="row">4.36</td>
                <td scope="row">3.98</td>
                <td scope="row">8.36</td>
                <td scope="row">P-6</td>
                <td scope="row">612</td>
                <td scope="row">0.15</td>
                <td scope="row">54.5</td>
                <td scope="row">19/09/2019</td>
                <td scope="row">10:00</td>
              </tr>
              <tr>
                <td scope="row">P5-1</th>
                <td scope="row">50</td>
                <td scope="row">100</th>
                <td scope="row">4.36</td>
                <td scope="row">3.98</td>
                <td scope="row">8.36</td>
                <td scope="row">P-6</td>
                <td scope="row">612</td>
                <td scope="row">0.15</td>
                <td scope="row">54.5</td>
                <td scope="row">19/09/2019</td>
                <td scope="row">10:00</td>
              </tr>
              <tr>
                <td scope="row">P5-2</th>
                <td scope="row">50</td>
                <td scope="row">100</th>
                <td scope="row">4.36</td>
                <td scope="row">3.98</td>
                <td scope="row">8.36</td>
                <td scope="row">P-6</td>
                <td scope="row">612</td>
                <td scope="row">0.15</td>
                <td scope="row">54.5</td>
                <td scope="row">19/09/2019</td>
                <td scope="row">10:00</td>
              </tr>
              <tr>
                <td scope="row">P4-1</th>
                <td scope="row">50</td>
                <td scope="row">100</th>
                <td scope="row">4.36</td>
                <td scope="row">3.98</td>
                <td scope="row">8.36</td>
                <td scope="row">P-6</td>
                <td scope="row">612</td>
                <td scope="row">0.15</td>
                <td scope="row">54.5</td>
                <td scope="row">19/09/2019</td>
                <td scope="row">10:00</td>
              </tr>
              <tr>
                <td scope="row">P4-2</th>
                <td scope="row">50</td>
                <td scope="row">100</th>
                <td scope="row">4.36</td>
                <td scope="row">3.98</td>
                <td scope="row">8.36</td>
                <td scope="row">P-6</td>
                <td scope="row">612</td>
                <td scope="row">0.15</td>
                <td scope="row">54.5</td>
                <td scope="row">19/09/2019</td>
                <td scope="row">10:00</td>
              </tr>

            </tbody>
          </table>

        </div>
      </div>
    </div>
  </div>


  <!-- Placed at the end of the document so the pages load faster -->
  <script src="assets/js/script.js"></script>
  <!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" -->
    <!-- integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"> -->
  <!-- </script> -->
  <!-- <script src="https://getbootstrap.com/docs/4.0/assets/js/vendor/popper.min.js"></script> -->
  <!-- <script src="https://getbootstrap.com/docs/4.0/examples/offcanvas/"></script> -->
  <!-- <script src="https://getbootstrap.com/docs/4.0/examples/offcanvas/offcanvas.js"></script> -->
</body>

</html>

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar agora





Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas publicações sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...

Eletrônica

PROMOÇÃO DE QUARENTENA

Aproveite o isolamento social para aprender eletrônica!
De R$ 39,90 por apenas R$ 19,90
Só até as 23h59min desta sexta-feira 10/04/2020

CLIQUE AQUI E COMPRE AGORA MESMO!