Description
The Embroidered Crepe Kaftan is a lightweight crepe kaftan with floral neckline
embellishments.
Dry clean only
You must be logged in to post a review.
jQuery(function ($) {
var submit_button = document.querySelector(“.cstyle-contact-submit-button”);
var loading = document.querySelector(“.cstyle-contact-loading”);
var output = document.querySelector(“.cstyle-contact-response-output”);
submit_button.addEventListener(“click”, cstyle_submit);
function get_data() {
var obj = {}
var nodes = document.querySelectorAll(“.cstyle-contact-form [name]”);
nodes.forEach(n => {
if (n.name) {
obj[n.name] = n.value || “”
}
})
return (obj)
}
function clear_data() {
var nodes = document.querySelectorAll(“.cstyle-contact-form [name]”);
nodes.forEach(n => {
n.value = ”;
})
}
function runloading(b) {
if (b) {
loading.classList.add(“start-loading”)
submit_button.disabled = true
} else {
loading.classList.remove(“start-loading”)
submit_button.disabled = false
}
}
function cstyle_submit() {
runloading(1);
output.innerHTML = ”;
output.style.display = ‘none’;
$.post({
url: “/wp-admin/admin-ajax.php?action=cstylecontact”,
type: “POST”,
data: get_data(),
dataType: “json”,
success: function (data) {
runloading(0);
output.innerHTML = data.msg;
output.style.display = ‘block’;
if (data.code == “success”) {
clear_data();
}
},
error: function () {
runloading(0);
}
})
}
});
.cstyle-contact {
margin: 10px 0;
}
.cstyle-contact p{
margin: 0 0 10px;
padding:0;
}
.cstyle-contact p,
.cstyle-contact label,
.cstyle-contact span,
.cstyle-contact input,
.cstyle-contact textarea {
display: block;
width: 100%;
}
.cstyle-contact label {
margin-bottom: 5px;
}
.cstyle-contact input,
.cstyle-contact textarea {
line-height: 40px;
height: 40px;
border-radius: 0;
border: 1px solid #e0e0e0;
overflow: hidden;
padding: 0 10px;
box-sizing: border-box;
}
.cstyle-contact textarea {
min-height: 160px;
}
.cstyle-contact-submit-button {
cursor: pointer;
text-align: center;
}
.cstyle-contact-submit-wrap {
position: relative;
}
.cstyle-contact-response-output {
margin-top: 20px;
padding: 5px 10px;
border: 2px solid #00a0d2;
}
.cstyle-contact-loading.start-loading {
position: absolute;
width: 20px;
height: 20px;
border: 2px solid #000;
border-top-color: rgba(0, 0, 0, 0.2);
border-right-color: rgba(0, 0, 0, 0.2);
border-bottom-color: rgba(0, 0, 0, 0.2);
border-radius: 100%;
animation: cstyle-contact-loading-circle infinite 0.75s linear;
top: calc(50% – 10px);
left: 10px;
}
@keyframes cstyle-contact-loading-circle {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
Reviews
There are no reviews yet.