Antiquarian Book Blogosphere

A shanty-song to otherness: Herman Melville and Charles Stoddard

Peter Harrington Bookseller Blog -

By Andy Stewart MacKay

“I have written a blasphemous book” said American novelist Herman Melville (1819-91) of his best-known work, Moby Dick, first published in 1851. Narrated by Ishmael, the biblically-resonant mariner afloat a “wilderness of waters”, ostensibly it’s the story of Captain Ahab’s obsessive hunt for a giant whale – the eponymous Moby Dick. Set on the high-seas of the South Pacific, it’s a novel that’s rich in metaphor and – as in Joseph Conrad’s 1899 novella Heart of Darkness – becomes for the main characters a psychological journey into the unknown. The elusive Moby Dick is, according to author Peter Hoare, “an icon of otherness”. Indeed, the novel itself reads like an old shanty-song to “otherness” and one that takes a special place in the canon of queer literature.

Despite the early privileges of a Classical education in upstate New York, after his father’s bankruptcy and death, adolescent Melville became a bank clerk, a shop assistant and a teacher. But it was an appetite for adventure that led him in the early 1840s to find work on a merchant ship between New York City and Liverpool – and then on whaling missions into the Atlantic to The Bahamas and around Cape Horn into the South Pacific to the Galapagos Islands. In July 1842 he and a friend, Richard Tobias Greene, broke their contract by jumping ship at the Marquesas Islands. A month later, finding passage on an Australian whaling ship bound for Tahiti, upon arrival Melville was jailed – albeit briefly – for his apparent part in a mutiny. Eventually winding up in Hawaii, he a became a recruit to the United States Navy, again serving for a year in the South Pacific – or, more romantically, the “South Seas”. Upon returning home, Melville began writing his first novel Typee: A Peep at Polynesian Life, published with great success in 1846, and married – albeit “unexpectedly” according to his wife Elizabeth – in 1847.

Critics often credit Melville’s modernity – his curiosity for the ‘unknown’, sympathy with the dispossessed, lack of religious conviction and keenness to see American culture with an ‘outsiders’ eye – to his experiences at sea. Over the last few decades, readers and critics have in particular highlighted the intensity of the male relationships depicted in his novels – and particularly in Moby Dick. Melville’s work suggests that, in the all-male environment of a ship upon the ‘savage’ high-seas, there may have been a greater variety of social and sexual roles available to men than on ‘civilized’ land.

With his sensitive and unprecedented depiction of a ‘marriage’ between two men – the American sailor-narrator Ishmael and the Polynesian whaler Queequeg, both crewmen and ‘outsiders’ far from home – Melville was a literary radical. Initially forced to share a bed with a drunken Queequeg, Ishmael wakes with pleasure the following morning to find the whaler’s arm slung warmly around him in a “loving and affectionate manner”, just as if Ishmael had been his “wife”. Living and working together, the pair soon develop a passion for one another. Ishmael tells us that Queequeg “pressed his forehead against mine, clasped me round the waist, and said henceforth we were married”. The idealized, uncomplicated and unselfconscious love of a foreign or working-class man would henceforth pervade queer colonial English literature for at least a century. The queer subtext of Melville’s unfinished high-seas novella Billy Budd famously inspired composer Benjamin Britten and novelist E. M. Forster – himself the author of cross-cultural love stories between men – to adapted it as an opera that premiered in 1951.

Inspired by Melville’s adventures and by the romantic example of Ishmael and Queequeg, American author Charles Warren Stoddard (1843-1909) developed a consuming passion for the South Seas and its native island cultures. Leaving San Francisco in his early 20s, a place he adored for its brash mid-century newness, Stoddard set out for Polynesia. Immediately enamored of the people and the cultures he encountered Stoddard would return for extended visits a further four times over the coming decades. The result was several successful travel books, including The Island of Tranquil Delights, that contributed to Stoddard becoming one of the most prolific American travel writers of his day. South Sea Islanders were, for Stoddard, free of Christian dogma and prejudice and joyfully open to love between men. He even began to write poetry – sending a collection of his efforts to Melville himself in 1866 – and, later, the explicitly queer vaguely-autobiographical novel For the Pleasure of his Company, published in 1903. Sexually confident, he enjoyed romantic relationships with men all over the world – and at the opera in Venice in the winter of 1874 began a relationship with the American artist Francis Davis Millet (1848-1912). In Moby Dick Stoddard found not only a reason to travel the world but a joyful way to love other men.

Andy Stewart MacKay is an author and cultural historian.

The post A shanty-song to otherness: Herman Melville and Charles Stoddard appeared first on Peter Harrington Blog.

A shanty-song to otherness: Herman Melville and Charles Stoddard

Peter Harrington Bookseller Blog -

By Andy Stewart MacKay

“I have written a blasphemous book” said American novelist Herman Melville (1819-91) of his best-known work, Moby Dick, first published in 1851. Narrated by Ishmael, the biblically-resonant mariner afloat a “wilderness of waters”, ostensibly it’s the story of Captain Ahab’s obsessive hunt for a giant whale – the eponymous Moby Dick. Set on the high-seas of the South Pacific, it’s a novel that’s rich in metaphor and – as in Joseph Conrad’s 1899 novella Heart of Darkness – becomes for the main characters a psychological journey into the unknown. The elusive Moby Dick is, according to author Peter Hoare, “an icon of otherness”. Indeed, the novel itself reads like an old shanty-song to “otherness” and one that takes a special place in the canon of queer literature.

Despite the early privileges of a Classical education in upstate New York, after his father’s bankruptcy and death, adolescent Melville became a bank clerk, a shop assistant and a teacher. But it was an appetite for adventure that led him in the early 1840s to find work on a merchant ship between New York City and Liverpool – and then on whaling missions into the Atlantic to The Bahamas and around Cape Horn into the South Pacific to the Galapagos Islands. In July 1842 he and a friend, Richard Tobias Greene, broke their contract by jumping ship at the Marquesas Islands. A month later, finding passage on an Australian whaling ship bound for Tahiti, upon arrival Melville was jailed – albeit briefly – for his apparent part in a mutiny. Eventually winding up in Hawaii, he a became a recruit to the United States Navy, again serving for a year in the South Pacific – or, more romantically, the “South Seas”. Upon returning home, Melville began writing his first novel Typee: A Peep at Polynesian Life, published with great success in 1846, and married – albeit “unexpectedly” according to his wife Elizabeth – in 1847.

Critics often credit Melville’s modernity – his curiosity for the ‘unknown’, sympathy with the dispossessed, lack of religious conviction and keenness to see American culture with an ‘outsiders’ eye – to his experiences at sea. Over the last few decades, readers and critics have in particular highlighted the intensity of the male relationships depicted in his novels – and particularly in Moby Dick. Melville’s work suggests that, in the all-male environment of a ship upon the ‘savage’ high-seas, there may have been a greater variety of social and sexual roles available to men than on ‘civilized’ land.

With his sensitive and unprecedented depiction of a ‘marriage’ between two men – the American sailor-narrator Ishmael and the Polynesian whaler Queequeg, both crewmen and ‘outsiders’ far from home – Melville was a literary radical. Initially forced to share a bed with a drunken Queequeg, Ishmael wakes with pleasure the following morning to find the whaler’s arm slung warmly around him in a “loving and affectionate manner”, just as if Ishmael had been his “wife”. Living and working together, the pair soon develop a passion for one another. Ishmael tells us that Queequeg “pressed his forehead against mine, clasped me round the waist, and said henceforth we were married”. The idealized, uncomplicated and unselfconscious love of a foreign or working-class man would henceforth pervade queer colonial English literature for at least a century. The queer subtext of Melville’s unfinished high-seas novella Billy Budd famously inspired composer Benjamin Britten and novelist E. M. Forster – himself the author of cross-cultural love stories between men – to adapted it as an opera that premiered in 1951.

Inspired by Melville’s adventures and by the romantic example of Ishmael and Queequeg, American author Charles Warren Stoddard (1843-1909) developed a consuming passion for the South Seas and its native island cultures. Leaving San Francisco in his early 20s, a place he adored for its brash mid-century newness, Stoddard set out for Polynesia. Immediately enamored of the people and the cultures he encountered Stoddard would return for extended visits a further four times over the coming decades. The result was several successful travel books, including The Island of Tranquil Delights, that contributed to Stoddard becoming one of the most prolific American travel writers of his day. South Sea Islanders were, for Stoddard, free of Christian dogma and prejudice and joyfully open to love between men. He even began to write poetry – sending a collection of his efforts to Melville himself in 1866 – and, later, the explicitly queer vaguely-autobiographical novel For the Pleasure of his Company, published in 1903. Sexually confident, he enjoyed romantic relationships with men all over the world – and at the opera in Venice in the winter of 1874 began a relationship with the American artist Francis Davis Millet (1848-1912). In Moby Dick Stoddard found not only a reason to travel the world but a joyful way to love other men.

Andy Stewart MacKay is an author and cultural historian.

The post A shanty-song to otherness: Herman Melville and Charles Stoddard appeared first on Peter Harrington Blog.

Rare Books LAX5th – 6th October 2019

Peter Harrington Bookseller Blog -

Location: Proud Bird, 11022 Aviation Boulevard, Los Angeles, CA

Website: http://rarebooksla.com/

Saturday, October 5, 10 am – 6 pm
Sunday, October 6, 11 am – 4 pm

Featuring 75 of the finest specialists in antiquarian books, fine prints, photography, and ephemera from throughout the United States, Europe, and Asia.

/*########### 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 Rare Books LAX<br>5th – 6th October 2019 appeared first on Peter Harrington Blog.

China in Print22nd-24th November 2019

Peter Harrington Bookseller Blog -

Location:Hong Kong Maritime Museum

Website: www.chinainprint.com/

Friday          22 Nov, 4-8 pm
Saturday     23 Nov, 12-7 pm
Sunday        24 Nov, 12-4 pm

China in Print is Asia’s leading international fair and exhibition for rare books, manuscripts, maps, photographs, and ephemera with a particular focus on Asian printed material. The three-day fair is set in the central waterfront location of the Hong Kong Maritime Museum and features some of the leading specialist dealers in the world, from Australia, Austria, Canada, Denmark, France, Germany, Hong Kong, Japan, Russia, Spain, Sweden, Switzerland, United Kingdom and the USA.

/*########### 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 China in Print<br>22nd-24th November 2019 appeared first on Peter Harrington Blog.

Boston International Antiquarian Book Fair15th-19th November 2019

Peter Harrington Bookseller Blog -

Location: Hynes Convention Center, Boston, MA

Website: www.bostonbookfair.com

Friday November 15 – $25
4:00-8:00pm

Saturday November 16 – FREE ADMISSION
12:00-7:00pm

Sunday November 17 – FREE ADMISSION
12:00-5:00pm

The Boston Book Fair is the annual fall gathering for book lovers and collectors, featuring the top selection of items available on the international literary market. Mark your calendars for the 43rd annual gathering of U.S. and international dealers, sanctioned by the Antiquarian Booksellers’ Association of America and the International League of Antiquarian Booksellers.

/*########### 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 Boston International Antiquarian Book Fair<br>15th-19th November 2019 appeared first on Peter Harrington Blog.

Boston International Antiquarian Book Fair15th-19th November 2019

Peter Harrington Bookseller Blog -

Location: Hynes Convention Center, Boston, MA

Website: www.bostonbookfair.com

Friday November 15 – $25
4:00-8:00pm

Saturday November 16 – FREE ADMISSION
12:00-7:00pm

Sunday November 17 – FREE ADMISSION
12:00-5:00pm

The Boston Book Fair is the annual fall gathering for book lovers and collectors, featuring the top selection of items available on the international literary market. Mark your calendars for the 43rd annual gathering of U.S. and international dealers, sanctioned by the Antiquarian Booksellers’ Association of America and the International League of Antiquarian Booksellers.

/*########### 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 Boston International Antiquarian Book Fair<br>15th-19th November 2019 appeared first on Peter Harrington Blog.

The ABA Chelsea Rare Book Fair1st – 2nd November 2019

Peter Harrington Bookseller Blog -

Website: www.chelseabookfair.com

Friday 1st November: 2pm – 7pm
Saturday 2nd November: 11am – 5pm

Held each autumn in the beautiful and historic Chelsea Old Town Hall, this 29th edition of the Fair brings together more than 80 exhibitors specialising in rare books, first editions, maps, prints, manuscripts and ephemera from all over the world.

There’s something for every interest – poetry, children’s classics, modern fiction, gardening, cookery, sport, military, crime, art, architecture, travel. Prices start at just a few pounds and dealers are happy to guide you, making this a friendly and inspiring venue for all collectors – whether established or beginner – or those visitors simply looking for an extra special Christmas gift.

In addition to our regular exhibitors we have a line-up of unique events including guided tours designed to introduce visitors to the world of rare books, book signings and talks.

The ABA Chelsea Rare Book Fair has something to offer every type of book lover.

/*########### 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 ABA Chelsea Rare Book Fair<br>1st – 2nd November 2019 appeared first on Peter Harrington Blog.

The ABA Chelsea Rare Book Fair1st – 2nd November 2019

Peter Harrington Bookseller Blog -

Website: www.chelseabookfair.com

Friday 1st November: 2pm – 7pm
Saturday 2nd November: 11am – 5pm

Held each autumn in the beautiful and historic Chelsea Old Town Hall, this 29th edition of the Fair brings together more than 80 exhibitors specialising in rare books, first editions, maps, prints, manuscripts and ephemera from all over the world.

There’s something for every interest – poetry, children’s classics, modern fiction, gardening, cookery, sport, military, crime, art, architecture, travel. Prices start at just a few pounds and dealers are happy to guide you, making this a friendly and inspiring venue for all collectors – whether established or beginner – or those visitors simply looking for an extra special Christmas gift.

In addition to our regular exhibitors we have a line-up of unique events including guided tours designed to introduce visitors to the world of rare books, book signings and talks.

The ABA Chelsea Rare Book Fair has something to offer every type of book lover.

/*########### 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 ABA Chelsea Rare Book Fair<br>1st – 2nd November 2019 appeared first on Peter Harrington Blog.

Seattle Antiquarian Book Fair12th-14th October

Peter Harrington Bookseller Blog -

Location:Seattle Center Exhibition Hall

Website: www.seattlebookfair.com/

Saturday, October 12th, 10am-6pm
Sunday, October 13th, 11am-4pm

Dealers from across North America, Europe and beyond offering for sale thousands of collectable books, prints, maps, manuscripts, autographs, photographs, posters, postcards, broadsides, fine bindings and ephemera.

Come tour the aisles of this most literate city’s beloved event. Meet with specialists from all over the world. Browse this veritable museum of cultural and historical artifacts. There is always something interesting and unusual to take home for all price ranges.

Tickets are just $5.00 at the door (CASH ONLY), good for both Saturday and Sunday entries.

/*########### 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 Seattle Antiquarian Book Fair<br>12th-14th October appeared first on Peter Harrington Blog.

Seattle Antiquarian Book Fair12th-14th October

Peter Harrington Bookseller Blog -

Location:Seattle Center Exhibition Hall

Website: www.seattlebookfair.com/

Saturday, October 12th, 10am-6pm
Sunday, October 13th, 11am-4pm

Dealers from across North America, Europe and beyond offering for sale thousands of collectable books, prints, maps, manuscripts, autographs, photographs, posters, postcards, broadsides, fine bindings and ephemera.

Come tour the aisles of this most literate city’s beloved event. Meet with specialists from all over the world. Browse this veritable museum of cultural and historical artifacts. There is always something interesting and unusual to take home for all price ranges.

Tickets are just $5.00 at the door (CASH ONLY), good for both Saturday and Sunday entries.

/*########### 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 Seattle Antiquarian Book Fair<br>12th-14th October appeared first on Peter Harrington Blog.

Frieze Masters3rd – 6th October 2019

Peter Harrington Bookseller Blog -

Location: Regent’s Park, London

Website: frieze.com/fairs/frieze-masters

Frieze Masters features more than 130 leading modern and historical galleries from around the world, showcasing art from the ancient era and Old Masters to the late 20th century.

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 Frieze Masters<br>3rd – 6th October 2019 appeared first on Peter Harrington Blog.

Frieze Masters3rd – 6th October 2019

Peter Harrington Bookseller Blog -

Location: Regent’s Park, London

Website: frieze.com/fairs/frieze-masters

Frieze Masters features more than 130 leading modern and historical galleries from around the world, showcasing art from the ancient era and Old Masters to the late 20th century.

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 Frieze Masters<br>3rd – 6th October 2019 appeared first on Peter Harrington Blog.