Antiquarian Book Blogosphere

Event | In Her Own Words: works by exceptional women

Peter Harrington Bookseller Blog -

Peter Harrington is proud to announce its first catalogue focussed on works by women. .

You are warmly invited to join us on the 26th February for a glass of fizz and a chance to view this remarkable selection of material, which celebrates women’s intellectual, social and political history across the centuries, from Sappho to Maya Angelou.

RSVP: rachel@peterharrington.co.uk

+44 (0)20 3763 3220

The post Event | In Her Own Words: works by exceptional women appeared first on Peter Harrington Blog.

York National Book Fair13th – 14th September 2019

Peter Harrington Bookseller Blog -

Location:The Knavesmire Suite, York Racecourse, YO23 1EX

Website: http://www.yorkbookfair.com/

From modest beginning with just 20 exhibitors at the White Swan Inn in York in 1974, the York Book Fair has grown into the largest, and many say friendliest, rare, antiquarian & out-of-print book fair in the U.K.

Friday Sept 14th 2018
12 noon – 7pm Saturday Sept 15th 2018
10am – 5pm /*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post York National Book Fair<br>13th – 14th September 2019 appeared first on Peter Harrington Blog.

Brooklyn Antiquarian Book Fair7th – 8th September 2019

Peter Harrington Bookseller Blog -

Location: Brooklyn Expo Center, Greenpoint

Website: https://www.brooklynbookfair.com/

The country’s largest regional antiquarian book fair comes to Brooklyn each fall bringing more than 100 top antiquarian book, print, photo, autograph and ephemera dealers from around the globe as well as a full schedule of interesting talks and exhibits. Whether you are looking for a book for under $50 to start a collection or a rare signed first edition, you’ll find those and so much more at BABF.

Saturday September 7th noon – 7pm
Sunday September 8th – 11am – 5pm

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post Brooklyn Antiquarian Book Fair<br>7th – 8th September 2019 appeared first on Peter Harrington Blog.

ANZAAB Australian Antiquarian Book Fair12th – 14th July 2019

Peter Harrington Bookseller Blog -

Location:Wilson Hall, The University of Melbourne 

Website: http://www.rarebookfair.com/

The Melbourne Rare Book Fair is again being held at Wilson Hall, The University of Melbourne. Australian and international booksellers will have a broad, diverse and interesting selection of books, maps, manuscripts and ephemera, including early printed books, historical accounts of travel, prints, literature, art, militaria, and children’s books, offered for sale at prices to suit all levels of collecting.

Whether you already have your own personal library and wish to add to it or would like to know more about book collecting, this is your opportunity to explore the world of books with experts in their fields.

Friday July 6
6.00 pm–9.00 pm
Saturday July 7
10.00 am–5.00 pm
Sunday July 8
10.00 am–5.00 pm

Admission to the fair is free

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post ANZAAB Australian Antiquarian Book Fair<br>12th – 14th July 2019 appeared first on Peter Harrington Blog.

Bristol Premier Fair5th – 6th July 2019

Peter Harrington Bookseller Blog -

Location:The Passenger Shed, Station Approach, Bristol BS1 6QH

Website: http://www.pbfa.org/book-fairs/bristol-premier-fair-with-aba/6942

Friday: 1:00pm – 7:00pm Saturday: 10.00am -4:30pm

£2.00 entry

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post Bristol Premier Fair<br>5th – 6th July 2019 appeared first on Peter Harrington Blog.

Masterpiece 201927th June – 3rd July 2019

Peter Harrington Bookseller Blog -

Location:South Grounds, The Royal Hospital Chelsea, London, SW3 4LW

Website: https://www.masterpiecefair.com/

Masterpiece has established itself as the world’s leading cross-collecting fair, offering the finest works of art, design, furniture and jewellery, from antiquity to the present day.

The unmissable event at the height of the capital’s summer season, Masterpiece London provides an unparalleled opportunity for new and established collectors to discover exceptional works for sale from 160 international exhibitors; the centrepiece of a unique week of cultural experiences in the heart of London.

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post Masterpiece 2019<br>27th June – 3rd July 2019 appeared first on Peter Harrington Blog.

Firsts: London’s Rare Book Fair7th – 9th June 2019

Peter Harrington Bookseller Blog -

Location: Battersea Evolution, Battersea Park, Queenstown Road, London SW8 4NW

Website: https://www.firstslondon.com/

Welcome to Firsts – London’s Rare Book Fair – the 62nd ABA summer fair – which returns to Battersea Evolution in the heart of Battersea Park, for a second time. This major three-day event is one of the largest and most prestigious antiquarian book fairs in the world. Showcasing rare, unique and unusual items from more than 150 leading UK and international dealers, Firsts – London’s Rare Book Fair is the jewel in the crown of Rare Books London, which celebrates old and rare books, with special events and behind-the-scenes activities for bibliophiles during May and June.

From museum-quality medieval manuscripts to modern signed first editions such as Harry Potter, visitors to the fair can literally hold history in their hands as they view and buy rare books, maps, prints, photographs, ephemera and original artwork. Whether you are an established collector or new to collecting, exhibitors welcome you to browse their Highlights, and to get in touch prior to the Fair. They will be happy to bring specific items for your inspection, and this is an excellent opportunity to make new contacts in your area of interest.

In addition to regular and new exhibitors, we have a carefully selected series of live events run by specialist organisations and craftspeople. Fascinating hands-on workshops (including family-friendly activities) give visitors a chance to dive straight into the world of fine printing, bookbinding, and calligraphy. You can find out what makes a book rare and learn more about all aspects of book-collecting – and much more – on our popular expert-led guided tours.

The Fair is presented and managed by the Antiquarian Booksellers’ Association (ABA), in collaboration with the International League of Antiquarian Booksellers (ILAB). These internationally recognized badges of excellence guarantee the accuracy of description and authenticity of all items for sale, as well as the professionalism and knowledge of the exhibitors.

Firsts is a highlight of the year for bibliophiles around the world.

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post Firsts: London’s Rare Book Fair<br>7th – 9th June 2019 appeared first on Peter Harrington Blog.

London Antiquarian Book Fair6th – 7th June 2019

Peter Harrington Bookseller Blog -

Location: ILEC Conference Centre, Ibis London Earls Court Hotel, 47 Lillie Road, London SW6 1UD

Website: http://www.pbfa.org/book-fairs/london-antiquarian-book-fair/6853

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post London Antiquarian Book Fair<br>6th – 7th June 2019 appeared first on Peter Harrington Blog.

Abu Dhabi International Book Fair24th – 30th April 2019

Peter Harrington Bookseller Blog -

Location: Abu Dhabi National Exhibition Centre, Abu Dhabi, UAE

Website: https://adbookfair.com/en/default.aspx

The Abu Dhabi International Book Fair is the most professionally organised, most ambitious and fastest growing book fair in the Middle East and North Africa.

Abu Dhabi is the motor driving the professional and commercial development of the regional publishing industry, and is financially and philosophically committed to the long-term expansion of the global book business.

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post Abu Dhabi International Book Fair<br>24th – 30th April 2019 appeared first on Peter Harrington Blog.

The London Original Print Fair25th-28th April 2019

Peter Harrington Bookseller Blog -

Date:25th-28th April 2019

Location: The Royal Academy of Arts, London

Website: https://www.londonoriginalprintfair.com/

The London Original Print Fair provides an unrivalled opportunity to view and buy original prints spanning five centuries, from top international dealers, galleries and studios.

LOPF’s convivial atmosphere in the Royal Academy’s Main Galleries provides the perfect setting to engage with the 50 exhibitors, who offer a wealth of specialist knowledge for new and experienced collectors alike.

Artists include old and modern masters, from Rembrandt and Canaletto to Whistler, Matisse and Picasso. Prints by today’s leading artists are also for sale, including works by celebrated Royal Academician printmakers including David Hockney, Cornelia Parker, Grayson Perry and Christopher Le Brun PRA.

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post The London Original Print Fair<br>25th-28th April 2019 appeared first on Peter Harrington Blog.

Salon International du Livre Rare & de l’Objet d’art, Paris11th – 14th April 2019

Peter Harrington Bookseller Blog -

Date: 11th – 14th April 2019

Location:Grand Palais, Winston Churchill Avenue, 75008 PARIS

Website: https://www.salondulivrerare.paris/2-accueil.html

In June 1984, the National Union of the Old and Modern Booksellers (SLAM) organizes, at the initiative of its president Jeanne Laffite, the first International Book Fair in Paris, at the Conciergerie. In this place full of history, it was a considerable success and every two years, booksellers around the world make the habit of coming to Paris to exhibit exceptional and very diverse documents.
From 1993, the Salon moved to the House of Mutuality where this bibliophilic meeting will become annual from 1995.
Since April 2007, the Nave of the Grand Palais hosts the Salon du Livre Ancien . This event has been associated until 2015 with theSalon of Printmaking and Drawing , organized by the Union Chamber of Printmaking and Drawing and Painting. 

It is today the most beautiful event of its kind in France and one of the largest in the world, with 150 booksellers from all over the world, all affiliated to the International League of Antiquarian Booksellers (LILA) , and experts in CNES members rare and historic objects
All these professionals highlight an invaluable written, graphic and artistic heritage and this exceptional cultural event is a unique opportunity to become familiar with our collective memory.

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .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_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .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_8 .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_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.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_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .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_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; 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_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !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_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .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()); }); }); Going to this fair? Name* Email* Request Submit 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 <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 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_8').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); }) } 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_8'),_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_8" ).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_8').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_8'),_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_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').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); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: 'https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php', nonce:huge_it_obj.nonce, data: fd, contentType: false, processData: false, beforeSend: function(){ var buttonsHeightBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').height(); var buttonsWidthBs=jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').width(); jQuery('#hugeit-contact-wrapper_8').find('div.buttons-block').append(''); }, success: function(response){ var response = jQuery.parseJSON(response); if(response.markedAsSpam){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.spamButton; jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); document.getElementById("huge_it_contact_form_8").reset(); var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; var spamText=response.markedAsSpam; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+spamText+''); }else if(response.errors){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); jQuery.each( response.errors, function( key, value ) { jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('span.hugeit-error-message').append(value); jQuery('#hugeit-contact-wrapper_8').find('div [rel="'+key+'"]').find('label').addClass('error'); jQuery('#hugeit-contact-wrapper_8').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_8').find('.huge_it_button_overlay').css('display','none'); var buttonField=response.buttons; var successText=response.success; var buttonsHeight=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').height()+3; var buttonsWidth=jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').width()-2; jQuery('#hugeit-contact-wrapper_8').find('div[rel="'+buttonField+'"]').empty().append(''+successText+''); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); }else if(response.afterSubmit=='refresh_page'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); location.reload(); }else if(response.afterSubmit=='go_to_url'){ jQuery('#hugeit-contact-wrapper_8').find('.huge_it_button_overlay').css('display','none'); document.getElementById("huge_it_contact_form_8").reset(); jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); var redirectUrl=response.afterSubmitUrl; window.location.href=redirectUrl; } } } }); } }); jQuery( "#huge_it_contact_form_8" ).on( "reset", function() { if(captchaExists=='yes'){ grecaptcha.reset(recaptchas[8]); } jQuery('#hugeit-contact-wrapper_8 .hugeit-error-message').empty(); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label').removeClass('error'); jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').find('label>em.required-star').removeClass('error'); }); function hugeit_refresh_captcha() { captchacontainer=jQuery(this).closest('.formsAboveAlign'); img=captchacontainer.find('img').eq(0); captchaid=jQuery(this).attr('data-captcha-id'); var d = new Date(); time = d.getTime(); jQuery('.hugeit_captcha_refresh_button').attr('data-time',time); formid=jQuery(this).data('form-id'); digits=jQuery(this).data('digits'); user='user'; img.remove(); var url='https://www.peterharrington.co.uk/blog/wp-admin/admin-ajax.php'; jQuery.ajax({ type: 'POST', url: url, data:{ captchaid: captchaid, action: "hugeit_refresh_simple_captcha", time: time }, beforeSend: function(){ }, success: function(response){ newimg=''; jQuery(newimg).prependTo(captchacontainer); } }); } jQuery('#huge_it_contact_form_8 .hugeit_captcha_refresh_button').click(hugeit_refresh_captcha); })

The post Salon International du Livre Rare & de l’Objet d’art, Paris<br>11th – 14th April 2019 appeared first on Peter Harrington Blog.

Austen, Illustrated

Peter Harrington Bookseller Blog -

For today’s audience, visualising Jane Austen is easy. In numerous recent TV and film dramatisations, the Regency era is communicated through a parade of empire line gowns, sedate formal dances and serene stately homes. So settled are we, in fact, on this familiar interpretation of Austen novels today, that it is easy to discount the fact that Austen has been imagined very differently in the past. The earliest film adaptation of Pride and Prejudice in 1940, for example, was set in the Victorian period, in order that it might be marketed in the same vein as the wildly popular Gone with the Wind, which had appeared the previous year. It thus featured a cast of female characters in enormous Scarlett O’Hara style dresses and bonnets. To the first audiences of Austen on screen, the novels were presented as 19th century romances, rather than the acerbic social commentaries of the previous century which appear on the page, and the endurance of this conception of Austen in the popular collective consciousness still holds a certain amount of power.

MGM Studios [Public domain], via Wikimedia Commons

This was not the first time, however, that Austen had been misrepresented to make her more marketable. Henry James, in 1905, can be found deploring the way in which

the body of publishers, editors, illustrators, producers of the pleasant twaddle of magazines … found their ‘dear,’ our dear, everybody’s dear, Jane so infinitely to their material purpose, so amenable to pretty reproduction in every variety of what is called tasteful, and in what seemingly proves to be saleable form.

From the first illustrated editions, which began to appear in the 1830’s, the content of the novels was being subjected to subtle (and sometimes not-so-subtle) manipulation to suit what the publishers perceived as palatable to the audience’s tastes at the time.

Just as in TV, film and stage adaptations, the illustrations of a novel have the power to profoundly influence the audience’s perception and draw out different aspects; the domestic or the pastoral, the political or social, the familial or the romantic. They can also alter factors such as the perceived age range of the audience for the novels by accentuating either scenes of gothic melodrama or the lighter, cosier elements of the narratives. When considering historical illustrations of Austen’s books, we must keep in mind that illustrators’ choices could have been influenced by a number of factors we may never be able to puzzle out; a publishers’ brief, market considerations, current trends or fashions etc. The illustrators themselves may not even have read the novels cover to cover.

Austen’s novels did not appear in illustrated form until the early 19th century. Illustrated novels were expensive to produce, and even works celebrated from the time of publication (which Austen’s were not) were often not illustrated until later editions. The copyrights to all of Austen’s six major novels were bought in 1832 by publisher Richard Bentley, fifteen years after Austen’s death. It was Bentley whose publication of each in turn as part of his Standard Novels series cemented their place in the literary canon. The illustrations for these editions – each featured a steel-engraved frontispiece and a title page vignette – were the first visualisations of Austen to be seen by a wide audience, and thus impacted greatly upon the reception of her works in the cultural consciousness.

First Bentley Edition of Sense and Sensibility, with illustrated frontispiece after Ferdinand Pickering

This first interpreter of Austen was Ferdinand Pickering, illustrator of previous Bentley publications of the Gothic, romantic and domestic persuasion. Perhaps feeling most comfortable in this territory, Pickering duly provided illustrations for Austen’s novels which conformed to the mould of standard Victorian pot-boilers. Ignoring the Regency fashions that would be accurate to the setting of the novels, Pickering depicts female characters as wasp-waisted and voluminous-skirted, stepping with implausibly tiny feet through a series of scenes either domestically or dramatically preoccupied: in short, images familiar to readers from the post-gothic melodramas popular in the 1830s. Instances of surprise or strife are emphasised, almost to the extent of stretching the actual content of a scene to breaking point while leaving Austen’s native humour and mitigating satire unillustrated. For example, the image chosen for the frontispiece of Northanger Abbey depicts Henry Tilney on discovering Catherine Morland snooping in his late mother’s off-limits chambers. Catherine clasps her hands together beseechingly  and the whole scene is bathed in menacing shadows. It is unclear, at a glance, whether Tilney is the villain of the piece rather than its hero. Historian and critic Thomas Babbington-Macaulay wrote to a friend of the Bentley edition: ‘Get a sight of the Book next time you go to a circulating library at Liverpool; and tell me whether Henry Tilney be not the most offensive Varmint man that ever you saw’. In reality, the scene, within the wider context of Austen’s mock-gothic novel, is intended as a send-up of exactly the kind of sinister moment Pickering has ultimately represented. The illustration, it seems, has rather missed the joke.

Pickering’s illustrations: Frontispiece to Northanger Abbey and title page vignette to Sense & Sensibility

Similarly misleadingly, the title-page vignette selected for Sense & Sensibility depicts an exaggeratedly gothic version of Marianne’s illness.  The illustration, showing Marianne as a ghostly vision in frilled nightclothes being almost physically restrained by Elinor, would look more at home in Wuthering Heights, or another more gothically-disposed novel of the 19th century. While technically true to the novel, the choice of this scene (one of comparatively unrepresentative peril and drama in the larger context of the narrative) seems a strange introduction.

Indeed, Pickering’s tendency both to draw out and amplify gothic themes, and to place his characters in fashions contemporary to the 1830s, situated Austen’s novels so firmly in the context of the 19th century that she was often grouped with other Victorian novelists such as Charlotte Bronte and George Eliot in later literary discussion. This misappropriation was compounded by the fact that Bentley’s Standard Novels series of Austen’s work was reissued with Pickering’s illustrations until 1886. As it would have been through Bentley’s editions that many readers first approached Austen, her novels were effectively frozen in time as artefacts of early Victorian literature. When, in the mid-nineteenth century, other publishers issued illustrated editions of Austen’s work as the copyright on each novel expired, Pickering’s designs became the benchmark. Several illustrators chose to perpetuate the early Victorian fashions and setting. The illustrations for the 1851 Routledge edition of Pride and Prejudice by Sir John Gilbert, for example, have been criticised as rather lacklustre imitations of Pickering’s work, retaining the determinedly Victorian setting while shedding the sensationalist subjects. The resulting illustrations depict neat and demure heroines engaged in generic and passive activities, and are remarkable largely only for their lack of interest. Chapman & Hall’s 1870 ‘Yellowback’ edition also chooses Victorian dress for its characters but is, in contrast, notable for its bizarre choice of scene to illustrate; Lydia (we presume) is depicted in lurid colour at a soldiers’ encampment at Brighton, conversing with three officers, despite the fact that Austen never wrote this scene. Subsequent American editions of the novels, presumably taking their cue from the British, continued to illustrate characters in Victorian dress into the late nineteenth century.

Chapman & Hall ‘Yellowback’ edition of Pride & Prejudice, 1870

The first illustrations to make an attempt at period-appropriate representation were those created by William Cubitt Cooke for J. M. Dent & Company’s ten volume edition of Austen’s novels in 1892. Cooke produced thirty illustrations for Dent which made an attempt at representing Regency dress and furnishings, providing readers with a more accurate visualisation of the books as they actually appeared on the page, rather than a more superficial rendering which kept an eye firmly on marketability.

The edition, however, which would set the standard for Austen illustration was George Allen’s 1894 ‘Peacock’ Pride and Prejudice, illustrated by Hugh Thomson. So called because of the lavish peacock motif that appeared on the endpapers, title page and gilt-embossed cover, it featured over 160 illustrations and decorations. Its landmark status in the publishing history of Austen, as well as its attractiveness, ensure its continued collectability, with copies usually fetching prices in the low thousands. Thomson’s Austen was also the first to attempt to inject humour into illustrations of the novels. Whimsical headpieces, often not depicting scenes directly described by Austen but attempting to capture the light and ironical tone off the novels, appear at the head of each chapter. For example, the five Bennet daughters are shown in one instance seated, flanked on the left by a fussing Mrs Bennet and on the right by the odious would-be suitor Mr Collins, who inspects them. A small sign above the head of the middle sister (presumably Jane) reads ‘not for sale’. Thomson went on to illustrate the five other Austen novels after his defection from George Allen to Macmillan. When it came, however, to Mcmillan’s own edition of Pride and Prejudice, they were in something of a bind, as Thomson’s earlier illustrations for the novel belonged to George Allen. They therefore engaged another illustrator, Charles Brock, for the project.

the ‘Peacock’ Pride and Prejudice, illustrated by Hugh Thomson

Charles Brock and his brother Matthew must also be credited with shaping the visual trend of Austen, producing over two hundred illustrations across several editions and formats. Chief amongst their innovations was the use of coloured plates, as in the ten volume Austen edition of 1898 produced by J. M. Dent. Following the trend of historical accuracy that emerged in the 1890s, the Brocks’ illustrations depict characters in period costume inhabiting highly detailed scenes. The Brock brothers reputedly collected period furniture and would have their friends model for scenes in their Cambridge studio. Brock’s illustrations also capture some of Austen’s characteristically arch humour in the scenes and captions chosen. A plate for Emma, for example, shows the obnoxious Mrs Elton in a rather gaudy dress asking “How do you like my gown?”

An illustration of Lydia for Pride & Prejudice by C. E. Brock

Though the popularity of illustrated editions of Austen continued into the 20th century, ensuring repeated illustrated interpretations, it was film adaptations that increasingly began to shape popular notions of how Austen’s novels looked. The first on-screen adaptation of Pride & Prejudice in 1940 starred Laurence Olivier and Greer Garson and was marketed heavily to theatre-goers and was seen by millions. As mentioned above, it took advantage of the recent success of other book-to-screen adaptations, opting for lavish and exaggerated Victorian costumes and sets for maximum visual titillation.  As with the illustrated editions, the prevailing trends of the day dictated the visual presentation of Austen. Almost from the advent of her popularity, Austen has been big business, and marketability continues to be the main factor affecting our conception of how the novels are visualised.

Illustrated Jane Austen novels:

The post Austen, Illustrated appeared first on Peter Harrington Blog.

Christmas 2018

Peter Harrington Bookseller Blog -

Christmas Opening Hours Chelsea
100 Fulham Road, London SW3 6HS

Mon 26 November – Sat 22 December
Monday – Thursday: 10am – 7pm
Friday & Saturday: 10am – 6pm
Sunday: CLOSED
Monday 24th December: 10am – 2pm
Tuesday 25th December – Wednesday 26 December: CLOSED
Thursday 27 December – Saturday 29 December: 10am – 6pm
Sunday 30 December – Tuesday 1 January 2019: CLOSED

Mayfair
43 Dover Street, London W1S 4FF

Monday 26 November – Saturday 22 December
Monday – Friday: 10am – 7pm
Saturday: 10am – 6pm
Sunday: CLOSED
Sunday 23 December – Tuesday 1 January 2019: CLOSED

Wednesday 2 January 2019: Normal business hours resume

 

 

Christmas Shipping Dates

All orders of £200 and above placed between now and Christmas will be sent by UPS or Fed Ex express services free of charge.
We offer free next day delivery on all UK orders.

Last recommended Christmas shipping dates (order by 3pm):
UK: Friday 21st December
USA, Canada & Western Europe: Thursday 20th December
Eastern Europe & Russia: Thursday 20th December
Middle East, Asia, Central & South America: Tuesday 18th December
Australia & New Zealand: Monday 17th December

View all shipping information