"Fernanda_Moreira_Figueiredo_Exercício 2"
Bootstrap 4.1.1 Snippet by psd06t

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> <script language="javascript"> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>PSD-06t-Fernanda Figueiredo</title> <meta name='viewport' content='width=device-width, initial-scale=1'> <link rel='stylesheet' type='text/css' media = 'screen' href='main.css'> <script src='main.js'> </script> </head> <body> <h1></h1> <div class="container-fluid"> <h1>Minha Empresa</h1> <p>Cadastro de Informações:</p> <div> <form class="was-validated"> <div class="form-group"> <label for="Nome da empresa">Nome Empresa:</label><br> <input type="Nome" class="form-control" placeholder="" id="empresanome" required> <div class="invalid-feedback">*Campo obrigatório.</div> </div> <div class="form-group"> <label for="txt">Endereço da Empresa:</label> <br> <input type="text" class="form-control" placeholder="" id="empresaend" required> <div class="invalid-feedback">*Campo obrigatório.</div> </div> <div class="form-group"> <label for="txt">Telefone Empresa:</label><br> <input type="text" class="form-control" placeholder="" id="telefoneemp" required> <div class="invalid-feedback">*Campo obrigatório.</div> </div> <div class="form-group form-check"> <label class="form-check-label"> </label> </div> <h2>Dados do Consumidor</h2> <br> <div class="form-group"> <label for="txt">Nome do Comprador:</label> <input type="text" class="form-control" placeholder="" id="nomeconsumidor" required> <div class="invalid-feedback">*Campo obrigatório.</div> </div> <div class="form-group form-check"> <label class="form-check-label"> </label> </div> <div class="form-group"> <label for="nbr">CPF do Comprador</label> <input type="number" class="form-control" placeholder="" id="cpfconsumidor" required> <div class="invalid-feedback">*Campo obrigatório.</div> </div> <div class="form-group form-check"> <label class="form-check-label"> </label> </div> <div class="form-group"> <label for="txt">Endereço do Comprador:</label><br> <input type="text" class="form-control" placeholder="" id="consumidorend"><br> </div> <div class="form-group"> <label for="nbr">Telefone do Comprador:</label><br> <input type="number" class="form-control" placeholder="" id="telefonecliente" required> <div class="invalid-feedback">*Campo obrigatório.</div> </div> <div class="form-group form-check"> <label class="form-check-label"> </label> <h2>Dados da Venda</h2><br> <div class="form-group"> <label for="txt">Nome do Produto:</label><br> <input type="text" class="form-control" placeholder="" id="nomeproduto" required> <div class="invalid-feedback">*Campo obrigatório.</div> </div> <div class="form-group"> <label for="nbr">Quantidade:</label><br> <input type="number" class="form-control" placeholder="" id="quantidadevenda" required> <div class="invalid-feedback">*Campo obrigatório.</div> </div> <div class="form-group"> <label for="nbr">Preço:</label><br> <input type="number" class="form-control" placeholder="" id="nbr" required> <div class="invalid-feedback">*Campo obrigatório.</div> </div> <div class="form-group"> <label for="txt">Total da Venda:</label><br> <input type="text" class="form-control" placeholder="" id="text" required> <div class="invalid-feedback">*Campo obrigatório.</div> <input class="btn btn-primary" type="submit" value="Submit"> </div> </form> </div> </div> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"> </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"> </script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"> </script> </body> </html>
var empresanome=nada,empresaend=nada,empresatel,consumidornome=nada,consumidorend=nada,consumidortel=nada nomeproduto=nada,quantidadevenda function cadempresa() { var nome = document.getElementById("empresanome"). value; empresanome=nome; var endereco = document.getElementById("empresaend"). value; empresaendereco=endereco; var telefone = document.getElementById("telefoneemp").value; telefonemp=telefone; } function cadconsumidor() { var nome = document.getElementById("nomeconsumidor") . value; nomeconsumidor=nome var endereco = document.getElementById("consumidorend"). value; consumidorendereco=endereco; var cpf = document.getElementById("cpfconsumidor").value; cpfconsumidor=cpf; var telefone = document.getElementById("telefonecliente").value; telefonecliente= telefone; } function cadproduto() { var nome = document.getElementById("nomeproduto") .value ; } function cadvenda() { var Quantidade = document.getElementById("quantidadevenda").value; }

Related: See More


Questions / Comments: