Contact Us

Please drop us a line. We’d love to hear from you.



#ecf-form-qysuno .ecf-form .input input, #ecf-form-qysuno .ecf-form .select select, #ecf-form-qysuno .ecf-form .textarea textarea, #ecf-form-qysuno .ecf-form .radio i, #ecf-form-qysuno .ecf-form .checkbox i, #ecf-form-qysuno .ecf-form .toggle i, #ecf-form-qysuno .ecf-form .ecficon-append, #ecf-form-qysuno .ecf-form .ecficon-prepend { color: #404040 !important;}
#ecf-form-qysuno .ecf-form .state-success.input input, #ecf-form-qysuno .ecf-form .state-success.select select, #ecf-form-qysuno .ecf-form .state-success.textarea textarea, #ecf-form-qysuno .ecf-form .state-success.radio i, #ecf-form-qysuno .ecf-form .state-success.checkbox i, #ecf-form-qysuno .ecf-form .state-success.toggle i, #ecf-form-qysuno .ecf-form .state-success .ecficon-append, #ecf-form-qysuno .ecf-form .state-success .ecficon-prepend { background: #f0fff0 !important;}
#ecf-form-qysuno .ecf-form .state-error.input input, #ecf-form-qysuno .ecf-form .state-error.select select, #ecf-form-qysuno .ecf-form .state-error.textarea textarea, #ecf-form-qysuno .ecf-form .state-error.radio i, #ecf-form-qysuno .ecf-form .state-error.checkbox i, #ecf-form-qysuno .ecf-form .state-error.toggle i, #ecf-form-qysuno .ecf-form .state-error .ecficon-append, #ecf-form-qysuno .ecf-form .state-error .ecficon-prepend { background: #fff3f3 !important;}
#ecf-form-qysuno .ecf-form .ecficon-prepend { color: #CCC !important;}
#ecf-form-qysuno .ecf-form .input input, #ecf-form-qysuno .ecf-form .select select, #ecf-form-qysuno .ecf-form .textarea textarea, #ecf-form-qysuno .ecf-form .radio i, #ecf-form-qysuno .ecf-form .checkbox i, #ecf-form-qysuno .ecf-form .toggle i, #ecf-form-qysuno .ecf-form .ecficon-append, #ecf-form-qysuno .ecf-form .ecficon-prepend { border-color: #E5E5E5;}
#ecf-form-qysuno .ecf-form section {margin-bottom: 20px !important;}
#ecf-form-qysuno #form-qysuno fieldset {background: none;}
#ecf-form-qysuno {padding: 40px;}
#ecf-form-qysuno .ecf-form {color: #666666 !important;}
#ecf-form-qysuno {max-width: 440px;}
#ecf-form-qysuno #form-qysuno {background: none repeat scroll 0% 0% rgba(255,255,255, 1); border: solid 1px #d6d6d6;}
#ecf-form-qysuno #form-qysuno {box-shadow: 0px 0px 10px rgba(56,56,56, 0.3) !important;}
#ecf-form-qysuno #form-qysuno header {background: none repeat scroll 0% 0% rgba(248,248,248, 1); font-size: 25px !important; font-weight: normal !important; color: #707070; font-family: Open Sans;}
#ecf-form-qysuno .ecf-form .label {font-size: 13px !important; font-weight: normal !important; color: #666; font-family: Open Sans;}
#ecf-form-qysuno .ecf-form .ecfbutton, #ecf-form-qysuno .ecf-form .input-file .ecfbutton {font-size: 15px !important; font-weight: normal !important; color: #ffffff; font-family: Open Sans !important;}
#ecf-form-qysuno #form-qysuno footer {background: none repeat scroll 0% 0% rgba(248,248,248, 1);}
#ecf-form-qysuno .ecf-form .input input,#ecf-form-qysuno .ecf-form .select select,#ecf-form-qysuno .ecf-form .textarea textarea {background: #ffffff;}
#ecf-form-qysuno .ecf-form .toggle i:before {background-color: #2da5da;}
#ecf-form-qysuno .ecf-form .button {background-color: #2da5da;}
#ecf-form-qysuno .ecf-form .input:hover input,
#ecf-form-qysuno .ecf-form .select:hover select,
#ecf-form-qysuno .ecf-form .textarea:hover textarea,
#ecf-form-qysuno .ecf-form .radio:hover i,
#ecf-form-qysuno .ecf-form .checkbox:hover i,
#ecf-form-qysuno .ecf-form .toggle:hover i,
#ecf-form-qysuno .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}
#ecf-form-qysuno .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}
#ecf-form-qysuno .ecf-form .rating input + label:hover,
#ecf-form-qysuno .ecf-form .rating input + label:hover ~ label {color: #2da5da;}
#ecf-form-qysuno .ecf-form .input input:focus,
#ecf-form-qysuno .ecf-form .select select:focus,
#ecf-form-qysuno .ecf-form .textarea textarea:focus,
#ecf-form-qysuno .ecf-form .radio input:focus + i,
#ecf-form-qysuno .ecf-form .checkbox input:focus + i,
#ecf-form-qysuno .ecf-form .toggle input:focus + i {border-color: #2da5da;}
#ecf-form-qysuno .ecf-form .radio input + i:after {background-color: #2da5da;}
#ecf-form-qysuno .ecf-form .checkbox input + i:after {color: #2da5da;}
#ecf-form-qysuno .ecf-form .radio input:checked + i,
#ecf-form-qysuno .ecf-form .checkbox input:checked + i,
#ecf-form-qysuno .ecf-form .toggle input:checked + i {border-color: #2da5da;}
#ecf-form-qysuno .ecf-form .rating input:checked ~ label {color: #2da5da;}
#ecf-form-qysuno .ecf-form .ecfbutton { background-color: #2DA5DA;} #ecf-form-qysuno .ecf-form .ecfbutton:hover{background-color: #2DA5DA;color: #fff; outline:none !important;}

jQuery(document).ready(function($) {

var qysunotime = ’03:43:39′;

jQuery(“#preloader-qysuno”).fadeOut(1500, function () {
jQuery(“#ecf-form-qysuno, #form-qysuno, #form-afflinkqysuno”).fadeIn(300);
});

var maxupsize = ‘536870912’;
var maxupsizeStr = ‘512M’;
$( ‘.ladda-button’ ).ladda( ‘bind’ );
var files;

$(function() {

$(‘input[type=file]’).on(‘change’, prepareUpload);

function prepareUpload(event)
{
files = event.target.files;

$.each(files, function(key, value) {
if ( files != null ) {
if (files[key].size > maxupsize ) {

$(“.attach1798″).next().gnotify(files[key].name+” exceeds the maximum upload size ( Max: “+maxupsizeStr+” )”,{
style: “nbootstrap”,
elementPosition: ‘top center’,
className: ‘error’});

files = null;

}
}

});

if ( files != null ) {
$(‘#atcqysuno’).val(files.length+’ file(s) selected’);
} else {
$(‘#atcqysuno’).val(”);
}

}

// Validation
$(“#form-qysuno”).validate(
{
// Rules for form validation
rules:
{
name0:{required: true},email1:{required: true,email: true},message2:{required: true,minlength: 10} ,
},

// Messages for form validation
messages:
{
name0:{required: “This field is required”},email1:{required: “This field is required”},message2:{required: “This field is required”} },
// Do not change code below
errorPlacement: function(error, element) {

var newError = $(error).text();
if(newError !== ”){
$(element).tooltipster(‘content’, newError);
$(element).tooltipster(‘show’);
}
},
submitHandler: function (form) {
ecf_onsubmit(jQuery(‘.form-qysuno’));
},

invalidHandler: function (form) {
$.ladda( ‘stopAll’ );
},

onkeyup: false,
onfocusout: false,
onclick: false

});
});

/* Form Submit ( Ajax ) */
function ecf_onsubmit(form){

var datafiles = new FormData();

if(form.attr(‘action’)==’#’){

data = {};
eldat = [];
data[‘action’] = ‘ecf_deliver_mail’;
data[‘time’] = qysunotime;
data[‘formid’] = ‘1798’;
data[‘security’] = ‘f999b84ba0’;

jQuery(‘input, textarea, select, radio, checkbox, file’, form).each(function(key){

items = {};

if (typeof $(this).data(‘type’) === ‘undefined’) { return true; }

if ($(this).data(‘type’) == ‘radio’ && !$(this).is(‘:checked’)) { return true; }

if ($(this).data(‘type’) == ‘rating’ && !$(this).is(‘:checked’)) { return true; } // Rating System @since 1.0.7.9

if ($(this).data(‘type’) == ‘checkboxes’) { return true; }

if ($(this).data(‘type’) == ‘address’) { return true; }

if ($(this).data(‘type’) == ‘daterange’) { return true; }

if ($(this).data(‘type’) == ‘department’) { items[‘deptemail’] = $(this).find(“:selected”).data(‘deptemail’); }

if ($(this).data(‘type’) == ‘attachment’ && typeof files !== ‘undefined’ ) {

if ( files != null ) {
$.each(files, function(key, value) {

datafiles.append(key, value);

});
}
}

items[‘type’] = $(this).data(‘type’);
items[‘label’] = $(this).data(‘label’);
items[‘value’] = this.value;
items[‘name’] = this.name;

eldat.push(items);

}); // END form).each(function(key){

data[‘allelmnt’] = JSON.stringify(eldat);

if ( files != null ) { // If need to Upload

datafiles.append( ‘action’, ‘ecf_form_uploader’ );
datafiles.append( ‘thefile’, JSON.stringify(datafiles) );
datafiles.append( ‘formid’, ‘1798’ );
datafiles.append( ‘security’, ‘f999b84ba0’ );

uploadForm(datafiles);
}

else { // No Need to Upload
data[‘attachments’] = null;
submitForm(”);
}

return false;

} // End if(form.attr(‘action’)==’#’){

} // End ecf_onsubmit

// Start submitForm
function submitForm(tdat) {

if ( tdat ) {
data[‘attachments’] = JSON.stringify(filedat);
}

jQuery.ajax({
url: ‘http://brief.company/wp-admin/admin-ajax.php’,
type: ‘POST’,
dataType: ‘json’,
data: data,
success: function(data) {

if(data.Ok==true) {
// success
$(“#form-qysuno”).get(0).reset();
$(“#form-qysuno section label”).removeClass(‘state-success’);

if(data.msg == ‘redirect’) {
window.location = “http://”;
} else {
notifyme(‘Your message has been sent’, ‘n’, ‘success’, ‘left middle’);
}

}
else {
$(“#form-qysuno”).get(0).reset();
notifyme(data.msg, ‘n’, ‘error’, ‘left middle’);
}

$.ladda( ‘stopAll’ );

}
});

files = null;
filedat = null;

} // End submitForm

// Start Upload
function uploadForm(dat) {

$(‘.meter span’).css(‘width’,’0%’);

jQuery.ajax({
xhr: function() {
var xhr = new window.XMLHttpRequest();

xhr.upload.addEventListener(“progress”, function(evt) {
if (evt.lengthComputable) {
$(‘.meter’).fadeIn(500);
var percentComplete = evt.loaded / evt.total;
percentComplete = parseInt(percentComplete * 100);
$(‘.meter span’).css(‘width’,+percentComplete+’%’);
}
}, false);

return xhr;
},
url: ‘http://brief.company/wp-admin/admin-ajax.php’,
type: ‘POST’,
data: dat,
cache: false,
dataType: ‘json’,
processData: false, // Don’t process the files
contentType: false, // Set content type to false as jQuery will tell the server its a query string request
success: function(data, textStatus, jqXHR)
{
if(data.Ok==true) {

fileitms = {};
filedat = [];

$.each(data.msg, function(key, value) {

filedat.push(value);

});

submitForm(filedat);

}
else if (data.Ok==false) {
$(“#form-qysuno”).get(0).reset();
notifyme(data.msg, ‘a’, ‘error’, ‘top center’);
$.ladda( ‘stopAll’ );
}
else {
if ( jqXHR.responseText == ‘0’) {
$(“#form-qysuno”).get(0).reset();
notifyme(‘File too large. File must be less than ‘+maxupsizeStr+’.’, ‘a’, ‘error’, ‘top center’);
}
$.ladda( ‘stopAll’ );
}
$(‘.meter’).fadeOut(500);
},
error: function(jqXHR, textStatus, errorThrown)
{
$(‘.meter’).fadeOut(500);
$.ladda( ‘stopAll’ );
// Handle errors here
notifyme(‘There was an error uploading your files.’, ‘a’, ‘error’, ‘top center’);
// STOP LOADING SPINNER
}
});

files = null;
filedat = null;

} // End Upload

// Notify
function notifyme(msg, b, typ, pos) {
if (b == ‘n’) {
b = ‘cf-submittedqysuno’;
} else {
b = ‘atcqysuno’;
}

$(“#”+b).gnotify(msg,{
style: “nbootstrap”,
elementPosition: pos,
className: typ
});

msg = null;
typ = null;

}

jQuery(‘#form-qysuno input, #form-qysuno textarea, #form-qysuno select, #form-qysuno radio, #form-qysuno checkbox, #form-qysuno file’).tooltipster({
trigger: ‘custom’,
theme: ‘tooltipster-default’,
animation: ‘usedefault’,
autoClose: true,
onlyOne: false,
timer: 3000,
position: ‘top-right’
});

});

Contact Us

/**/