JSFiddle - React, Tailwind, and code Playground
by joaoManolo
HTML
<button id="show-destination" type="button" class="btn btn-info pull-right">Adiciona elementos na tela</button>
<div class="col-sm-8">
<div class="nest text margin-bottom">
<div class="title-alt">
<h6><a href="#" rel="status-negociacoes" class="toggle-box">Status de Negociações</a></h6>
<a href="#" rel="status-negociacoes" class="icon-chevron-down toggle-box"></a>
</div>
<div class="body-nest" id="status-negociacoes">
<div id="negotiation-status" class="aling-form"></div>
</div>
</div>
</div>
CSS
/* maki */
[class*="maki-"]:before {
font-family:'maki', sans-serif;
}
/* entypo */
[class*="entypo-"]:before {
font-family:'entypo', sans-serif;
}
/* fontawesome */
[class*="fontawesome-"]:before {
font-family:'FontAwesome', sans-serif;
}
body {
color: #9ea7b3!important;
font-family:"Open Sans", Arial, sans-serif!important;
font-size: 13px!important;
line-height: 20px;
overflow-x: hidden!important;
min-height: 100%;
z-index: -2;
margin: 0px !important;
background: url('../img/bg.jpg') no-repeat top center fixed;
-moz-background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
/*
PREALOADER
*/
a:hover {
text-decoration: none!important;
}
#preloader {
background: transparent;
\9;
/* IE 8 and below */
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(37, 45, 59, 0.8);
/* change if the mask should have another color then white */
z-index: 2000;
/* makes sure it stays on top */
/* background-image: url("../img/overlays/06.png");
background-repeat: repeat; */
}
#mapContainer {
font-family: sans-serif;
background: #fff;
color: #444;
height: 100%;
padding: 0;
margin: 0;
}
#logo {
left: 19px;
position: relative;
top: -34px;
max-width: 191px;
}
#logo-mobile {
left: -33px;
position: absolute;
top: -14px;
z-index: 0;
}
#logo h1, #logo-mobile h1 {
font-size: 30px;
font-weight: 200;
letter-spacing: -1px;
text-decoration: inherit;
text-transform: uppercase;
color: #fff;
}
#logo h1 span, #logo-mobile h1 span {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.2);
border-radius: 3px;
font-size: 11px;
margin-left: 0;
padding: 0 5px;
position: relative;
top: -3px;
}
/**
* BOOTSRAP COUSTOM
*/
.container-fluid {
padding-left: 0!important;
padding-right:...
JavaScript
debugger;
$('#show-destination').click(function () {
$('#negotiation-status').prepend('<h5 id="destination-title"> <b>Destino: </b>' + $(this).text() + '</h5>');
$('#destination-title').after('<div id="div-departure" class="box01"></div>');
$('#div-departure').append('<div id="div-input-departure" class="input-group "></div');
$('#div-input-departure').append('<span id="span-departure" class="input-group-addon btn-success"><i class="fa fa-calendar"></i></span>');
$('#span-departure').after('<input id="input-departure" type="text" name="customerService.destinationRequested.departureDate" class="form-control" placeholder="Data de Ida"/>');
$('#div-departure').after('<div id="div-arrive" class="box02"></div>');
$('#div-arrive').append('<div id="div-input-arrive" class="input-group "></div');
$('#div-input-arrive').append('<span id="span-arrive" class="input-group-addon btn-success"><i class="fa fa-calendar"></i></span>');
$('#span-arrive').after('<input id="input-arrive" type="text" name="customerService.destinationRequested.arriveDate" class="form-control" placeholder="Data de Volta"/>');
//Valor e Tipo
$('#div-arrive').after('<div id="div-sale-type" class="box01"></div>');
$('#div-sale-type').append('<select id="combo-saleType" name="" class="form-control"></select>');
$('#div-sale-type').after('<div id="input-div" class="box02"></div>');
$('#input-div').append('<div id="acme" class="input-group "></div>');
$('#acme').append('<span id="span-batatinhya" class="input-group-addon btn-success"><i class="fa fa-money"></i></span>');
$('#span-batatinhya').after('<input id="input-price" type="text" name="customerService.destinationRequested.price" class="form-control"/>');
//Botoes
$('#input-div').after('<div id="div-button" class="box03"></div>');
$('#div-button').append('<button id="button-add-destination" type="button" class="btn btn-info pull-right"><span...