Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <div id="geral">
  <div id="calculo">
    <div class="titulo"> Encontre o Ar Condicionado para o seu ambiente </div>
    <div class="conteudo">
      <form id="form" class="name" >
        <div class="box">
          <div class="esq"> <span class="desc">Qual o período de<br>
            exposição ao sol?</span> <a href="#" class="icon1">? <span> Indique em qual momento do dia o sol atinge o ambiente com maior intensidade. </span></a> </div>
          <div class="dir">
            <label><span class="iconsun">Sol</span></label>
            <select id="sol">
              <option value="1">Manhã</option>
              <option value="2">Tarde</option>
            </select>
          </div>
        </div>
        <div class="box2">
          <div class="esq"> <span class="desc">Qual é a área total<br>
            do ambiente em m²?</span> <a href="#" class="icon1">? <span> Largura = 2.5  X Comprimento = 2.5 = 6.25m Area total </span></a> </div>
          <div class="dir">
            <label><span class="iconarea">Area</span></label>
            <input type="text" id="metro" size="10" onkeypress='return SomenteNumero(event)'  />
          </div>
        </div>
        <div class="box3">
          <div class="esq"> <span class="desc">Qual o número de<br>
            pessoas no ambiente?</span> <a href="#" class="icon1">? <span> Indicar quantidade de pessoas que ocupam o ambiente.</span></a> </div>
          <div class="dir">
            <label><span class="iconpeople">Pessoas</span></label>
            <input type="text" id="pessoas"  size="10" onkeypress='return SomenteNumero(event)' />
          </div>
        </div>
        <div class="box4">
          <div class="esq"> <span class="desc">Qual o número de <br>
            aparelhos eletrônicos?</span> <a href="#" class="icon1">? <span> Ex: Desktop, televisores, blue-ray, home-theater, micro-system e etc… </span></a> </div>
          <div class="dir">
            <label><span class="iconeletro">Eletronicos</span></label>
            <input type="text" id="equipamento" size="10" onkeypress='return SomenteNumero(event)' />
          </div>
        </div>
        <div class="box5">
          <div class="esq"> <span class="desc">Qual o número de <br>
            entradas de ar?</span> <a href="#"  class="icon1">? <span> Quantidade de janelas e portas no ambiente. </span></a> </div>
          <div class="dir">
            <label><span class="iconar">Janelas/span></span></label>
            <input type="text" id="abertura" size="10" onkeypress='return SomenteNumero(event)'/>
          </div>
        </div>
        <div id="botao"> <a href="#" onClick="calcular()" NAME="botão"><span>Calcular ›</span></a> <br />
          <div id="texto"> </div>
        </div>
      </form>
    </div>
  </div>
  <div id="resposta">
    <div class="titulo"> A quantidade de BTUs aproximada* para seu ambiente é de: </div>
    <div class="conteudo">
      <div id="total"> </div>
      <div id="opcao"></div>
      <div id="rodape"></div>
    </div>
    <div class="btu">
      <h1>O que são BTUs?</h1>
      <p>Unidade Térmica Britânica <span>(British Thermal Unit)</span>. <br>
        Uma unidade de potência que mede a quantidade de energia necessária para elevar ou resfriar a temperatura.</p>
      <span class="porem">* Alguns fatores adicionais podem interferir na quandidade de BTUs do cálculo.</span> </div>
  </div>
</div>
<div id="shadow"></div>
<script>
  
   $('div#rodape').click(function() {
            $(this).each(function(){
                    $('div#resposta').removeClass("opa");
                });
        });
   $('div#rodape').click(function() {
            $(this).each(function(){
                    $('div#total').removeClass("totaldois");
                });
        });
   $('div#rodape').click(function() {
            $(this).each(function(){
                    $('div#rodape').removeClass("rodapedois");
                });
        });


   </script>
              
            
!

CSS

              
                body {
	background-color: #fbfbfb
}
#geral {
	width: 997px;
	height: 348px;
	border: 1px solid #ccc;
	overflow: hidden;
	font-family: arial;
	margin: 0 auto;
	display: block;
}
#shadow {
	background-image: url(https://imagens.fastshop.com.br/imgbanner/shadow.jpg);
	width: 999px;
	height: 10px;
	margin: 0 auto;
}
#calculo {
	width: 997px;
	height: 348px;
	position: relative;
}
#resposta {
	width: 997px;
	height: 348px;
	background-color: #fbfbfb;
	position: relative;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
	margin: 0 auto;
	top: 0px;
}
.opa {
	background-color: #fbfbfb;
	width: 997px;
	height: 348px;
	margin-top: 0 auto;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
	position: relative;
	display: block;
	top: -348px !important;
}
#calculo .titulo {
	width: 997px;
	height: 58px;
	background-image: url(https://imagens.fastshop.com.br/imgbanner/bg_title.jpg);
	text-align: center;
	color: #185473;
	padding-top: 10px;
	margin-bottom: 30px;
	font-size: 22px;
	font-weight: bold;
}
#resposta .titulo {
	width: 997px;
	height: 58px;
	background-image: url(https://imagens.fastshop.com.br/imgbanner/bg_title.jpg);
	text-align: center;
	color: #185473;
	padding-top: 10px;
	margin-bottom: 30px;
	font-size: 22px;
	font-weight: bold;
}
#resposta .titulo span {
	font-style: italic;
	font-weight: normal;
}
#calculo .conteudo {
	width: 958px;
	height: 217px;
	margin: 0 auto;
}
#resposta .conteudo {
	width: 958px;
	height: 114px;
	margin: 0 auto;
}
.box {
	width: 304px;
	height: 90px;
	border: 1px solid #ccc;
	border-radius: 5px;
	float: left;
}
.esq {
	float: left;
	width: 163px;
	height: 90px;
	border-right: 1px solid #ccc;
}
.desc {
	font-size: 13px;
	color: #666;
	text-align: center;
	margin: 0 auto;
	display: block;
	padding-top: 20px;
	padding-bottom: 16px;
}
.icon1 {
	text-indent: -999px;
	width: 14px;
	height: 14px;
	margin: 0 auto;
	background-image: url(https://imagens.fastshop.com.br/imgbanner/sprite_btus.png);
	background-position: -286px -16px;
	display: block;
}
.box .esq .icon1 span {
	width: 120px;
	height: 60px;
	line-height: 15px;
	padding: 10px;
	left: 15px;
	margin-left: 15px;
	font-family: arial;
	font-size: 11px;
	color: #FFF;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
	text-align: center;
	background: #3B4A54;
	text-indent: 0px;
	position: absolute;
	pointer-events: none;
	bottom: 80px;
	opacity: 0;
	box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
	-webkit-transform: scale(0.2);
	-moz-transform: scale(0.2);
	-o-transform: scale(0.2);
	-ms-transform: scale(0.2);
	transform: scale(0.2);
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.box .esq .icon1:hover span {
	opacity: 1;
	bottom: 90px;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}
.dir {
	float: right;
	width: 138px;
	height: 90px;
}
.iconsun {
	width: 14px;
	height: 14px;
	display: block;
	background-image: url(https://imagens.fastshop.com.br/imgbanner/sprite_btus.png);
	background-position: -15px -15px;
	display: block;
	text-indent: -999px;
	margin: 0 auto;
	top: 12px;
	position: relative;
}
.conteudo select {
	width: 120px;
	height: 40px;
	margin-left: 7px;
	margin-top: 28px;
	border: 1px solid #ccc;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
inset;
	background: #fff;
	color: #666;
	outline: none;
	display: inline-block;
	-webkit-appearance: none;
	-moz-appearance: none;
	text-indent: 0.01px;
	text-overflow: '';
	appearance: none;
	cursor: pointer;
	background: transparent;
	background-image: url(https://imagens.fastshop.com.br/imgbanner/seta_select.jpg);
	background-position: right;
	background-repeat: no-repeat;
	padding-left: 5px;
	font-size: 25px;
	font-family: arial;
	font-weight: normal;
}
.box2 {
	width: 304px;
	height: 90px;
	border: 1px solid #ccc;
	border-radius: 5px;
	float: left;
	margin-left: 20px;
}
.box2 .esq .icon1 span {
	width: 120px;
	height: 45px;
	line-height: 15px;
	padding: 10px;
	left: 350px;
	margin-left: 15px;
	font-family: arial;
	font-size: 12px;
	color: #FFF;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
	text-align: center;
	background: #3B4A54;
	text-indent: 0px;
	position: absolute;
	pointer-events: none;
	bottom: 100px;
	opacity: 0;
	box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
	-webkit-transform: scale(0.2);
	-moz-transform: scale(0.2);
	-o-transform: scale(0.2);
	-ms-transform: scale(0.2);
	transform: scale(0.2);
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.box2 .esq .icon1:hover span {
	opacity: 1;
	bottom: 105px;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}
.iconarea {
	width: 14px;
	height: 14px;
	display: block;
	background-image: url(https://imagens.fastshop.com.br/imgbanner/sprite_btus.png);
	background-position: -60px -15px;
	display: block;
	text-indent: -999px;
	margin: 0 auto;
	top: 12px;
	position: relative;
}
.conteudo input {
	width: 70px;
	height: 36px;
	border: 1px solid #ccc;
	margin-left: 33px;
	margin-top: 27px;
	font-family: arial;
	color: #666;
	font-size: 26px;
	text-align: center;
}
.box3 {
	width: 304px;
	height: 90px;
	border: 1px solid #ccc;
	border-radius: 5px;
	float: left;
	margin-left: 20px;
}
.box3 .esq .icon1 span {
	width: 120px;
	height: 45px;
	line-height: 15px;
	padding: 10px;
	left: 680px;
	margin-left: 15px;
	font-family: arial;
	font-size: 12px;
	color: #FFF;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
	text-align: center;
	background: #3B4A54;
	text-indent: 0px;
	position: absolute;
	pointer-events: none;
	bottom: 80px;
	opacity: 0;
	box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
	-webkit-transform: scale(0.2);
	-moz-transform: scale(0.2);
	-o-transform: scale(0.2);
	-ms-transform: scale(0.2);
	transform: scale(0.2);
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.box3 .esq .icon1:hover span {
	opacity: 1;
	bottom: 105px;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}
.iconpeople {
	width: 14px;
	height: 14px;
	display: block;
	background-image: url(https://imagens.fastshop.com.br/imgbanner/sprite_btus.png);
	background-position: -106px -15px;
	display: block;
	text-indent: -999px;
	margin: 0 auto;
	top: 12px;
	position: relative;
}
.box4 {
	width: 304px;
	height: 90px;
	border: 1px solid #ccc;
	border-radius: 5px;
	float: left;
	margin-top: 20px;
}
.box4 .esq .icon1 span {
	width: 120px;
	height: 60px;
	line-height: 15px;
	padding: 10px;
	left: 15px;
	margin-left: 15px;
	font-family: arial;
	font-size: 12px;
	color: #FFF;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
	text-align: center;
	background: #3B4A54;
	text-indent: 0px;
	position: absolute;
	pointer-events: none;
	bottom: 80px;
	opacity: 0;
	box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
	-webkit-transform: scale(0.2);
	-moz-transform: scale(0.2);
	-o-transform: scale(0.2);
	-ms-transform: scale(0.2);
	transform: scale(0.2);
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.box4 .esq .icon1:hover span {
	opacity: 1;
	bottom: 70px;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}
.iconeletro {
	width: 18px;
	height: 14px;
	display: block;
	background-image: url(https://imagens.fastshop.com.br/imgbanner/sprite_btus.png);
	background-position: -149px -15px;
	display: block;
	text-indent: -999px;
	margin: 0 auto;
	top: 12px;
	position: relative;
}
.box5 {
	width: 304px;
	height: 90px;
	border: 1px solid #ccc;
	border-radius: 5px;
	float: left;
	margin-top: 20px;
	margin-left: 20px;
}
.box5 .esq .icon1 span {
	width: 120px;
	height: 40px;
	line-height: 15px;
	padding: 10px;
	left: 350px;
	margin-left: 15px;
	font-family: arial;
	font-size: 12px;
	color: #FFF;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
	text-align: center;
	background: #3B4A54;
	text-indent: 0px;
	position: absolute;
	pointer-events: none;
	bottom: 80px;
	opacity: 0;
	box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
	-webkit-transform: scale(0.2);
	-moz-transform: scale(0.2);
	-o-transform: scale(0.2);
	-ms-transform: scale(0.2);
	transform: scale(0.2);
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.box5 .esq .icon1:hover span {
	opacity: 1;
	bottom: 70px;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}
.iconar {
	width: 18px;
	height: 14px;
	display: block;
	background-image: url(https://imagens.fastshop.com.br/imgbanner/sprite_btus.png);
	background-position: -194px -15px;
	display: block;
	text-indent: -999px;
	margin: 0 auto;
	top: 12px;
	position: relative;
}
#botao a {
	width: 304px;
	height: 53px;
	border: 1px solid #ccc;
	border-radius: 5px;
	float: left;
	margin-top: 20px;
	margin-left: 20px;
	display: block;
	font-family: 'georgia';
	font-style: italic;
	color: #fff;
	background-color: #105474;
	text-align: center;
	text-decoration: none;
	font-size: 18px;
	font-weight: normal;
	padding-top: 38px;
}
#botao a:hover {
	background-color: #39b54a;
}
#texto {
	width: 958px;
	color: red;
	text-align: center;
	float: left;
	margin-top: 16px;
}
#total {
	width: 630px;
	height: 70px;
	border: 1px solid #ccc;
	border-radius: 5px;
	text-align: center;
	font-size: 52px;
	color: #105474;
	padding-top: 13px;
	font-weight: bold;
	float: left;
}
.totaldois {
	width: 400px !important;
	height: 70px;
	border: 1px solid #ccc;
	border-radius: 5px;
	text-align: center;
	font-size: 52px;
	color: #105474;
	padding-top: 13px;
	font-weight: bold;
	float: left;
}
#total span {
	font-size: 22px;
	font-style: italic;
	font-weight: normal;
}
#opcao a {
	width: 299px;
	height: 35px;
	font-family: 'georgia';
	color: #fff;
	font-style: italic;
	background-color: #39b54a;
	font-size: 18px;
	border-radius: 5px;
	float: right;
	text-decoration: none;
	text-align: center;
	padding-top: 10px;
}
#opcao a:hover {
	background-color: #35a845
}
#opcao span {
	width: 500px;
	height: 45px;
	font-family: 'arial';
	color: #fff;
	background-color: #999;
	font-size: 12px;
	border-radius: 5px;
	float: right;
	text-decoration: none;
	text-align: center;
	padding-top: 5px;
}
#rodape a {
	width: 299px;
	height: 22px;
	font-family: 'georgia';
	color: #fff;
	font-style: italic;
	background-color: #105474;
	font-size: 14px;
	border-radius: 5px;
	float: right;
	text-decoration: none;
	text-align: center;
	padding-top: 6px;
	margin-top: 10px;
}
.rodapedois a {
	width: 500px !important;
	height: 22px;
	font-family: 'georgia';
	color: #fff;
	font-style: italic;
	background-color: #105474;
	font-size: 14px;
	border-radius: 5px;
	float: right;
	text-decoration: none;
	text-align: center;
	padding-top: 6px;
	margin-top: 10px;
}
#rodape a:hover {
	background-color: #0d435d
}
.btu {
	background-image: url(https://imagens.fastshop.com.br/imgbanner/shadow.jpg);
	background-repeat: no-repeat;
	background-position: top;
	float: left;
	width: 997px;
}
.btu h1 {
	text-align: center;
	font-size: 22px;
	color: #105474;
	margin-top: 21px;
	margin-bottom: -9px;
}
.btu h1 span {
	font-style: italic;
	font-weight: normal;
}
.btu p {
	font-size: 18px;
	color: #999;
	text-align: center;
	margin-top: 20px
}
.btu p span {
	font-style: italic;
}
.btu .porem {
	display: block;
	float: right;
	font-size: 10px;
	color: #999;
	margin-right: 10px;
	margin-top: 18px;
}
              
            
!

JS

              
                function calcular(){
    
    if(document.getElementById("sol").value == 1){
        amb = document.getElementById("metro").value *  600;
        }else{
            
            amb = document.getElementById("metro").value * 800;
            
            }
                
    pessoas = document.getElementById("pessoas").value * 600 - 600;
    equipamento = document.getElementById("equipamento").value * 600;
    
    
    document.getElementById("texto").innerHTML = ""; 
    document.getElementById("opcao").innerHTML = "";
    document.getElementById("total").innerHTML ="";
    
    if (form.metro.value=="") {
    document.getElementById("texto").innerHTML += "Preencher o campo M²";
    form.metro.focus();
    return false;
    }
   
    if (form.pessoas.value=="") {
    document.getElementById("texto").innerHTML += "Preencher o número de pessoas";
    form.pessoas.focus();
    return false;
    }
    if (form.equipamento.value=="") {
   document.getElementById("texto").innerHTML += "Preencher o número de equipamentos";
    form.equipamento.focus();
    return false;
    }
    
   
    else{
        
    document.getElementById("total").innerHTML += parseFloat(amb+pessoas+equipamento);

        
        }

    total = (amb+pessoas+equipamento) ;
    $('div#resposta').addClass('opa'); 
    
    document.getElementById("opcao").innerHTML = "";
    document.getElementById("rodape").innerHTML = "";
    
    
    if(total <= 7000){
    
    $('div#resposta').addClass('opa'); 
    document.getElementById("opcao").innerHTML = "<a href=\"https://www.fastshop.com.br/loja/ar7000a9000btus\">Encontre seu aparelho aqui  ›</a>";
    document.getElementById("rodape").innerHTML = "<a > Para calcular novamente clique aqui</a>";
    
        }
    if(total > 7000 && total < 9099 ){
  
     $('div#resposta').addClass('opa'); 
    document.getElementById("opcao").innerHTML = "<a href=\"https://www.fastshop.com.br/loja/ar7000a9000btus\">Encontre seu aparelho aqui  ›</a>";
    document.getElementById("rodape").innerHTML = "<a > Para calcular novamente clique aqui</a>";
        }
        
    if(total > 9100 && total < 12099 ){

       $('div#resposta').addClass('opa'); 
    
    document.getElementById("opcao").innerHTML = "<a href=\"https://www.fastshop.com.br/loja/ar9100a12000btus\"> Encontre seu aparelho aqui  ›</a>";
    document.getElementById("rodape").innerHTML = "<a > Para calcular novamente clique aqui</a>";
        }
        
    if(total > 12100 && total < 18099 ){
        
     $('div#resposta').addClass('opa');  
    document.getElementById("opcao").innerHTML = "<a href=\"https://www.fastshop.com.br/loja/ar12100a18000btus\">Encontre seu aparelho aqui  ›</a>";
    document.getElementById("rodape").innerHTML = "<a >  Para calcular novamente clique aqui</a>";
        }   
     
    if(total > 18100 && total < 24099 ){
        
     $('div#resposta').addClass('opa');  
    document.getElementById("opcao").innerHTML = "<a href=\"https://www.fastshop.com.br/loja/ar18100a24000btus\">Encontre seu aparelho aqui  ›</a>";
    document.getElementById("rodape").innerHTML = "<a > Para calcular novamente clique aqui</a>";
        }    

    if(total > 24100 ){
    $('div#resposta').addClass('opa');
    $('div#total').addClass('totaldois');
    $('div#rodape').addClass('rodapedois');
    document.getElementById("opcao").innerHTML = "<span>Seu ambiente necessita de um projeto especial. Entre em contato com nossa equipe técnica através do televendas: <b>(11) 3003 - 3278 ou (11) 3232 - 3100 </b><br>(Apenas para São Paulo e Santos)</span>";
    document.getElementById("rodape").innerHTML += "<a >  Para calcular novamente clique aqui</a>";
        }   
        
    }

              
            
!
999px
If you get tired, be like an AJAX request and REST.

Console