JSFiddle - React, Tailwind, and code Playground
by joaoManolo
HTML
<script src="https://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.2/themes/start/jquery-ui.css">
<div class="col-sm-8">
<div class="nest text margin-bottom">
<div class="title-alt">
<h6>
<a href="#" rel="destino-solicitado" class="toggle-box">Negociar
Destinos</a>
</h6>
<a href="#" rel="destino-solicitado" class="icon-chevron-down toggle-box"></a>
</div>
<div class="body-nest" id="destino-solicitado">
<div class="aling-form">
<div class="box03"></div>
<ul id="destination-list" class="list-user">
<div id="dialog" class="modal-dialog"></div>
<li id="list-all-destination">
<label><b>Paris</b>
</label>
<button id="cancel-1" type="button" class="btn btn-danger pull-right" style="position: relative;"><span class="entypo-cancel-squared"></span> Remover</button>
</li>
<li id="list-all-destination">
<label><b>Amsterdam</b>
</label>
<button id="cancel-2" type="button" class="btn btn-danger pull-right" style="position: relative;"><span class="entypo-cancel-squared"></span> Remover</button>
</li>
<li id="list-all-destination">
<label><b>Denver</b>
</label>
<button id="cancel-3" type="button" class="btn btn-danger pull-right" style="position: relative;"><span class="entypo-cancel-squared"></span> Remover</button>
</li>
<li id="list-all-destination">
<label><b>Cuba</b>
</label>
<button id="cancel-4" type="button"...
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
$("body").on("click", "#list-all-destination button.btn-danger", function (e) {
e.returnValue = false;
var clickedID = this.id.split('-');
var destinationId = clickedID[1];
var myData = 'id=' + destinationId;
var $li = $(this).closest('li');
$('#dialog').dialog({
resizable: false,
height: 140,
modal: true,
buttons: {
"Sim": function () {
$(this).dialog("close");
$.ajax({
type: "DELETE",
url: "/echo/json/",
dataType: "json",
success: function (response) {
$li.fadeOut(500, function () {
$li.remove();
});
},
error: function (xhr, ajaxOptions, thrownError) {
//On error, we alert user
alert(thrownError);
}
});
},
"Não": function () {
$(this).dialog("close");
}
}
});
});