Enroll Now

/*########### PREVIEW CONTAINER ##############*/
#hugeit-contact-preview-container {
position:relative;
float:right;
width:60%;
padding:10px 0 10px 0;
background:#fff;
min-width:310px;
}
#hugeit-contact-wrapper_1 {
margin:0 auto;
min-width:315px;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block {
position:relative;
float:left;
width:94%;
min-width:305px;
margin:0 1% 0 1%;
height:auto;
min-height:30px;
}
#hugeit-contact-wrapper_1 div.multicolumn .hugeit-contact-column-block {
width:47%;
padding-top: 10px;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block {
padding-top: 10px;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div {
width:100%;
padding:5px 0 5px 0;
clear:both;
line-height: 0;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div.custom-text-block{
font-size:14px !important;
line-height:15px !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div.hugeit-check-field,
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div.hugeit-radio-field{
padding:5px 0 5px 0;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div.buttons-block{
position: relative;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div.hover-active {
border:2px dashed #2EA2CC;
padding-left:2px;
padding-right:2px;
padding-bottom:2px;
margin-left:-4px;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div.captcha-block {
/*height:78px;*/
}
/***fvpps***/
.free_video .portelemented .play-icss {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
outline:none;
}
/***fvpps***/
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div > label {
display:block;
width:38%;
float:left;
cursor: pointer;
margin-right: 2%;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block {
display:inline-block;
width:60%;
vertical-align: super !important;
line-height: 0;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block select,
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block textarea,
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block input[type=”text”],
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block input[type=”password”],
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block input[type=”name”],
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block input[type=”email”],
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block input[type=”number”] {
width:100%;
line-height: initial !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block ul {
width:100%;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block ul li {
float:left;
line-height: 1 !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div ul {
position:relative;
display:table !important;
padding:0 !important;
margin:0 !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div > label ul li {
clear:both;
padding:0 !important;
margin:0 !important;
}
#hugeit-contact-wrapper_1 #huge_it_captcha {
float:right;
}
/*FIELDS CUSTOM STYLES*/
/*radio + checkbox*/
#hugeit-contact-wrapper_1.big-radio .radio-block, #hugeit-contact-wrapper_1.big-checkbox .checkbox-block {
width: 24px;
height: 24px;
border-radius:13px;
}
#hugeit-contact-wrapper_1.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_1.big-checkbox .checkbox-block input:checked + span {
width: 12px;
height: 12px;
border-radius:6px;
top:5px;
left:5px;
}
#hugeit-contact-wrapper_1.medium-radio .radio-block,#hugeit-contact-wrapper_1.medium-checkbox .checkbox-block {
width: 20px;
height: 20px;
border-radius:10px;
}
#hugeit-contact-wrapper_1.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_1.medium-checkbox .checkbox-block input:checked + span{
width: 10px;
height: 10px;
border-radius:5px;
top:4px;
left:4px;
}
#hugeit-contact-wrapper_1.small-radio .radio-block.small,#hugeit-contact-wrapper_1.small-checkbox .checkbox-block {
width: 15px;
height: 15px;
border-radius:8px;
}
#hugeit-contact-wrapper_1.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_1.small-checkbox .checkbox-block input:checked + span{
width: 7px;
height: 7px;
border-radius:7px;
top:3px;
left:3px;
}
#huge-it-captcha-popup > div > label {
display:inline-block;
height:30px;
width:150px;
}
#huge-it-captcha-popup > div > input {
width:350px;
}
/*######################## END OFO CHOR ######################*/
body #hugeit-contact-wrapper_1 input, body #hugeit-contact-wrapper_1 textarea {padding:0; margin:0;}
#hugeit-contact-wrapper_1 {
width:100%;
background:#FFFFFF;
}
#hugeit-contact-wrapper_1 > div {
border:0px solid #FFFFFF;
}
#hugeit-contact-wrapper_1 > div > h3 {
position:relative;
display:block;
clear:both !important;
padding:5px 0 10px 1% !important;
font-size:20px !important;
line-height:20px !important;
color:#000000 !important;
margin: 10px 0 15px 0 !important;
}
/*LABELS*/
#hugeit-contact-wrapper_1 label {
font-size:14px !important;
line-height:14px !important;
color:#000000;
font-family:Verdana,sans-serif;
}
#hugeit-contact-wrapper_1 .hugeit-field-block >label.error {
color:#F01C24 !important;
}
#hugeit-contact-wrapper_1 label em.required-star{
color: #941116;
}
#hugeit-contact-wrapper_1 label em.error{
color: #F01C24;
}
#hugeit-contact-wrapper_1 .hugeit-field-block span.hugeit-error-message{
font-size: 12px !important;
color: #F01C24;
line-height:14px !important;
font-family:Verdana,sans-serif;
display: inline;
vertical-align: top;
padding-top: 5px;
}
#hugeit-contact-wrapper_1 .hugeit-field-block span.huge_it_success_msg{
font-size: 16px !important;
display: block;
text-align: center;
vertical-align:super;
font-family:Verdana,sans-serif;
color:#03A60E;
}
#hugeit-contact-wrapper_1 .hugeit-field-block span.huge_it_spam_msg{
font-size: 16px !important;
display: block;
text-align: center;
vertical-align:super;
font-family:Verdana,sans-serif;
color:#F01C24;
}
#hugeit-contact-wrapper_1 .hugeit-field-block span.huge_it_button_overlay{
background: rgba(241, 241, 241, 0.85);
position: absolute;
top: 0;
left: 0;
text-align: center;
}
#hugeit-contact-wrapper_1 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{
width: 20px;
height: 20px;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div > label.formsRightAlign{
text-align: right !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div > label.formsAboveAlign{
width:100% !important;
float:none !important;
padding-bottom: 5px !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .formsAboveAlign {
width:100% !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div > label.formsLabelHide{
display: none;!
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .formsLabelHide {
width:100% !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div > label.formsInsideAlign{
display:none !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .formsInsideAlign {
width:100% !important;
}
/*FIELDS CUSTOM STYLES*/
/*############INPUT TEXT############*/
#hugeit-contact-wrapper_1 .input-text-block input,
#hugeit-contact-wrapper_1 .input-text-block input:focus {
height:28px;
background:#EDF0F5;
border:1px solid #CACDD1 !important;
box-shadow:none !important ;
border-radius:3px;
font-size:14px;
color:#333333;
margin:0 !important;
padding:0 0 0 5px !important;
outline:none;
vertical-align:top !important;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
/*/////INPUT TEXT FullName//////*/
#hugeit-contact-wrapper_1 .input-name-block{
font-size: 0 !important;
}
#hugeit-contact-wrapper_1 .input-name-block input,
#hugeit-contact-wrapper_1 .input-name-block input:focus {
width: 49% !important;
height:28px;
background:#EDF0F5;
border:1px solid #CACDD1 !important;
box-shadow:none !important ;
border-radius:3px;
font-size:14px;
color:#333333;
margin:0 !important;
padding:0 5px 0 5px !important;
outline:none;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
#hugeit-contact-wrapper_1 .input-name-block input:first-child,
#hugeit-contact-wrapper_1 .input-name-block input:first-child:focus{
margin-right: 2% !important;
}
/*/////INPUT TEXT FullName//////*/
/*/////////*/
/*############ Phone Field############*/
#hugeit-contact-wrapper_1 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus {
width: 100%;
box-sizing:border-box;
height:28px;
background:#EDF0F5;
border:1px solid #CACDD1 !important;
box-shadow:none !important ;
border-radius:3px;
font-size:14px;
color:#333333;
margin:0 !important;
outline:none;
padding-left: 48px;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div ul.hide{
display: none !important;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div ul.country-list{
display: block !important;
z-index: 10;
}
#hugeit-contact-wrapper_1 .hugeit-contact-column-block > div .field-block ul.country-list li{
float: none !important;
margin: 0 !important;
}
/*############TEXTAREA############*/
#hugeit-contact-wrapper_1 .textarea-block textarea {
background:#EDF0F5;
border:1px solid #CACDD1;
border-radius:3px;
font-size:14px;
color:#333333;
margin:0 !important;
padding:0 0 0 5px !important;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
/*############CHECKBOX RADIOBOX############ */
#hugeit-contact-wrapper_1 .hugeit-checkbox-list {
list-style:none;
}
#hugeit-contact-wrapper_1 .hugeit-checkbox-list li,
#hugeit-contact-wrapper_1 .hugeit-radiobox-list li {
margin:0 0 6px 0 !important;
padding:0 !important;
list-style:none;
}
#hugeit-contact-wrapper_1 .hugeit-checkbox-list li label ,
#hugeit-contact-wrapper_1 .hugeit-radiobox-list li label {
cursor:pointer;
}
#hugeit-contact-wrapper_1 .radio-block,
#hugeit-contact-wrapper_1 .checkbox-block {
position:relative;
float:left;
margin:0 5px 0 5px !important;
display: block;
}
#hugeit-contact-wrapper_1 .radio-block input,
#hugeit-contact-wrapper_1 .checkbox-block input {
visibility:hidden;
position:absolute;
top:0;
left:0;
}
#hugeit-contact-wrapper_1 .radio-block i {
display:inline-block;
float:left;
width:20px;
color:#CACDD1;
cursor:pointer;
}
#hugeit-contact-wrapper_1 .checkbox-block i {
display:inline-block;
float:left;
width:20px;
color:#CACDD1;
}
#hugeit-contact-wrapper_1.big-radio .radio-block i ,
#hugeit-contact-wrapper_1.big-checkbox .checkbox-block i {
font-size:24px;
}
#hugeit-contact-wrapper_1.medium-radio .radio-block i ,
#hugeit-contact-wrapper_1.medium-checkbox .checkbox-block i {
font-size:20px;
}
#hugeit-contact-wrapper_1.small-radio .radio-block i ,
#hugeit-contact-wrapper_1.small-checkbox .checkbox-block i {
font-size:15px;
}
#hugeit-contact-wrapper_1 .radio-block i:hover {
color:#333333;
}
#hugeit-contact-wrapper_1.checkbox-block i:hover {
color:#333333;
}
#hugeit-contact-wrapper_1 .radio-block i.active,
#hugeit-contact-wrapper_1 .checkbox-block i.active {
display:none;
}/*Voch checked inputi motic heracnumenq active@*/
#hugeit-contact-wrapper_1 .radio-block input:checked + i.active + i.passive,
#hugeit-contact-wrapper_1 .checkbox-block input:checked + i.active + i.passive {
display:none;
}
#hugeit-contact-wrapper_1 .radio-block input:checked + i.active,
#hugeit-contact-wrapper_1 .radio-block input:checked + i.active:hover {
display:inline-block;
color:#333333;
}
#hugeit-contact-wrapper_1 .checkbox-block input:checked + i.active,
#hugeit-contact-wrapper_1 .checkbox-block input:checked + i.active:hover {
display:inline-block;
color:#333333;
}
/*############SELECTBOX#############*/
#hugeit-contact-wrapper_1 .selectbox-block {
position:relative;
height:29px;
}
#hugeit-contact-wrapper_1 .selectbox-block select {
position:relative;
height:26px;
margin:1px 0 0 1px !important;
opacity:0;
z-index:2;
}
#hugeit-contact-wrapper_1 .selectbox-block .textholder {
position:absolute;
height:28px;
width:90%;
margin:0 !important;
top:0;
color:#333333;
left:0;
border:0;
opacity: 1 !important;
background:none;
border:1px solid #CACDD1;
border-radius:3px;
font-size:14px;
background:#EDF0F5;
padding:0 10% 0 5px !important;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
#hugeit-contact-wrapper_1 .selectbox-block i {
position:absolute;
top:7.25px;
right:10px;
z-index:0;
color:#333333;
font-size:14px;
}
/*############FILE#############*/
#hugeit-contact-wrapper_1 .file-block {
position:relative;
cursor:pointer;
}
#hugeit-contact-wrapper_1 .file-block .textholder {
position:relative;
float:left;
width:calc(60% – 7px) !important;
height:28px;
margin:0;
border:1px solid #CACDD1 !important;
border-radius:3px !important;
font-size:14px;
color:#333333;
background:#EDF0F5;
padding:0 40% 0 5px !important;
box-sizing: content-box;
-moz-box-sizing: content-box;
}
#hugeit-contact-wrapper_1 .file-block .uploadbutton {
position:absolute;
top:0;
right:0;
width:38%;
border-top:1px solid #CACDD1 !important;
border-bottom:1px solid #CACDD1 !important;
border-right:1px solid #CACDD1 !important;
border-top-right-radius:3px !important;
border-bottom-right-radius:3px !important;
height:28px;
padding:0 1%;
margin:0;
overflow: hidden;
font-size:14px;
line-height:28px;
color:#FFFFFF;
background:#333333;
text-align:center;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
box-sizing:content-box;
}
#hugeit-contact-wrapper_1 .file-block:hover .uploadbutton {
color:#FFFFFF;
background:#333333;
vertical-align: baseline;
}
#hugeit-contact-wrapper_1 .file-block .uploadbutton i {
color:#FFFFFF;
font-size:14px;
vertical-align: baseline;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
}
#hugeit-contact-wrapper_1 .file-block:hover .uploadbutton {
color:#FFFFFF;
background:#333333;
}
#hugeit-contact-wrapper_1 .file-block:hover .uploadbutton i {
color:#FFFFFF;
}
#hugeit-contact-wrapper_1 .file-block input[type=’file’] {
height:30px;
width:100%;
position:absolute;
top:0;
left:0;
opacity:0;
cursor:pointer;
}
/*###########CAPTCHA#############*/
#hugeit-contact-wrapper_1 .captcha-block div {
margin-right:-1px;
float: right;
}
/*############BUTTONS#############*/
#hugeit-contact-wrapper_1 .buttons-block {
text-align:center; }
#hugeit-contact-wrapper_1 .buttons-block button {
height:auto;
padding:6px 12px 6px 12px;
cursor:pointer;
text-transform: none;
clear:both;
width:100%;
margin:0 0 0 0 !important;
padding-left:0;
padding-right:0;
font-size:16px;
}
#hugeit-contact-wrapper_1 .buttons-block button.submit {
color:#FFFFFF !important;
background-color:#333333 !important;
border:1px solid #000000 !important;
border-radius:3px !important;
-webkit-transition: all 0.5s ease !important;
transition: all 0.5s ease !important;
margin:0 0 5px 0 !important;
background-image: none !important;
}
#hugeit-contact-wrapper_1 .buttons-block button.submit:hover {
color:#FFFFFF !important;
background:#000000 !important;
}
#hugeit-contact-wrapper_1 .buttons-block button.submit i {
color:#FFFFFF !important;
font-size:16px !important;
vertical-align: baseline !important;
-webkit-transition: all 0.5s ease !important;
transition: all 0.5s ease !important;
}
#hugeit-contact-wrapper_1 .buttons-block button.submit:hover i {
color:#FFFFFF !important;
}
#hugeit-contact-wrapper_1 .buttons-block button.reset {
color:#FFFFFF !important;
background-color:#333333 !important;
border:1px solid #000000 !important;
border-radius:3px !important;
-webkit-transition: all 0.5s ease !important;
transition: all 0.5s ease !important;
background-image: none !important;
}
#hugeit-contact-wrapper_1 .buttons-block button.reset:hover {
color:#FFFFFF !important;
background:#000000 !important;
}
#hugeit-contact-wrapper_1 .buttons-block button.reset i {
color:#FFFFFF !important;
font-size:16px !important;
vertical-align: baseline !important;
-webkit-transition: all 0.5s ease !important;
transition: all 0.5s ease !important;
}
#hugeit-contact-wrapper_1 .buttons-block button.reset:hover i {
color:#FFFFFF !important;
}
/*############ License Field ############*/
#hugeit-contact-wrapper_1 .hugeit-check-field >.license-block{
width: 100% !important;
}
#hugeit-contact-wrapper_1 .hugeit-check-field > .license-block >.secondary-label{
vertical-align: super !important;
}
#hugeit-contact-wrapper_1 .hugeit-check-field > .license-block >.secondary-label > .checkbox-block{
margin: 0 5px 0 0 !important;
float: none !important;
display: inline-block;
vertical-align: middle !important;
}
jQuery(document).ready(function () {
/*FRONT END PREVIEW FROM ADMIN JS*/
jQuery(“.hugeit-contact-column-block input[type=’file’]”).on(‘change’,function(){
var value=jQuery(this).val().substr(jQuery(this).val().indexOf(‘fakepath’)+9);
jQuery(this).parent().find(‘input[type=”text”]’).val(value);
});
jQuery(“.hugeit-contact-column-block select”).on(‘change’,function(){
jQuery(this).prev(‘.textholder’).val(jQuery(this).val());
});
});
Name*
Last Name*
E-mail*
Phone Number
Choose a Programme
Engineering Phase & Ns
N1 – N6 Engineering Studies
Mechanical, Electrical H/C & L/C Engineering
Welding
Electrical Engineering
Mechanical Engineering
Process Instrumentation
Refrigeration & Air-conditioning
Your message
Enroll Now!
jQuery.fn.ForceNumericOnly =function(){
return this.each(function() {
jQuery(this).keydown(function(e){
var key = e.charCode || e.keyCode || 0;
// allow backspace, tab, delete, enter, arrows, numbers and keypad numbers ONLY
// home, end, period, and numpad decimal
return (
key == 8 ||
key == 9 ||
key == 13 ||
key == 46 ||
key == 110 ||
key == 190 ||
(key >= 35 && key = 48 && key = 96 && key 0) {
var blnValid = false;
for (var j = 0; j < _validFileExtensions.length; j++) { var sCurExtension = _validFileExtensions[j]; if (sFileName.substr(sFileName.length - sCurExtension.length, sCurExtension.length).toLowerCase() == sCurExtension.toLowerCase()) { blnValid = true; break; } } if (!blnValid) { return false; } } } } return true; } jQuery('#hugeit-contact-wrapper_1').find('.hugeit-field-block').not('.buttons-block').not('.captcha-block').each(function(){ if(jQuery(this).find('div.ready-phone-block input.readyPhone').attr('type')=='tel'){ phone_field=jQuery(this).find('div.ready-phone-block input.readyPhone'); if(phone_field.attr('data-required')=='required'){ phone_field.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parents('.hugeit-field-block').find('.hugeit-error-message').text(requiredError); jQuery(this).parents('.hugeit-field-block').find('label').addClass('error'); jQuery(this).parents('.hugeit-field-block').find('label>em.required-star’).addClass(‘error’);
}else{
jQuery(this).parents(‘.hugeit-field-block’).find(‘.hugeit-error-message’).text(”);
jQuery(this).parents(‘.hugeit-field-block’).find(‘label’).removeClass(‘error’);
jQuery(this).parents(‘.hugeit-field-block’).find(‘label>em.required-star’).removeClass(‘error’);
}
});
}
phone_field.on(‘keypress keyup change blur’,function(){
var phoneVal=jQuery(this).val();
jQuery(this).parents(‘.field-block’).find(‘input[type=”hidden”]’).val(phoneVal);
//alert(phoneVal)
})
}
if(jQuery(this).find(‘div.input-text-block >input’).hasClass(‘required’)){
var text_emailField=jQuery(this).find(‘input’);
text_emailField.on(‘blur’,function(){
if(jQuery(this).val().trim()==”){
jQuery(this).parent().find(‘.hugeit-error-message’).text(requiredError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
}else{
jQuery(this).parent().find(‘.hugeit-error-message’).text(”);
jQuery(this).parent().parent().find(‘label’).removeClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}
})
}
if(jQuery(this).find(‘div.selectbox-block >select’).hasClass(‘required’)){
var selectField=jQuery(this).find(‘div.selectbox-block >select’);
selectField.on(‘blur change’,function(){
if(selectField.val()==null){
jQuery(this).parent().find(‘.hugeit-error-message’).text(requiredError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
jQuery(this).parent().find(‘.hugeit-error-message’).text(”);
jQuery(this).parent().parent().find(‘label’).removeClass(‘error’);
}
});
}
if(jQuery(this).find(‘div.input-name-block >input.pl_name’).hasClass(‘required’)){
var text_fullnameField=jQuery(this).find(‘input.pl_name’);
var text_fullnameField2=jQuery(this).find(‘input.pl_surname’);
text_fullnameField.on(‘blur’,function(){
if(jQuery(this).val().trim()==”||text_fullnameField2.val().trim()==”){
jQuery(this).parent().parent().find(‘.hugeit-error-message’).text(requiredError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
}else{
jQuery(this).parent().parent().find(‘.hugeit-error-message’).text(”);
jQuery(this).parent().parent().find(‘label’).removeClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}
});
text_fullnameField2.on(‘blur’,function(){
if(jQuery(this).val().trim()==”||text_fullnameField.val().trim()==”){
jQuery(this).parent().parent().find(‘.hugeit-error-message’).text(requiredError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
}else{
jQuery(this).parent().parent().find(‘.hugeit-error-message’).text(”);
jQuery(this).parent().parent().find(‘label’).removeClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}
});
}
if(jQuery(this).find(‘div.textarea-block >textarea’).hasClass(‘required’)){
var textarea_field=jQuery(this).find(‘textarea’);
textarea_field.on(‘blur’,function(){
if(jQuery(this).val().trim()==”){
jQuery(this).parent().find(‘.hugeit-error-message’).text(requiredError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
}else{
jQuery(this).parent().find(‘.hugeit-error-message’).text(”);
jQuery(this).parent().parent().find(‘label’).removeClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}
})
}
if(jQuery(this).find(‘div.email-block >input’).attr(‘type’)==’email’){
var emailField=jQuery(this).find(‘input’);
emailField.on(‘blur’,function(){
if(jQuery(this).val()!=”){
if(!isValidEmailAddress(jQuery(this).val())){
jQuery(this).parent().find(‘.hugeit-error-message’).text(emailError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
}else{
jQuery(this).parent().find(‘.hugeit-error-message’).text(”);
jQuery(this).parent().parent().find(‘label’).removeClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}
}
})
}
if(jQuery(this).find(‘div.file-block >input[type=”file”]’).attr(‘type’)==’file’){
var fileInput=jQuery(this).find(‘input[type=”file”]’);
var maxSize = fileInput.parent().find(‘input[name=”MAX_FILE_SIZE”]’).val();
fileInput.on(‘blur’,function(){
var typeStr = jQuery(this).parent().find(‘input[name=”fileTypeArr”]’).val().trim();
typeStr = typeStr.replace(/s+/g, ”);
var _validFileExtensions = typeStr.split(“,”);
if(fileInput.val()!=”){
var validREsult=Validate(jQuery(‘#huge_it_contact_form_1’),_validFileExtensions);
if(!validREsult){
jQuery(this).parent().find(‘.hugeit-error-message’).text(uploadTypeError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}else{
if(fileInput.val()!=”){
var fileSize = fileInput.get(0).files[0].size;
}
if(jQuery(this).hasClass(‘required’)&&jQuery(this).val().trim()==”){
jQuery(this).parent().find(‘.hugeit-error-message’).text(requiredError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
}else if(fileSize>maxSize){
jQuery(this).parent().find(‘.hugeit-error-message’).text(uploadSizeError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
}else{
jQuery(this).parent().find(‘.hugeit-error-message’).text(”);
jQuery(this).parent().parent().find(‘label’).removeClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}
}
}else{
if(jQuery(this).hasClass(‘required’)&&jQuery(this).val().trim()==”){
jQuery(this).parent().find(‘.hugeit-error-message’).text(requiredError);
jQuery(this).parent().parent().find(‘label’).addClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
}else{
jQuery(this).parent().find(‘.hugeit-error-message’).text(”);
jQuery(this).parent().parent().find(‘label’).removeClass(‘error’);
jQuery(this).parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}
}
})
}
});
var captchaExists=’no’;
jQuery( “#huge_it_contact_form_1” ).on( “submit”, function(e){
e.preventDefault();
var errorsAllow=’yes’;
var nVer = navigator.appVersion;
var nAgt = navigator.userAgent;
var browserName = navigator.appName;
var fullVersion = ”+parseFloat(navigator.appVersion);
var majorVersion = parseInt(navigator.appVersion,10);
var nameOffset,verOffset,ix;
// In Opera 15+, the true version is after “OPR/”
if ((verOffset=nAgt.indexOf(“OPR/”))!=-1) {
browserName = “Opera”;
fullVersion = nAgt.substring(verOffset+4);
}
// In older Opera, the true version is after “Opera” or after “Version”
else if ((verOffset=nAgt.indexOf(“Opera”))!=-1) {
browserName = “Opera”;
fullVersion = nAgt.substring(verOffset+6);
if ((verOffset=nAgt.indexOf(“Version”))!=-1)
fullVersion = nAgt.substring(verOffset+8);
}
// In MSIE, the true version is after “MSIE” in userAgent
else if ((verOffset=nAgt.indexOf(“MSIE”))!=-1) {
browserName = “MSIE”;
fullVersion = nAgt.substring(verOffset+5);
}
// In Chrome, the true version is after “Chrome”
else if ((verOffset=nAgt.indexOf(“Chrome”))!=-1) {
browserName = “Chrome”;
fullVersion = nAgt.substring(verOffset+7);
}
// In Safari, the true version is after “Safari” or after “Version”
else if ((verOffset=nAgt.indexOf(“Safari”))!=-1) {
browserName = “Safari”;
fullVersion = nAgt.substring(verOffset+7);
if ((verOffset=nAgt.indexOf(“Version”))!=-1)
fullVersion = nAgt.substring(verOffset+8);
}
// In Firefox, the true version is after “Firefox”
else if ((verOffset=nAgt.indexOf(“Firefox”))!=-1) {
browserName = “Firefox”;
fullVersion = nAgt.substring(verOffset+8);
}
// In most other browsers, “name/version” is at the end of userAgent
else if ( (nameOffset=nAgt.lastIndexOf(‘ ‘)+1) < (verOffset=nAgt.lastIndexOf('/')) ) { browserName = nAgt.substring(nameOffset,verOffset); fullVersion = nAgt.substring(verOffset+1); if (browserName.toLowerCase()==browserName.toUpperCase()) { browserName = navigator.appName; } } // trim the fullVersion string at semicolon/space if present if ((ix=fullVersion.indexOf(";"))!=-1) fullVersion=fullVersion.substring(0,ix); if ((ix=fullVersion.indexOf(" "))!=-1) fullVersion=fullVersion.substring(0,ix); majorVersion = parseInt(''+fullVersion,10); if (isNaN(majorVersion)) { fullVersion = ''+parseFloat(navigator.appVersion); majorVersion = parseInt(navigator.appVersion,10); } //// jQuery('#hugeit-contact-wrapper_1').find('.hugeit-field-block').not('.buttons-block').each(function(){ if(jQuery(this).find('div.input-text-block >input’).hasClass(‘required’)){
var text_emailField=jQuery(this).find(‘input’);
if(text_emailField.val().trim()==”){
text_emailField.parent().find(‘.hugeit-error-message’).text(requiredError);
text_emailField.parent().parent().find(‘label’).addClass(‘error’);
text_emailField.parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
text_emailField.parent().find(‘.hugeit-error-message’).text(”);
text_emailField.parent().parent().find(‘label’).removeClass(‘error’);
}
}
if(jQuery(this).find(‘div.ready-phone-block input.readyPhone’).attr(‘type’)==’tel’){
phone_field=jQuery(this).find(‘div.ready-phone-block input.readyPhone’);
if(phone_field.attr(‘data-required’)==’required’){
if(phone_field.val().trim()==”){
phone_field.parents(‘.hugeit-field-block’).find(‘.hugeit-error-message’).text(requiredError);
phone_field.parents(‘.hugeit-field-block’).find(‘label’).addClass(‘error’);
phone_field.parents(‘.hugeit-field-block’).find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
phone_field.parents(‘.hugeit-field-block’).find(‘.hugeit-error-message’).text(”);
phone_field.parents(‘.hugeit-field-block’).find(‘label’).removeClass(‘error’);
phone_field.parents(‘.hugeit-field-block’).find(‘label>em.required-star’).removeClass(‘error’);
}
}
}
if(jQuery(this).find(‘div.license-block input#ifChecked’).hasClass(‘required’)){
license_field=jQuery(this).find(‘div.license-block input[type=”checkbox”]’);
if(!license_field.is(‘:checked’)){
license_field.parents(‘.hugeit-field-block’).find(‘.hugeit-error-message’).text(‘Please tick on checkbox’);
errorsAllow=’no’;
}else{
license_field.parents(‘.hugeit-field-block’).find(‘.hugeit-error-message’).text(”);
}
}
if(jQuery(this).find(‘div.input-name-block >input.pl_name’).hasClass(‘required’)){
var text_fullnameField=jQuery(this).find(‘input.pl_name’);
var text_fullnameField2=jQuery(this).find(‘input.pl_surname’);
if(text_fullnameField==”||text_fullnameField2.val().trim()==”){
text_fullnameField.parent().parent().find(‘.hugeit-error-message’).text(requiredError);
text_fullnameField.parent().parent().find(‘label’).addClass(‘error’);
text_fullnameField.parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
text_fullnameField.parent().parent().find(‘.hugeit-error-message’).text(”);
text_fullnameField.parent().parent().find(‘label’).removeClass(‘error’);
text_fullnameField.parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}
if(text_fullnameField2.val().trim()==”||text_fullnameField.val().trim()==”){
text_fullnameField2.parent().parent().find(‘.hugeit-error-message’).text(requiredError);
text_fullnameField2.parent().parent().find(‘label’).addClass(‘error’);
text_fullnameField2.parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
text_fullnameField2.parent().parent().find(‘.hugeit-error-message’).text(”);
text_fullnameField2.parent().parent().find(‘label’).removeClass(‘error’);
text_fullnameField2.parent().parent().find(‘label>em.required-star’).removeClass(‘error’);
}
}
if(jQuery(this).find(‘div.textarea-block >textarea’).hasClass(‘required’)){
var textarea_field=jQuery(this).find(‘textarea’);
if(textarea_field.val().trim()==”){
textarea_field.parent().find(‘.hugeit-error-message’).text(requiredError);
textarea_field.parent().parent().find(‘label’).addClass(‘error’);
textarea_field.parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
textarea_field.parent().find(‘.hugeit-error-message’).text(”);
textarea_field.parent().parent().find(‘label’).removeClass(‘error’);
}
}
if(jQuery(this).find(‘div.email-block >input’).attr(‘type’)==’email’){
var emailField=jQuery(this).find(‘input’);
emailField.on(‘blur’,function(){
if(jQuery(this).val()!=”){
if(!isValidEmailAddress(jQuery(this).val())){
jQuery(this).parent().find(‘.hugeit-error-message’).text(emailError);
jQuery(this).parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
jQuery(this).parent().find(‘.hugeit-error-message’).text(”);
}
}
})
}
if(jQuery(this).find(‘div.selectbox-block >select’).hasClass(‘required’)){
var selectField=jQuery(this).find(‘div.selectbox-block >select’);
if(selectField.val()==null){
selectField.parent().find(‘.hugeit-error-message’).text(requiredError);
selectField.parent().parent().find(‘label’).addClass(‘error’);
selectField.parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
selectField.parent().find(‘.hugeit-error-message’).text(”);
selectField.parent().parent().find(‘label’).removeClass(‘error’);
}
}
if(jQuery(this).find(‘div.file-block >input[type=”file”]’).attr(‘type’)==’file’){
var fileInput=jQuery(this).find(‘input[type=”file”]’);
var maxSize = fileInput.parent().find(‘input[name=”MAX_FILE_SIZE”]’).val();
var typeStr = fileInput.parent().find(‘input[name=”fileTypeArr”]’).val().trim();
typeStr = typeStr.replace(/s+/g, ”);
var _validFileExtensions = typeStr.split(“,”);
if(fileInput.val()!=”){
var validREsult=Validate(jQuery(‘#huge_it_contact_form_1’),_validFileExtensions);
if(!validREsult){
fileInput.parent().find(‘.hugeit-error-message’).text(uploadTypeError);
fileInput.parent().parent().find(‘label’).addClass(‘error’);
fileInput.parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
if(fileInput.val()!=”){
var fileSize = fileInput.get(0).files[0].size;
}
if(fileInput.hasClass(‘required’)&&fileInput.val().trim()==”){
fileInput.parent().find(‘.hugeit-error-message’).text(requiredError);
fileInput.parent().parent().find(‘label’).addClass(‘error’);
fileInput.parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else if(fileSize>maxSize){
fileInput.parent().find(‘.hugeit-error-message’).text(uploadSizeError);
fileInput.parent().parent().find(‘label’).addClass(‘error’);
fileInput.parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
fileInput.parent().find(‘.hugeit-error-message’).text(”);
fileInput.parent().parent().find(‘label’).removeClass(‘error’);
}
}
}else{
if(fileInput.hasClass(‘required’)&&fileInput.val().trim()==”){
fileInput.parent().find(‘.hugeit-error-message’).text(requiredError);
fileInput.parent().parent().find(‘label’).addClass(‘error’);
fileInput.parent().parent().find(‘label>em.required-star’).addClass(‘error’);
errorsAllow=’no’;
}else{
fileInput.parent().find(‘.hugeit-error-message’).text(”);
fileInput.parent().parent().find(‘label’).removeClass(‘error’);
}
}
}
if(jQuery(this).hasClass(‘captcha-block’)){
captchaExists=’yes’;
}
});
if(captchaExists==’yes’){
if(jQuery(‘#huge_it_contact_form_1’).attr(‘verified’)==0){
if(!jQuery(this).find(‘div.captcha-block #huge_it_captcha_1’).find(‘span’).length){
jQuery(this).find(‘div.captcha-block #huge_it_captcha_1′).append(”+captchaError+”)
}
errorsAllow=’no’;
}else{
jQuery(this).find(‘div.captcha-block’).find(‘span.hugeit-error-message’).text(”);
}
}
if(errorsAllow==’yes’){
var fd = new FormData();
var files_data = jQuery(‘.fileUploader’);
var self=jQuery(this);
var postData=self.serialize();
jQuery.each(jQuery(files_data), function(i, obj) {
jQuery.each(obj.files,function(j,file){
fd.append(obj.name, file);
})
});
fd.append(‘action’, ‘hugeit_validation_action’);
fd.append(‘formId’, ‘1’);
fd.append(‘browser’,browserName);
fd.append(‘nonce’, huge_it_obj.nonce);
fd.append(‘postData’, postData);
jQuery.ajax({
type: ‘POST’,
url: ‘http://www.tekmation.co.za/wp-admin/admin-ajax.php’,
nonce:huge_it_obj.nonce,
data: fd,
contentType: false,
processData: false,
beforeSend: function(){
var buttonsHeightBs=jQuery(‘#hugeit-contact-wrapper_1’).find(‘div.buttons-block’).height();
var buttonsWidthBs=jQuery(‘#hugeit-contact-wrapper_1’).find(‘div.buttons-block’).width();
jQuery(‘#hugeit-contact-wrapper_1’).find(‘div.buttons-block’).append(‘‘);
},
success: function(response){
var response = jQuery.parseJSON(response);
if(response.markedAsSpam){
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.huge_it_button_overlay’).css(‘display’,’none’);
var buttonField=response.spamButton;
jQuery(‘#hugeit-contact-wrapper_1 .hugeit-error-message’).empty();
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.hugeit-field-block’).find(‘label’).removeClass(‘error’);
document.getElementById(“huge_it_contact_form_1″).reset();
var buttonsHeight=jQuery(‘#hugeit-contact-wrapper_1’).find(‘div[rel=”‘+buttonField+'”]’).height()+3;
var buttonsWidth=jQuery(‘#hugeit-contact-wrapper_1’).find(‘div[rel=”‘+buttonField+'”]’).width()-2;
var spamText=response.markedAsSpam;
jQuery(‘#hugeit-contact-wrapper_1’).find(‘div[rel=”‘+buttonField+'”]’).empty().append(”+spamText+”);
}else if(response.errors){
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.huge_it_button_overlay’).css(‘display’,’none’);
if(captchaExists==’yes’){
grecaptcha.reset(recaptchas[1]);
}
jQuery(‘#hugeit-contact-wrapper_1 .hugeit-error-message’).empty();
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.hugeit-field-block’).find(‘label’).removeClass(‘error’);
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.hugeit-field-block’).find(‘label>em.required-star’).removeClass(‘error’);
jQuery.each( response.errors, function( key, value ) {
jQuery(‘#hugeit-contact-wrapper_1’).find(‘div [rel=”‘+key+'”]’).find(‘span.hugeit-error-message’).append(value);
jQuery(‘#hugeit-contact-wrapper_1’).find(‘div [rel=”‘+key+'”]’).find(‘label’).addClass(‘error’);
jQuery(‘#hugeit-contact-wrapper_1’).find(‘div [rel=”‘+key+'”]’).find(‘label>em.required-star’).addClass(‘error’);
});
}else if(response.success){
if(response.afterSubmit==’print_success_message’){
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.huge_it_button_overlay’).css(‘display’,’none’);
var buttonField=response.buttons;
var successText=response.success;
var buttonsHeight=jQuery(‘#hugeit-contact-wrapper_1’).find(‘div[rel=”‘+buttonField+'”]’).height()+3;
var buttonsWidth=jQuery(‘#hugeit-contact-wrapper_1’).find(‘div[rel=”‘+buttonField+'”]’).width()-2;
jQuery(‘#hugeit-contact-wrapper_1’).find(‘div[rel=”‘+buttonField+'”]’).empty().append(”+successText+”);
document.getElementById(“huge_it_contact_form_1”).reset();
jQuery(‘#hugeit-contact-wrapper_1 .hugeit-error-message’).empty();
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.hugeit-field-block’).find(‘label’).removeClass(‘error’);
}else if(response.afterSubmit==’refresh_page’){
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.huge_it_button_overlay’).css(‘display’,’none’);
location.reload();
}else if(response.afterSubmit==’go_to_url’){
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.huge_it_button_overlay’).css(‘display’,’none’);
document.getElementById(“huge_it_contact_form_1”).reset();
jQuery(‘#hugeit-contact-wrapper_1 .hugeit-error-message’).empty();
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.hugeit-field-block’).find(‘label’).removeClass(‘error’);
var redirectUrl=response.afterSubmitUrl;
window.location.href=redirectUrl;
}
}
}
});
}
});
jQuery( “#huge_it_contact_form_1” ).on( “reset”, function() {
if(captchaExists==’yes’){
grecaptcha.reset(recaptchas[1]);
}
jQuery(‘#hugeit-contact-wrapper_1 .hugeit-error-message’).empty();
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.hugeit-field-block’).find(‘label’).removeClass(‘error’);
jQuery(‘#hugeit-contact-wrapper_1’).find(‘.hugeit-field-block’).find(‘label>em.required-star’).removeClass(‘error’);
});
})