Antiquarian Book Blogosphere

Infernal Method: William Blake Facsimiles from The Trianon Press

Peter Harrington Bookseller Blog -

If the doors of perception were cleansed everything would appear to man as it is: Infinite. This I shall do by printing in the infernal method by corrosives, which in Hell are salutary and medicinal, melting apparent surfaces away, and displaying the infinite which was hid.
– William Blake, The Marriage of Heaven and Hell

Engraver by profession and prophet by vocation, William Blake was opposed to print publishing, believing that the mechanisation of the industry was reducing art to a mass commodity. Reviving the illuminated manuscript, Blake produced his own works through a painstaking method of etching onto copper plates with corrosive acid. These were never intended for general sale and were necessarily limited to extremely small numbers by reason of his labour intensive methods, and thus few of the original illuminated books made in the late 18th and early 19th century have survived. Those that have are largely held by libraries and thus not easily accessible.

In one of the most remarkable literary projects of the 20th century, the William Blake Trust established the Trianon Press with the intention of creating faithful reproductions Blake’s works, in order that the consumer might experience them as their maker had originally intended. These exceptional facsimiles were issued throughout the 1950s and 60s  by the Trianon Press. Sir Geoffrey Keynes, one of the trustees, had seen at an exhibition in Boston some extraordinary facsimiles of Cezanne’s watercolours, and the idea to reproduce Blake’s works as closely as possible in quality and form to the originals was born between himself and Arnold Fawcus, the Press’ founder. Hand-stencilled and hand-coloured, the books were produced at great expense and with great attention to detail, and printed on Arches pure rag paper, made especially to match that used by Blake.

These are just a few highlights from our collection of Trianon Press facsimiles. Many of the items in our stock were Fawcus’ own personal. copies

The Economy of Nature: Conservationist writers

Peter Harrington Bookseller Blog -

Nature writing, it seems, is more popular than ever. Books about getting back to the natural world, from which technology and modern urban living have estranged us, have dominated the non-fiction bestseller charts for the last couple of years, elevating writers such as Robert Macfarlane and Cheryl Strayed to near-celebrity status. Criticisms of the authenticity and motivation behind writing about nature has long been a part of its reception: John Clare accused Keats of an urban sentimentality towards the countryside, which caused him to portray “nature as she … appeared in his fancys & not as he would have described her if he had witnessed the things he describes”. The recent profusion and success of ‘new nature writing’ has similarly caused some to question its effectiveness in inspiring positive social and political change in attitudes towards the environment, fearing instead that it has the potential to be merely a form of “bourgeois escapism”.

Whatever their reception, contemporary nature writers inherit a formidable literary  tradition which includes Gilbert White, Ralph Waldo Emerson, Henry David Thoreau and the Romantic poets, whose audacious project was to write not of man’s relationship to man, but man’s relationship to the ground on which he stood. Not all nature writing is conservationist writing, of course. However, a more thoughtful relationship with the natural world, such as that which might be inspired by literature, does tend to lead to a more thoughtful attitude towards how human activity may negatively impact the non-human world. The writers in this list are those whose conservationist sentiments are not only evident in the pages of their books but often went beyond them, and who have helped to shape the face of modern environmentalism.

 

Beatrix Potter, Deluxe Editions (London: Frederick Warne & Co., 1902)

Few writers can be credited with having more directly shaped a landscape than Beatrix Potter. Not only do her “little books” continue to inspire generations of children to curiosity about nature through her anthropomorphic animal characters, but Potter dedicated the fortune she made from their success to conserving the little clutch of Cumbrian hills and valleys she came to call home.

Potter was a woman of many interests: natural history, mycology, botany, archaeology, fossils and farming all fascinated her. Since her childhood holidays in the Lake District and Scotland she recorded what found in watercolours and sketches. Her studies of mushrooms eventually numbered over 250, and in 1897 she presented a paper entitled ‘On the Germination of the Spores of Agaricineae‘. (There is a common misconception that this paper was rejected by the society. In fact, it was read on her behalf in April of that year, Potter being prohibited from attending the meeting in person because she was a woman).

Beatrix Potter by Charles G.Y. King (1854-1937)
Hill Top Farm, Near Sawrey, Cumbria by Marion Dutcher

Hirneola Auricula-Judae by Beatrix Potter, 1898. Courtesy of the Armitt Trust, The Armitt Museum and Library, Ambleside.

Canon Hardwicke Rawnsley, the first secretary and founding member of the National Trust, was Potter’s long-time friend and mentor. She shared his views on the conservation of landscapes and the protection of traditional Lakeland crafts and farming methods. She and her husband, William Heelis, became partners with the Trust in buying up farmland, forest and fell to safeguard them from developers. Potter was a shrewd business woman, often using her contacts and influence to acquire land before its sale was made public, which earned her a certain amount of criticism. Her legacy, however, has been instrumental in the formation of the modern-day Lake District National Park.  The 4,000 acres of land in her possession on her death left to the National Trust, along with several farms, cottages and all her sheep and cattle.

 

Gene Stratton-Porter, photographed in the boots and breeches that so scandalised her neighbours

Gene Stratton Porter, Moths of the Limberlost (Garden City, New York Doubleday, Page & Company, 1916)

Another writer of fiction firmly linked to the landscape she helped to protect, Stratton-Porter is best known for her novel A Girl of the Limberlost. Like Potter, Stratton-Porter was also a keen naturalist, specialising in the birds and moths of Limberlost Swamp which she called home for several years. She also became an early wildlife photographer, to better document the ecosystems of the swamp.

The popularity of Stratton-Porter’s novels brought financial success and notoriety and, like Potter, she used her fortune and position to emphasize her conservationist views, contributing articles and photography to wildlife magazines and publishing numerous books on natural history. She was destined, however, to witness the gradual ecological destruction of her beloved swamp by encroaching industry and agriculture, and the eventual draining of the swampland in 1912. Saddened by the destruction of the swamp’s natural habitats, Stratton-Porter and her family moved away. However, she journeyed the surrounding Indiana swamps extensively, collecting samples of wildflowers to preserve before they were destroyed by development, and it is her work that has ensured the endurance of many of these wildflower types. She also lent her support to the group which opposed the draining of the Mississippi Bottom lands for use a farm land, writing to President Coolidge to express the futility of the project from a scientific point of view.

Images from Moths of the Limberlost

Stratton-Porter did not live to see the restoration of the Limberlost Swamp which allowed water back onto the land and replanted many native trees and shrubs in 1997.

 

Rachel Carson, official photo as FWS employee. c. 1940.

Rachel Carson, Silent Spring, (Boston: Houghton Mifflin Company, 1962)

Rachel Carson is perhaps one of the most influential figures in modern-day environmentalism. Silent Spring, her treatise of the harmful results of the use of synthetic pesticides, spurred a revolution in American policy on their use and led to a nationwide ban of DDTs and ultimately to the creation of the U.S. Environmental Protection Agency.

Carson first became aware on the negative impact humans could have on plant and animal life through her work as a marine biologist. Her books on the sea, The Sea Around Us (1951) and The Edge of the Sea (1955) we internationally successful, raising awareness about the environmental challenges which threated marine habitats. By the time she came to write Silent Spring, most of the facts about the impact of chemical pesticides we well-known amongst scientific communities, but Carson’s project was to bring these facts to the attention of the general public. The book didn’t only set out the case against the use of certain chemicals, however, but questioned the fundamental human assumption of mastery over nature, sparking a wave of grassroots environmentalism.

Rachel Carson conducts Marine Biology Research with Bob Hines — in the Atlantic (1952). By U.S. Fish and Wildlife Service

This copy bears a particularly interesting association, being inscribed to Dr. A D Pickett, a pioneer of alternatives to chemical pesticides who is mentioned in the acknowledgements of the book.

Gary Snyder.Photo by Festival of Faiths.

Gary Snyder, Regarding Wave. 1970

Snyder’s career has been long and varied; he was connected with the Beat poets, the San Francisco Renaissance, and was influenced by his practice of Zen Buddhism and study of Native American tribes. Growing up in the Pacific Northwest, Snyder was horrified by the mass deforestation he witnessed. Believing that language and culture shape the way humans relate to the natural world, he has written extensively on the environment and has been called the ‘poet laureate of Deep Ecology’. Deep Ecology differentiates itself from what it identifies as ‘shallow ecology’ – viewing nature in the context of its utility to human life – by investing the natural world with intrinsic value. In his poetry, Snyder has explored the natural world extensively, experimenting with new ways of employing language in order to place nature, not man, at the centre of his work. The critic Richard Wallace wrote that Snyder’s poems gave voice “to the ferocious energy of nonhuman beings”. Snyder’s 1990 collection of essays The Practice of the Wild is considered one of the most influential environmental works of the last 50 years.

Of himself, Snyder wrote:

As a poet I hold the most archaic values on earth. They go back to the late Paleolithic: the fertility of the soil, the magic of animals, the power-vision in solitude, the terrifying initiation and rebirth; the love and ecstasy of the dance, the common work of the tribe. I try to hold both history and wilderness in mind, that my poems may approach the true measure of things and stand against the unbalance and ignorance of our times.

Regarding Wave, Snyder’s 1970 poetry collection, was heralded as a new achievement in his project to explore the interconnectedness of all things, both human and non-human. It brings together religion, ecological thought and Snyder’s personal relationships, putting the “precarious balance among forces and species” at the thematic centre of the collection.

If you would like to make an enquiry about selling a book, please fill out the form which can be found here. We regret that we are unable to offer valuations.

The Antiquarian Book, Print, Photo and Paper Fair4 – 5 October 2017

Peter Harrington Bookseller Blog -

Date: 4 – 5 October 2017

Location: Pasadena Center, Pasadena, California

Website: http://www.bustamante-shows.com/book/index-book.asp

Many quality exhibitors will participate in The Pasadena Antiquarian Book, Print, Photo and Paper Fair, for two days only at the Pasadena Convention Center’s Exhibit Hall B.

Exhibitors will display and offer for sale a wide variety of Antiquarian rare and modern first edition books, prints, posters, vintage photographs, autographs, fine graphics, maps, manuscripts and many unique pieces of ephemera. The seasoned enthusiast, beginning collector or someone just browsing should not miss this extraordinary opportunity to experience so many fine collections all in one location.

The Pasadena Antiquarian Book, Print, Photo & Paper Fair, Saturday 10 am to 6 pm and Sunday 11 am to 4 pm General Admission $8. Senior Citizens (62+ years) $5.00. Children under 12 free. Free Return Privileges. The Pasadena Convention Center, 300 East Green Street, Pasadena, CA. Ample parking is available. The Pasadena Convention Center’s telephone number for general Information is (626) 793-2122…Read more.

/*########### 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: 'http://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='http://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); })

York National Premier Fair15 – 16 September 2017

Peter Harrington Bookseller Blog -

Date: 15 – 16 September 2017

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

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

Friday: Noon – 7:00pm, Saturday: 10:00am – 5:00pm

 

/*########### 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: 'http://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='http://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); })

Brooklyn Antiquarian Book Fair8 – 10 September 2017

Peter Harrington Bookseller Blog -

Date: 22 – 23 Apr 2017

Location: Brooklyn Expo Center, 79 Franklin St, Greenpoint, Brooklyn, NY.

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

Friday September 8th 5-9pm
Saturday September 9th 11am – 7pm
Sunday September 10th 11am-5pm One of the country’s largest regional antiquarian book fairs comes to Brooklyn each fall. The fourth edition of BABF will bring 100 quality antiquarian book and ephemera dealers along with a new “Works on Paper” gallery featuring top dealers of prints, drawings, etchings, engravings, lithographs, and photography from all over the country, Canada and Europe. The new Brooklyn Expo Center is easily accessible from all parts of Brooklyn, Manhattan and beyond. /*########### 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: 'http://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='http://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); })

Melbourne Rare Book Fair7 – 9 July 2017

Peter Harrington Bookseller Blog -

Date: 7 – 9 July 2017

Location: Wilson Hall, The University of Melbourne

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

Leading Australian and international antiquarian booksellers will bring a rich and diverse array of books together that cater for all who genuinely love print on paper and who share a passion for books. Subjects including early printed books, maps, historical accounts of travel and exploration, prints, literature, art, militaria, children’s books, and ephemera will be offered for sale at prices to suit all levels of collecting.

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

/*########### 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: 'http://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='http://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); })

Bristol Premier Fair30 June – 1 July 2017

Peter Harrington Bookseller Blog -

Date: 30 June – 1 July 2017

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

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

 

/*########### 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: 'http://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='http://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); })

Bloomsbury Summer Book Fair4 June 2017

Peter Harrington Bookseller Blog -

Date: 4 June 2017

Location: Royal National Hotel, Bedford Way, London, WC1H 0DG

Website: http://www.etcfairs.com

he Summer Fair is among the key fairs for book collectors from the UK and beyond as part of International Fairs Week.  The Summer fairs usually ‘kick-off’ with the Bloomsbury Book Fair, but this year we start with our Bloomsbury Ephemera, Book & Postcard Fair (an event which has seen enormous growth over the past 3 years and is well worth a visit) this is followed a week later by the Bloomsbury Book Fair, our annual summer bonanza featuring dealers from all over the UK and further afield. Both our events are scheduled to form part of the London International Antiquarian Book Fair Week; as usual the focus is on rare, secondhand & antiquarian books and ephemera and postcards from all periods, but with specialist dealers from all parts of the UK, Europe, North America and further afield also in attendance providing an even greater selection of books, ephemera, manuscripts, maps, prints and photographs to browse & buy…Read more.

London International Antiquarian Book Fair 20171 – 3 June 2017

Peter Harrington Bookseller Blog -

Date: 1 – 3 June 2017

Location: Olympia Exhibition Centre, Hammersmith Road, London W14 8UX

Website: http://www.olympiabookfair.com/

Now celebrating its 60th year, this major three-day event is one of the largest and most prestigious antiquarian book fairs in the world, showcasing rare, unique and unusual items from 180 leading UK and international dealers. The Fair is the jewel in the crown of Rare Books London, a new week-long festival celebrating old and rare books, with special events and behind-the-scenes activities for bibliophiles. To celebrate our anniversary and the launch of Rare Books London, the Fair will be running a new “Affordable Collectables” initiative, with books under certain price points highlighted and a special guided tour to introduce them to visitors…Read more.

/*########### 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: 'http://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='http://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 London Original Print Fair4 – 7 May 2017

Peter Harrington Bookseller Blog -

Date: 4 – 7 May 2017

Location: Royal Academy of Arts, Burlington House, Piccadilly, London, W1J 0BD.

Website: http://www.londonprintfair.com/
London’s longest-running art fair. Held at the Royal Academy of Arts, the London Original Print Fair offers an opportunity to view works from all periods of printmaking, from the earliest woodcuts of Dürer, to the latest editions by contemporary masters. The intimate, boutique Fair provides a friendly atmosphere for both budding collectors and seasoned print enthusiasts to engage with dealers and artists.

/*########### 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: 'http://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='http://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); })

Abu Dhabi International Book Fair 201726 April – 2 May 2017

Peter Harrington Bookseller Blog -

Date: April 26, 2017 – May 02, 2017

Location: KITAB National Library Building 13th Muroor Street Abu Dhabi, UAE

Website: http://adbookfair.com/

The international and the most ambitious and fast-growing book fair, with more than 500,000 titles on display each year returns with world’s leading publishing houses, book sellers and readers from across the world and to a vibrant commercial marketplace…Read more.

/*########### 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: 'http://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='http://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); })

A Medley of Happy Things

Peter Harrington Bookseller Blog -

 

In difficult times, its important to hold on to the small things that bring joy. What better form of bibliophilic self-care could there be than taking a moment to enjoy the utterly charming “When Shepherds Pipe”. A Medley of Prose and Verse of Happy Things, compiled by Dorothy Hutton. Hutton was a talented illustrator and calligrapher who studied under F. Ernest Jackson at the Central School of Arts and Crafts in the 1920s. She would go on to exhibit at the Royal Academy and design a series of attractive posters for London Transport, featuring the wild flowers of the city and surrounding countryside.

This manuscript, produced on handmade paper, contains poems and extracts from Keats, Shakespeare, Blake, Chaucer and Coleridge, amongst others, and is preceded by a five-page calligraphic guide. Delightful vignette illustrations of wildlife in watercolour accompany the text. The lack of any presentation inscription suggests that this manuscript was made for Hutton’s own person use, for practice or pleasure.

HUTTON, Dorothy. “When Shepherds Pipe”. A Medley of Prose and Verse of Happy Things. With introductory passages on Fine Lettering & Handwriting. 1936.

Hutton’s calligraphy guide with annotations on correct proportions of capital letters and pen types

Bunnies and an extremely chilled interpretation of Blake’s Tyger

Mole and Rat adorn an extract from Kenneth Grahame’s The Wind in the Willows

Thanks to Sammy Jay for cataloging this item.

 

If you would like to make an enquiry about selling a book please fill out the form which can be found here. Please note that we are not able to offer valuations.

 

 

The post A Medley of Happy Things appeared first on Peter Harrington.

“Ye are many”: The Literature of Protest

Peter Harrington Bookseller Blog -

Eugène Delacroix, Liberty Leading the People (1830).

During a speech in 1965, Martin Luther King said that “Our lives begin to end the day we become silent about things that matter.” The recent celebration of Martin Luther King Day, coupled with the weekend’s demonstrations – which saw millions of people worldwide undertake peaceful marches in the wake of the US Presidential inauguration – have got us thinking about the nature of protest and dissent. Literature has, of course, historically played a significant part in influencing social and political change. This list is dedicated to the literature of protest and the writers who did not hold their silence in the face of perceived injustice, inequality and abuses of power.

THOMPSON, William [and Anna Wheeler]. Appeal of One Half the Human Race, Women, Against the Pretensions of the Other Half, Men. London: Longman, Hurst, Rees, Orme, Brown, and Green, and Wheatley and Adlard, 1825.
Portrait of Anna Wheeler, Unknown Artist.

William Thompson and Anna Wheeler, Appeal of One Half the Human Race, Women, Against the Pretensions of the Other Half, Men, 1825.

Though she was uncredited as a collaborator, Anna Wheeler, British writer and advocate of women’s rights, was referred to by William Thompson as the joint owner of this volume. Thompson was an Irish political activist, Chartist and social reformer. Provoked by James Mill’s dismissal of the need for women’s suffrage in his Article on Government, in which he argued that women’s interests could be adequately represented by their husbands and fathers, Thompson and Wheeler produced their Appeal which laid out their argument for the granting of equal political rights to women. The Oxford Dictionary of National Biography refers to this as “one of the classics of early nineteenth-century feminist literature”.

 

SHELLEY, Percy Bysshe. The Masque of Anarchy. A Poem. London: Edward Moxon, 1832.
A coloured engraving of the Peterloo Massacre published by Richard Carlile, 1819.

Percy Bysshe Shelley, The Masque of Anarchy, 1832.

Sometimes called the greatest political poem in the English language, Shelley’s Masque remained unpublished until 1832, ten years after his death. It was written, however, in 1819 as a direct response to the Peterloo Massacre, during which cavalry charged a protest of 60,000 people who had gathered to demand parliamentary reform. In its exhortation for people to assemble peacefully in protest against unjust authority, Shelley’s poem is one of the first treatises on nonviolent resistance and inspired Henry David Thoreau in his essay Civil Disobedience, and later Gandhi’s doctrine of Satyagraha. The rallying cry “Ye are many, they are few” has been taken up by protests all over the world – often adapted as “we are many, they are few” – and was chanted by 19th century Chartists , by striking women garment workers in 1909 New York, at demonstrations in Tiananmen Square in 1989 and at the Egyptian revolution in Tahrir Square in 2011.

STOWE, Harriet Beecher. Uncle Tom’s Cabin; or, Life Among the Lowly.Boston: John P. Jewett & Co., 1852.
Portrait of Stowe by Alanson Fisher, 1853 (National Portrait Gallery).

Harriet Beecher Stowe, Uncle Tom’s Cabin; or, Life Among the Lowly, 1852.

Stowe’s story of the life of a black slave is one of the most influential anti-slavery texts ever published. Originally appearing in serial form in the abolitionist newspaper The National Era, it was soon published in two volumes by Boston publisher John P. Jewett & Co. and was an instant best-seller. It is credited with having brought home the realities of slavery to thousands of Americans, and with fuelling the popular abolitionist movements of the 1850s. Stowe was a teacher and author whose Christian background had led her to abhor the exploitation of human lives, and she used her platform of relative privilege to influence the opinions of others. “I hope every woman who can write will not be silent” she wrote in a letter to the editor of National Era in 1850. In Printing and the Mind of Man (1967), the social impact of Uncle Tom’s Cabin if referred to as “greater than that of any book before or since.”

SINCLAIR, Upton. The Jungle. New York: The Jungle Publishing Co., 1906.
Workers in Union Stockyard, Chicago, 1923.

Upton Sinclair, The Jungle, 1906.

Sinclair’s famously misinterpreted novel aimed to expose the terrible working conditions of immigrant workers in America’s food packing industry, but proved much more successful at inciting reform of unsanitary practices than addressing the issue of wage slavery. Sinclair said of the public reaction “I aimed at the public’s heart, and by accident I hit it in the stomach.”

Nevertheless, Sinclair’s depiction of working class poverty and its link to corruption amongst the powerful remains a searing and important indictment of the exploitation of the vulnerable in the name of capitalist gain.

WOOLF, Virginia. A Room of One’s Own. New York: The Fountain Press; London, The Hogarth Press, 1929.
Virginia Woolf photographed by Man Ray, 1935.

Virginia Woolf, A Room of One’s Own, 1929.

Very little needs to be added to the existing body of cultural appreciation for Woolf’s seminal feminist text. Her observations about the patriarchal literary culture and the sometimes insurmountable practical challenges women had to overcome in order to pursue a writing career helped challenge the then widely-held view that women had enjoyed less literary success because they were inherently inferior writers to men. She ended her essay by appealing to her audience “to write all kinds of books, hesitating at no subject however trivial or however vast.” This first edition is signed by Woolf on the half-title.

ELLISON, Ralph. Invisible Man. New York: Random House, 1952.
Ralph Ellison, 1961.

Ralph Ellison, Invisible Man, 1952.

 

Ralph Ellison wrote this novel about a man whose race renders him socially invisible as a reaction to his experience of prejudice and the oppression of black people in America. Its style, experimental and virtuosic, was influenced both by jazz performances Ellison witnessed and by French Existentialist writers such as Albert Camus and Jean-Paul Sartre.

The novel was hailed as a ground-breaking success, admired by writers such as Saul and Bellow Harold Bloom, and spent sixteen weeks on the bestseller list. Despite – or perhaps because of – this success, Ellison never published another novel in his lifetime. Invisible Man remains, however, one of the most important intellectual meditations on black identity and was a primary source of inspiration for Barack Obama’s memoir Dreams from my Father.

[HOFFMAN, ABBIE; as] “George Metesky.” Fuck the System. New York: Privately Printed, 1967.
Abbie Hoffman visiting the University of Oklahoma to protest the Vietnam War, 1969.

[Abbie Hoffman; as] ‘George Metesky’, Fuck the System, 1967.

This pamphlet, written by American political activist and anarchist Abbot ‘Abbie’ Hoffman, functioned as a guidebook to living for free in New York City. From counterfeiting subway tickets to dumpster-diving for free food, Fuck the System is an artefact of 60s subculture which focussed on flying under the radar. The pseudonym George Metesky was taken from the so-called ‘Mad Bomber’ who had terrorised New York throughout the 40s and 50s with bombs planted about the city. Hoffman was the founder of the Youth International party (commonly called the ‘Yippies’), an influential anti-war countercultural group in the 60s who used street theatre and pranks to exploit mass media coverage and spread their message.

 

If you would like to make an enquiry about selling a book please fill out the form which can be found here. Please note that we are not able to offer valuations.

The post “Ye are many”: The Literature of Protest appeared first on Peter Harrington.

“Ye Are Many”: The Literature of Protest

Peter Harrington Bookseller Blog -

Eugène Delacroix, Liberty Leading the People, 1830, Louvre Museum

During a speech in 1965, Martin Luther King said that “Our lives begin to end the day we become silent about things that matter.” The recent celebration of Martin Luther King Day, coupled with the weekend’s demonstrations – which saw millions of people worldwide undertake peaceful marches in the wake of the US Presidential inauguration – have got us thinking about the nature of protest and dissent. Literature has, of course, historically played a significant part in influencing social and political change. This list is dedicated to the literature of protest and the writers who did not hold their silence in the face of perceived injustice, inequality and abuses of power.

 

THOMPSON, William, [& Anna Wheeler]. Appeal of One Half the Human Race, Women, Against the Pretensions of the Other Half, Men. London: Longman, Hurst, Rees, Orme, Brown, and Green, and Wheatley and Adlard, 1825.
Anna Wheeler (née Doyle) by Maxim Gauci, printed by Charles Joseph Hullmandel, after J. Porter lithograph, published 1825? National Portrait Gallery

William Thompson and Anna Wheeler, Appeal of One Half the Human Race, Women, Against the Pretensions of the Other Half, Men, 1825.

Though she was unedited as a collaborator, Anna Wheeler, British writer and advocate of women’s rights, was referred to by William Thompson as the joint owner of this volume. Thompson was an Irish political activist, Chartist and social reformer. Provoked by James Mill’s dismissal of the need for women’s suffrage in his Article on Government, in which he argued that women’s interests could be adequately represented by their husbands and fathers, Thompson and Wheeler produced their Appeal which laid out their argument for the granting of equal political rights to women. The Oxford Dictionary of National Biography refers to this as “one of the classics of early nineteenth-century feminist literature”.

 

SHELLEY, Percy Bysshe. The Masque of Anarchy. A Poem. London: Edward Moxon, 1832.
Engraving of the Peterloo Massacre by Richard Carlile (1790–1843) (Manchester Library Services)

Percy Bysshe Shelley, The Masque of Anarchy, 1832.

Sometimes called the greatest political poem in the English language, Shelley’s Masque remained unpublished until 1832, ten years after his death. It was written, however, in 1819 as a direct response to the Peterloo Massacre, during which cavalry charged a protest of 60,000 people who had gathered to demand parliamentary reform. In its exhortation for people to assemble peacefully in protest against unjust authority, Shelley’s poem is one of the first treatises on nonviolent resistance and inspired Henry David Thoreau in his essay Civil Disobedience, and later Gandhi’s doctrine of Satyagraha. The rallying cry “Ye are many, they are few” has been taken up by protests all over the world – often adapted as “we are many, they are few” – and was chanted by 19th century Chartists , by striking women garment workers in 1909 New York, at demonstrations in Tiananmen Square in 1989 and at the Egyptian revolution in Tahrir Square in 2011.

 

STOWE, Harriet Beecher. “Uncle Tom’s Cabin; or, Life Among the Lowly.” Boston: John P. Jewett & Co., 1852.
Harriet Elizabeth by Alanson Fisher, 1853, National Portrait Gallery.

Harriet Beecher Stowe, Uncle Tom’s Cabin; or, Life Among the Lowly, 1852.

Top of FormStowe’s story of the life of a black slave is one of the most influential anti-slavery texts ever published. Originally appearing in serial form in the abolitionist newspaper The National Era, it was soon published in two volumes by Boston publisher John P. Jewett & Co. and was an instant best-seller. It is credited with having brought home the realities of slavery to thousands of Americans, and with fuelling the popular abolitionist movements of the 1850s. Stowe was a teacher and author whose Christian background had led her to abhor the exploitation of human lives, and she used her platform of relative privilege to influence the opinions of others. “I hope every woman who can write will not be silent” she wrote in a letter to the editor of National Era in 1850. In Printing and the Mind of Man (1967), the social impact of Uncle Tom’s Cabin if referred to as “greater than that of any book before or since.”

 

SINCLAIR, Upton. The Jungle. New York: The Jungle Publishing Co., 1906.
Floorers removing the hides USY Chicago, Suhling & Koehn Co.

Upton Sinclair, The Jungle, 1906.

Sinclair’s famously misinterpreted novel aimed to expose the terrible working conditions of immigrant workers in America’s food packing industry, but proved much more successful at inciting reform of unsanitary practices than addressing the issue of wage slavery. Sinclair said of the public reaction “I aimed at the public’s heart, and by accident I hit it in the stomach.”

Nevertheless, Sinclair’s depiction of working class poverty and its link to corruption amongst the powerful remains a searing and important indictment of the exploitation of the vulnerable in the name of capitalist gain.

 

WOOLF, Virginia. A Room of One’s Own. New York: The Fountain Press; London: The Hogarth Press, 1929.
Portrait of Virginia Woolf, Man Ray, 1934.

Virginia Woolf, A Room of One’s Own, 1929.

Very little needs to be added to the existing body of cultural appreciation for Woolf’s seminal feminist text. Her observations about the patriarchal literary culture and the sometimes insurmountable practical challenges women had to overcome in order to pursue a writing career helped challenge the then widely-held view that women had enjoyed less literary success because they were inherently inferior writers to men. She ended her essay by appealing to her audience “to write all kinds of books, hesitating at no subject however trivial or however vast.” This first edition is signed by Woolf on the half-title.

 

ELLISON, Ralph. Invisible Man. New York: Random House, 1952.
Ralph Ellison, photographed by United States Information Agency staff photographer, 1961.

Ralph Ellison, Invisible Man, 1952

Ralph Ellison wrote this novel about a man whose race renders him socially invisible as a reaction to his experience of prejudice and the oppression of black people in America. Its style, experimental and virtuosic, was influenced both by jazz performances Ellison witnessed and by French Existentialist writers such as Albert Camus and Jean-Paul Sartre.

The novel was hailed as a ground-breaking success, admired by writers such as Saul and Bellow Harold Bloom, and spent sixteen weeks on the bestseller list. Despite – or perhaps because of – this success, Ellison never published another novel in his lifetime. Invisible Man remains, however, one of the most important intellectual meditations on black identity and was a primary source of inspiration for Barack Obama’s memoir Dreams from my Father.

 

[HOFFMAN, ABBIE; as] “George Metesky.” Fuck the System. New York: Privately Printed, 1967.
Abbie Hoffman visiting the University of Oklahoma to protest the Vietnam War by Richard O. Barry from San Diego, California, United States

[Abbie Hoffman; as] ‘George Metesky’, Fuck the System, 1967.

This pamphlet, written by American political activist and anarchist Abbot ‘Abbie’ Hoffman, functioned as a guidebook to living for free in New York City. From counterfeiting subway tickets to dumpster-diving for free food, Fuck the System is an artefact of 60s subculture which focussed on flying under the radar. The pseudonym George Metesky was taken from the so-called ‘Mad Bomber’ who had terrorised New York throughout the 40s and 50s with bombs planted about the city. Hoffman was the founder of the Youth International party (commonly called the ‘Yippies’), an influential anti-war countercultural group in the 60s who used street theatre and pranks to exploit mass media coverage and spread their message.

Scaling the heights: climbing and mountaineering

Peter Harrington Bookseller Blog -

When asked why he became a mountaineer, George Mallory answered that climbing represented, for him “the struggle of life itself upward and forever upward”. This selection of books on climbing takes in a broad sweep of ascents, from the facades of Cambridge colleges to the sandstone cliffs of Bohemia. Whether a statement of civil disobedience or an aspirational allegory for fascism, climbing has frequently stood for more than just the act itself and can tell us much about the political, social and moral leanings of those who pursued the heights.

 

Wall and Roof Climbing by Geoffrey Winthrop Young.

[YOUNG, Geoffrey Winthrop.] Wall and Roof Climbing. Eton College: Spottiswoode and Co., Limited, 1905 Geoffrey Winthrop Young soon after leaving Cambridge 1898

The first person to produce a work on the tradition of buildering at the University of Cambridge, Geoffrey Winthrop Young published The Roof-Climber’s Guide to Trinity in 1899, over three decades before the rather better-known Night Climbers of Cambridge by ‘Whipplesnaith’. So-called because of the necessity of the cover of darkness to its perpetrators, night climbing was (and still is) a cultish activity at Cambridge, an act of defiance against the very stones of the revered institution. Setting aside the extreme danger of free climbing the often sheer planes of architecture, the penalty for being caught was immediate rustication, or expulsion, so the practice was guarded by a code of strict fraternal secrecy. Documentation of buildering, both within and outside of Cambridge, is often scarce, making first editions of pseudonymous works such as those by Whipplesnaith (actually Noël Howard Symington) or Young rare and highly sought-after in first edition.

Young’s The Roof-Climber’s Guide was in part a humorous parody of early alpine guidebooks and partly a serious manual for Cantabrigians who might want to follow in his footsteps. It was to be the first of several published works in his lifetime, including collections of poetry and books on mountaineering. Young went on to become a celebrated Alpinist in his own right, making several new and treacherous ascents before the outbreak of the First World War. During the war, Young, a conscientious objector, joined the Friends Ambulance Unit, which sent over a thousand men to France and Belgium. He was decorated for his services but was wounded by an explosion in 1917 and lost one of his legs. Undaunted, Young continued to climb after the war using a specially-designed prosthetic, with which he successfully scaled the Matterhorn in 1928.

From Wall and Roof Climbing, 1905

Wall and Roof Climbing is Young’s second published work, referred to by him in a tipped in note present in this copy as ‘a literary joke’. It collects together a history of climbing lore, including quotations from figures such as Ovid, Chaucer, Malory and Shakespeare, as a kind of facetious justification of the noble and ancient ‘tradition’ of buildering. It was published anonymously (‘by the author of The Roof-Climber’s Guide to Trinity’) during his time as a master at Eton.

Thomas Mailaender’s Night Climbers exhibition at Roman Road exhibition space in London

With the continued popularity of buildering and parkour, Young’s second book is an early chapter in the oft-undocumented heritage of this unusual pastime. Whether seen as an irresponsible and dangerous hobby undertaken by individuals possessed of extraordinary privilege, or a heroic and subversive act of disobedience (or perhaps both),  interest in the night climbers of Cambridge is still strong. Whipplesnaith and Young’s books have been republished by the Oleander Press, and a 2013 exhibition by French artist Thomas Mailaender displayed photographs of the night climbers in an installation which included a temporary climbing wall.

 

Cesty k Vrcholum by Vilém Heckel

HECKEL, Vilém. Cesty k Vrcholum. Prague: State Sports Publishing Company, 1956.
Portrait of Vilem Heckel, 1955

Among the most celebrated Czech photographers, Vilém Heckel began his career as an industrial photographer and photojournalist. He took to mountain climbing in the 1950s, eventually becoming a professional mountaineer and mountain photographer. His membership in the Union of Czechoslovak Visual Artists enabled him to travel much more extensively than most Czechoslovakian citizens were then able, and he continued to photograph his mountaineering expeditions for the rest of his life. He gradually developed a reputation not only as an accomplished photographer, with a talent for capturing the grandeur of mountainous landscapes and a sensitivity in depicting the human mountaineers who attempted to conquer their peaks, but also as a skilful mountaineer in his own right.

Images from Cesty k Vrcholum. 1956

Heckel completed exhibitions in the High Tatras, the Caucuses, and was amongst the group which formed the first Czech expedition to the Hindu Kush. In 1970, he and a group of climbers were planning an expedition to Alaska which was blocked by the Communist regime. Following the 1968 Prague Spring it was almost impossible for Czechoslovakian citizens to travel to Western countries. Their destination was therefore changed to the Peruvian Cordillera Blanca. Heckel and several colleagues had planned to separate from the rest of the expedition party on 1 June 1970 to take a break from the mountains and document Peruvian culture in the lowlands. On 31 May, the day before their departure, the Great Peruvian Earthquake hit the coast of Peru, causing a substantial part of the north side of Huascarán, under which Heckel and his party were camped, to collapse. The avalanche, estimated to be half a mile wide and a mile long, killed every member of the expedition and decimated the nearby towns of Yungay and Ranrahirca.

Cesty k Vrcholum (Paths to Peaks) was one of Heckel’s early mountaineering works, now quite uncommon to find in first edition. It charts the process of training in the Elbe Sandstone Mountains and the subsequent winter ascent of the High Tatres.

 

Kampf in Schnee und Eis by Leni Riefenstahl

RIEFENSTAHL, Leni. Kampf in Schnee und Eis. Hesse & Becker Verlag, Leipzig, 1933

Pioneering female film maker and Nazi propagandist; Helene ‘Leni’ Riefenstahl is a troubling and contradictory figure. Born in Berlin in 1902, she was a talented artist, dancer, actress and photographer and made her career in the arts. She produced and directed her first film in 1932, in which she also took the starring role. Das Blaue Licht (The Blue Light) was inspired by the popularity of the bergfilm (mountain film) genre popular in Germany at the time. Whether it was the beauty of its star or the Wagnerian portrayal of the mountainous landscape that appealed, the film caught the attention of Adolf Hitler. He invited Riefenstahl to meet with him and later offered her the opportunity to direct a fully funded propaganda film about the fifth Nuremberg Rally in 1933. Riefenstahl had seen Hitler speak the previous year. His oration had a profound effect on her and she described later the ‘almost apocalyptic vision’ she experienced at the time.

Thus began a friendship and working relationship between Riefenstahl and the Reich, which, despite her later assertions that she did not intend any further films to be used as Nazi propaganda, saw her produce several projects funded either by the Nazi party, or by companies set up by them to conceal the source of funding. Triumph des Willens (Triumph of the Will), another Nuremberg rally propaganda movie, and Olympia, her coverage of the 1936 Berlin Olympics, are both considered ground-breaking advances in documentary filmmaking. Riefenstahl was astonishingly innovative in her technical cinematographic approach; she was one of the first directors to utilise tracking and slow-motion shots, and used an inventive combination of trenches, balloons and rafts to capture the unusual and striking footage of the athletes.

Riefenstahl on the cover of Time magazine in 1936.
Riefenstahl in Franck’s 1933 film SOS Eisberg.

It is easy to see the appeal of Riefenstahl’s work to the Nazi regime. Her treatment of the male body in Olympia, glorifying strength and physical perfection, is particularly consistent with Hitler’s adoption of Nietzsche’s concept of the Übermensch. But even before her involvement with the Nazi party, Riefenstahl’s artistic preferences seem to have been notably aligned with Nazi ideology. Riefenstahl was mesmerised by the bergefilme of director Dr Arnold Franck, who popularised the genre with a series of mountaineering films throughout the 1920s and ‘30s. Riefenstahl met Franck and persuaded him to cast her as his star in the landmark feature The Holy Mountain (1926) and the pair worked together on several other mountain films, including Riefenstahl’s own Das Blaue Licht. With their plots about the travails of stoic young Aryan heroes pitting themselves against nature, fate and the towering peaks they sought to conquer, Franck’s films, and the genre in general, became a tacit visual metaphor for Nazi ideals.

Kampf in Schnee und Eis is Riefenstahl’s autobiographical account of the making of her mountain films. The title is doubtless a reference to Hitler’s Mein Kampf, which Riefenstahl studied in detail, as well as Im Kampf mit dem Berge, one of Franck’s early films. Her ‘struggle’, however, was not an exaggeration. Riefenstahl suffered through significantly adverse and often dangerous conditions in her involvement with bergfilm projects, breaking both of her ankles on her first day of shooting with Franck. She proved, however, to be an able and enthusiastic climber and sportswoman, challenging the prejudices of the overwhelmingly male-dominated genre. This copy contains a vintage photocard inscribed by Riefenstahl and depicting her in  one of her mountain roles.

Riefenstahl was detained by American troops in 1945. She was tried four times by post-war authorities but was never convicted of being a Nazi. To the end of her life, she claimed that ignorance, naivety and a lack of political interest had made her unaware of the atrocities being committed under Hitler. Between the end of the war and her death in 2003, she won more than 50 libel cases against claims that she was a Nazi or knew the horrific realities of the Holocaust. The extent of her knowledge and involvement with the Nazis is to this day unclear.

Riefenstahl and a camera crew stand in front of Hitler’s car during the 1934 rally in Nuremberg.

Riefenstahl’s contribution to film as a scriptwriter, cinematographer, director and technical innovator was unusually broad and prolific for a woman of her time. Appreciation of her work is, however, rightfully complicated by her connection to Hitler and the Nazi party, who certainly commissioned and funded her work for propagandist purposes. Though she lived to be 101 years old and introduced some of the most important technical innovations in cinematic history, Riefenstahl was castigated and despised until the end of her life for what was at best a sympathetic relationship with Nazism. The controversy effectively ended her career as a filmmaker and, though she continued to undertake artistic projects throughout her life, Tiefland was her last feature. Her status as the woman who had forged the triumphant imagery of the Nazi party in her propaganda films, and her later denial of all knowledge of the atrocities committed in the name of the Reich, undermined the legitimacy of everything she did after, and haunted her to the end of her life.

 

If you would like to make an enquiry about selling a book please fill out the form which can be found here. Please note that we are not able to offer valuations.

The post Scaling the heights: climbing and mountaineering appeared first on Peter Harrington.

Scaling the heights: climbing and mountaineering

Peter Harrington Bookseller Blog -

When asked why he became a mountaineer, George Mallory answered that climbing represented, for him “the struggle of life itself upward and forever upward”. This selection of books on climbing takes in a broad sweep of ascents, from the facades of Cambridge colleges to the sandstone cliffs of Bohemia. Whether a statement of civil disobedience or an aspirational allegory for fascism, climbing has frequently stood for more than just the act itself and can tell us much about the political, social and moral leanings of those who pursued the heights.

Wall and Roof Climbing by Geoffrey Winthrop Young.

[YOUNG, Geoffrey Winthrop.] Wall and Roof Climbing. Eton College: Spottiswoode and Co., Limited, 1905 Geoffrey Winthrop Young soon after leaving Cambridge 1898

The first person to produce a work on the tradition of buildering at the University of Cambridge, Geoffrey Winthrop Young published The Roof-Climber’s Guide to Trinity in 1899, over three decades before the rather better-known Night Climbers of Cambridge by ‘Whipplesnaith’. So-called because of the necessity of the cover of darkness to its perpetrators, night climbing was (and still is) a cultish activity at Cambridge, an act of defiance against the very stones of the revered institution. Setting aside the extreme danger of free climbing the often sheer planes of architecture, the penalty for being caught was immediate rustication, or expulsion, so the practice was guarded by a code of strict fraternal secrecy. Documentation of buildering, both within and outside of Cambridge, is often scarce, making first editions of pseudonymous works such as those by Whipplesnaith (actually Noël Howard Symington) or Young rare and highly sought-after in first edition.

Young’s The Roof-Climber’s Guide was in part a humorous parody of early alpine guidebooks and partly a serious manual for Cantabrigians who might want to follow in his footsteps. It was to be the first of several published works in his lifetime, including collections of poetry and books on mountaineering. Young went on to become a celebrated Alpinist in his own right, making several new and treacherous ascents before the outbreak of the First World War. During the war, Young, a conscientious objector, joined the Friends Ambulance Unit, which sent over a thousand men to France and Belgium. He was decorated for his services but was wounded by an explosion in 1917 and lost one of his legs. Undaunted, Young continued to climb after the war using a specially-designed prosthetic, with which he successfully scaled the Matterhorn in 1928.

From Wall and Roof Climbing, 1905

Wall and Roof Climbing is Young’s second published work, referred to by him in a tipped in note present in this copy as ‘a literary joke’. It collects together a history of climbing lore, including quotations from figures such as Ovid, Chaucer, Malory and Shakespeare, as a kind of facetious justification of the noble and ancient ‘tradition’ of buildering. It was published anonymously (‘by the author of The Roof-Climber’s Guide to Trinity’) during his time as a master at Eton.

Thomas Mailaender’s Night Climbers exhibition at Roman Road exhibition space in London

With the continued popularity of buildering and parkour, Young’s second book is an early chapter in the oft-undocumented heritage of this unusual pastime. Whether seen as an irresponsible and dangerous hobby undertaken by individuals possessed of extraordinary privilege, or a heroic and subversive act of disobedience (or perhaps both),  interest in the night climbers of Cambridge is still strong. Whipplesnaith and Young’s books have been republished by the Oleander Press, and a 2013 exhibition by French artist Thomas Mailaender displayed photographs of the night climbers in an installation which included a temporary climbing wall.

Cesty k Vrcholum by Vilém Heckel

HECKEL, Vilém. Cesty k Vrcholum. Prague: State Sports Publishing Company, 1956. Portrait of Vilem Heckel, 1955

Among the most celebrated Czech photographers, Vilém Heckel began his career as an industrial photographer and photojournalist. He took to mountain climbing in the 1950s, eventually becoming a professional mountaineer and mountain photographer. His membership in the Union of Czechoslovak Visual Artists enabled him to travel much more extensively than most Czechoslovakian citizens were then able, and he continued to photograph his mountaineering expeditions for the rest of his life. He gradually developed a reputation not only as an accomplished photographer, with a talent for capturing the grandeur of mountainous landscapes and a sensitivity in depicting the human mountaineers who attempted to conquer their peaks, but also as a skilful mountaineer in his own right.

Images from Cesty k Vrcholum. 1956

Heckel completed exhibitions in the High Tatras, the Caucuses, and was amongst the group which formed the first Czech expedition to the Hindu Kush. In 1970, he and a group of climbers were planning an expedition to Alaska which was blocked by the Communist regime. Following the 1968 Prague Spring it was almost impossible for Czechoslovakian citizens to travel to Western countries. Their destination was therefore changed to the Peruvian Cordillera Blanca. Heckel and several colleagues had planned to separate from the rest of the expedition party on 1 June 1970 to take a break from the mountains and document Peruvian culture in the lowlands. On 31 May, the day before their departure, the Great Peruvian Earthquake hit the coast of Peru, causing a substantial part of the north side of Huascarán, under which Heckel and his party were camped, to collapse. The avalanche, estimated to be half a mile wide and a mile long, killed every member of the expedition and decimated the nearby towns of Yungay and Ranrahirca.

Cesty k Vrcholum (Paths to Peaks) was one of Heckel’s early mountaineering works, now quite uncommon to find in first edition. It charts the process of training in the Elbe Sandstone Mountains and the subsequent winter ascent of the High Tatres.

Kampf in Schnee und Eis by Leni Riefenstahl

RIEFENSTAHL, Leni. Kampf in Schnee und Eis. Hesse & Becker Verlag, Leipzig, 1933

Pioneering female film maker and Nazi propagandist; Helene ‘Leni’ Riefenstahl is a troubling and contradictory figure. Born in Berlin in 1902, she was a talented artist, dancer, actress and photographer and made her career in the arts. She produced and directed her first film in 1932, in which she also took the starring role. Das Blaue Licht (The Blue Light) was inspired by the popularity of the bergfilm (mountain film) genre popular in Germany at the time. Whether it was the beauty of its star or the Wagnerian portrayal of the mountainous landscape that appealed, the film caught the attention of Adolf Hitler. He invited Riefenstahl to meet with him and later offered her the opportunity to direct a fully funded propaganda film about the fifth Nuremberg Rally in 1933. Riefenstahl had seen Hitler speak the previous year. His oration had a profound effect on her and she described later the ‘almost apocalyptic vision’ she experienced at the time.

Thus began a friendship and working relationship between Riefenstahl and the Reich, which, despite her later assertions that she did not intend any further films to be used as Nazi propaganda, saw her produce several projects funded either by the Nazi party, or by companies set up by them to conceal the source of funding. Triumph des Willens (Triumph of the Will), another Nuremberg rally propaganda movie, and Olympia, her coverage of the 1936 Berlin Olympics, are both considered ground-breaking advances in documentary filmmaking. Riefenstahl was astonishingly innovative in her technical cinematographic approach; she was one of the first directors to utilise tracking and slow-motion shots, and used an inventive combination of trenches, balloons and rafts to capture the unusual and striking footage of the athletes.

Riefenstahl on the cover of Time magazine in 1936. Riefenstahl in Franck’s 1933 film SOS Eisberg.

It is easy to see the appeal of Riefenstahl’s work to the Nazi regime. Her treatment of the male body in Olympia, glorifying strength and physical perfection, is particularly consistent with Hitler’s adoption of Nietzsche’s concept of the Übermensch. But even before her involvement with the Nazi party, Riefenstahl’s artistic preferences seem to have been notably aligned with Nazi ideology. Riefenstahl was mesmerised by the bergefilme of director Dr Arnold Franck, who popularised the genre with a series of mountaineering films throughout the 1920s and ‘30s. Riefenstahl met Franck and persuaded him to cast her as his star in the landmark feature The Holy Mountain (1926) and the pair worked together on several other mountain films, including Riefenstahl’s own Das Blaue Licht. With their plots about the travails of stoic young Aryan heroes pitting themselves against nature, fate and the towering peaks they sought to conquer, Franck’s films, and the genre in general, became a tacit visual metaphor for Nazi ideals.

Kampf in Schnee und Eis is Riefenstahl’s autobiographical account of the making of her mountain films. The title is doubtless a reference to Hitler’s Mein Kampf, which Riefenstahl studied in detail, as well as Im Kampf mit dem Berge, one of Franck’s early films. Her ‘struggle’, however, was not an exaggeration. Riefenstahl suffered through significantly adverse and often dangerous conditions in her involvement with bergfilm projects, breaking both of her ankles on her first day of shooting with Franck. She proved, however, to be an able and enthusiastic climber and sportswoman, challenging the prejudices of the overwhelmingly male-dominated genre. This copy contains a vintage photocard inscribed by Riefenstahl and depicting her in  one of her mountain roles.

Riefenstahl was detained by American troops in 1945. She was tried four times by post-war authorities but was never convicted of being a Nazi. To the end of her life, she claimed that ignorance, naivety and a lack of political interest had made her unaware of the atrocities being committed under Hitler. Between the end of the war and her death in 2003, she won more than 50 libel cases against claims that she was a Nazi or knew the horrific realities of the Holocaust. The extent of her knowledge and involvement with the Nazis is to this day unclear.

Riefenstahl and a camera crew stand in front of Hitler’s car during the 1934 rally in Nuremberg.

Riefenstahl’s contribution to film as a scriptwriter, cinematographer, director and technical innovator was unusually broad and prolific for a woman of her time. Appreciation of her work is, however, rightfully complicated by her connection to Hitler and the Nazi party, who certainly commissioned and funded her work for propagandist purposes. Though she lived to be 101 years old and introduced some of the most important technical innovations in cinematic history, Riefenstahl was castigated and despised until the end of her life for what was at best a sympathetic relationship with Nazism. The controversy effectively ended her career as a filmmaker and, though she continued to undertake artistic projects throughout her life, Tiefland was her last feature. Her status as the woman who had forged the triumphant imagery of the Nazi party in her propaganda films, and her later denial of all knowledge of the atrocities committed in the name of the Reich, undermined the legitimacy of everything she did after, and haunted her to the end of her life.

Oxford Premier Fair

Peter Harrington Bookseller Blog -

Date: 22 – 23 Apr 2017

Location: Oxford Brookes Wheatley Campus, Wheatley, Oxford OX33 1HX

Website: www.pbfa.org/book-fairs/oxford-premier-fair/5629

The Fair will be open 12noon to 6:00pm on Saturday 23rd April, and 10:00am to 4:00pm on Sunday 24th April 2016.

Browse through books, prints, maps and ephemera being sold by over 100 exhibitors.

Please visit the Oxford Book Fair website for further information: www.oxfordbookfair.org

/*########### PREVIEW CONTAINER ##############*/ #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_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); //alert(phoneVal) }) } if(jQuery(this).find('div.input-text-block >input').hasClass('required')){ var text_emailField=jQuery(this).find('input'); text_emailField.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.selectbox-block >select').hasClass('required')){ var selectField=jQuery(this).find('div.selectbox-block >select'); selectField.on('blur change',function(){ if(selectField.val()==null){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); } }); } if(jQuery(this).find('div.input-name-block >input.pl_name').hasClass('required')){ var text_fullnameField=jQuery(this).find('input.pl_name'); var text_fullnameField2=jQuery(this).find('input.pl_surname'); text_fullnameField.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField2.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); text_fullnameField2.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); } if(jQuery(this).find('div.textarea-block >textarea').hasClass('required')){ var textarea_field=jQuery(this).find('textarea'); textarea_field.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.email-block >input').attr('type')=='email'){ var emailField=jQuery(this).find('input'); emailField.on('blur',function(){ if(jQuery(this).val()!=''){ if(!isValidEmailAddress(jQuery(this).val())){ jQuery(this).parent().find('.hugeit-error-message').text(emailError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }) } if(jQuery(this).find('div.file-block >input[type="file"]').attr('type')=='file'){ var fileInput=jQuery(this).find('input[type="file"]'); var maxSize = fileInput.parent().find('input[name="MAX_FILE_SIZE"]').val(); fileInput.on('blur',function(){ var typeStr = jQuery(this).parent().find('input[name="fileTypeArr"]').val().trim(); typeStr = typeStr.replace(/\s+/g, ''); var _validFileExtensions = typeStr.split(","); if(fileInput.val()!=''){ var validREsult=Validate(jQuery('#huge_it_contact_form_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); }) }); 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); jQuery.ajax({ type: 'POST', url: 'http://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'); }); })

Edinburgh Premier Fair

Peter Harrington Bookseller Blog -

Date: 24 – 25 Mar 2017

Location: Radisson Blu Hotel, 80 High Street, Royal Mile, Edinburgh EH1 1TH

Website: www.pbfa.org/book-fairs/edinburgh-premier-fair-with-aba/5636

The Edinburgh Book Fair is Scotland’s leading antiquarian book fair, and is jointly run by It is the only event in the antiquarian bookselling calendar that is jointly run by the Provincial Booksellers Fairs Association and the Antiquarian Booksellers’ Association.

This is a two day event and provides booklovers with the opportunity to view and buy an incredible and diverse selection of rare, antiquarian and second-hand books, manuscripts, and ephemera from some of the country’s leading book dealers.

A number of Edinburgh bookshops will be attending the fair, such as McNaughtan’s Bookshop and the Old Town Bookshop

More information about the fair can be found here.

/*########### PREVIEW CONTAINER ##############*/ #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_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); //alert(phoneVal) }) } if(jQuery(this).find('div.input-text-block >input').hasClass('required')){ var text_emailField=jQuery(this).find('input'); text_emailField.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.selectbox-block >select').hasClass('required')){ var selectField=jQuery(this).find('div.selectbox-block >select'); selectField.on('blur change',function(){ if(selectField.val()==null){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); } }); } if(jQuery(this).find('div.input-name-block >input.pl_name').hasClass('required')){ var text_fullnameField=jQuery(this).find('input.pl_name'); var text_fullnameField2=jQuery(this).find('input.pl_surname'); text_fullnameField.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField2.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); text_fullnameField2.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); } if(jQuery(this).find('div.textarea-block >textarea').hasClass('required')){ var textarea_field=jQuery(this).find('textarea'); textarea_field.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.email-block >input').attr('type')=='email'){ var emailField=jQuery(this).find('input'); emailField.on('blur',function(){ if(jQuery(this).val()!=''){ if(!isValidEmailAddress(jQuery(this).val())){ jQuery(this).parent().find('.hugeit-error-message').text(emailError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }) } if(jQuery(this).find('div.file-block >input[type="file"]').attr('type')=='file'){ var fileInput=jQuery(this).find('input[type="file"]'); var maxSize = fileInput.parent().find('input[name="MAX_FILE_SIZE"]').val(); fileInput.on('blur',function(){ var typeStr = jQuery(this).parent().find('input[name="fileTypeArr"]').val().trim(); typeStr = typeStr.replace(/\s+/g, ''); var _validFileExtensions = typeStr.split(","); if(fileInput.val()!=''){ var validREsult=Validate(jQuery('#huge_it_contact_form_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); }) }); 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); jQuery.ajax({ type: 'POST', url: 'http://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'); }); })

New York Antiquarian Book Fair

Peter Harrington Bookseller Blog -

Date: 09 – 12 Mar 2017

Location: Park Avenue Armory 643 Park Avenue, New York Between 66/67 Streets

Website: www.nyantiquarianbookfair.com/

About the Fair
From March 9-12, 2017 book lovers will find a fascinating treasure trove at the Park Avenue Armory. Over 200 American and international dealers will exhibit at The ABAA New York Antiquarian Book Fair, bringing a vast selection of rare books, maps, manuscripts, illuminated manuscripts and ephemera. The diversity of specialties includes art, medicine, literature, photography, autographs, first editions, Americana, and much more.

This book fair is officially sanctioned by the Antiquarian Booksellers’ Association of America and the International League of Antiquarian Booksellers. This means that the consumer can rely upon the experience and professionalism of participating dealers and the authenticity of the items available for purchase. Simply stated, all books, manuscripts and related material have been carefully examined for completeness and bibliographic accuracy.

Produced by Sanford L. Smith + Associates
Tel: 212-777-5218 | Email: [email protected]

/*########### PREVIEW CONTAINER ##############*/ #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_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); //alert(phoneVal) }) } if(jQuery(this).find('div.input-text-block >input').hasClass('required')){ var text_emailField=jQuery(this).find('input'); text_emailField.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.selectbox-block >select').hasClass('required')){ var selectField=jQuery(this).find('div.selectbox-block >select'); selectField.on('blur change',function(){ if(selectField.val()==null){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); } }); } if(jQuery(this).find('div.input-name-block >input.pl_name').hasClass('required')){ var text_fullnameField=jQuery(this).find('input.pl_name'); var text_fullnameField2=jQuery(this).find('input.pl_surname'); text_fullnameField.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField2.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); text_fullnameField2.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); } if(jQuery(this).find('div.textarea-block >textarea').hasClass('required')){ var textarea_field=jQuery(this).find('textarea'); textarea_field.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.email-block >input').attr('type')=='email'){ var emailField=jQuery(this).find('input'); emailField.on('blur',function(){ if(jQuery(this).val()!=''){ if(!isValidEmailAddress(jQuery(this).val())){ jQuery(this).parent().find('.hugeit-error-message').text(emailError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }) } if(jQuery(this).find('div.file-block >input[type="file"]').attr('type')=='file'){ var fileInput=jQuery(this).find('input[type="file"]'); var maxSize = fileInput.parent().find('input[name="MAX_FILE_SIZE"]').val(); fileInput.on('blur',function(){ var typeStr = jQuery(this).parent().find('input[name="fileTypeArr"]').val().trim(); typeStr = typeStr.replace(/\s+/g, ''); var _validFileExtensions = typeStr.split(","); if(fileInput.val()!=''){ var validREsult=Validate(jQuery('#huge_it_contact_form_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); }) }); 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); jQuery.ajax({ type: 'POST', url: 'http://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'); }); })

Cambridge Premier Fair

Peter Harrington Bookseller Blog -

Date: 17 – 18 Feb 2017

Location: The Guildhall, Market Square, Cambridge, CB2 3QJ

Website: www.pbfa.org/book-fairs/cambridge-premier-/4199

The 2017 Cambridge Premier Fair is looming!

We have our usual eclectic range of dealers and stock appearing, among them specialists in (in no particular order) manuscripts, science, equestrian books, early printing, Bondiana, wicca, medicine, mountaineering, miniature books, polar, ‘useful books’, anti-Catholic books, Enid Blyton, first editions and children’s and illustrated books.

Has that whetted your appetites? It has certainly whetted mine (and after 25 years of organising the fair, that is no mean feat). If so, download a ticket and join us, and please keep your eyes on the site for highlights, which will be added gradually between now and the fair.

/*########### PREVIEW CONTAINER ##############*/ #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_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); //alert(phoneVal) }) } if(jQuery(this).find('div.input-text-block >input').hasClass('required')){ var text_emailField=jQuery(this).find('input'); text_emailField.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.selectbox-block >select').hasClass('required')){ var selectField=jQuery(this).find('div.selectbox-block >select'); selectField.on('blur change',function(){ if(selectField.val()==null){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); } }); } if(jQuery(this).find('div.input-name-block >input.pl_name').hasClass('required')){ var text_fullnameField=jQuery(this).find('input.pl_name'); var text_fullnameField2=jQuery(this).find('input.pl_surname'); text_fullnameField.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField2.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); text_fullnameField2.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); } if(jQuery(this).find('div.textarea-block >textarea').hasClass('required')){ var textarea_field=jQuery(this).find('textarea'); textarea_field.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.email-block >input').attr('type')=='email'){ var emailField=jQuery(this).find('input'); emailField.on('blur',function(){ if(jQuery(this).val()!=''){ if(!isValidEmailAddress(jQuery(this).val())){ jQuery(this).parent().find('.hugeit-error-message').text(emailError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }) } if(jQuery(this).find('div.file-block >input[type="file"]').attr('type')=='file'){ var fileInput=jQuery(this).find('input[type="file"]'); var maxSize = fileInput.parent().find('input[name="MAX_FILE_SIZE"]').val(); fileInput.on('blur',function(){ var typeStr = jQuery(this).parent().find('input[name="fileTypeArr"]').val().trim(); typeStr = typeStr.replace(/\s+/g, ''); var _validFileExtensions = typeStr.split(","); if(fileInput.val()!=''){ var validREsult=Validate(jQuery('#huge_it_contact_form_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); }) }); 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); jQuery.ajax({ type: 'POST', url: 'http://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'); }); })

Pages