Antiquarian Book Blogosphere

Harry potter and the Literary Allusions: J. K. Rowling’s influences

Peter Harrington Bookseller Blog -

For those of us who treasure vivid childhood recollections of queuing up at midnight on an almost-yearly basis to receive the next instalment of the Harry Potter series into our eager hands, the fact that The Philosopher’s Stone turns twenty this year is an astonishing (and slightly alarming) fact. One of the joys of being a Potter fan – of being a reader in general, in fact – is the sensation of being admitted into a shared world of allusion, symbols and stories, in which you recognise in the everyday both the impetus and the influence of the books that you cherish.  Most people who have grown up with Rowling’s books must be familiar with the pleasant flash of recognition the first time you come across a character’s name or a magic word in an entirely different context; the sense of connection and discovery when you first learn that mandrakes are real plants with roots shaped like little people and their own rich folkloric history, or that Remus (the name of Harry’s werewolf teacher) was one of the twin brothers adopted by a she-wolf in Roman mythology. As with most good literature, the Potter books are a patchwork of borrowed, repurposed and, most importantly, interconnected ideas, drawn from the deep well of storytelling that so vitally taps into human experience across the centuries. While some have chosen to see Rowling’s craft as an infringement (several legal cases have been brought against her for alleged plagiarism) others have recognised that a writer’s own personal reading will often have a substantial influence over their work (the author, Eva Ibbotson, whose book The Secret of Platform 13 has been suggested as a possible source for Rowling’s idea of a magical portal in Kings Cross Station, has said she would ‘like to shake [Rowling] by the hand.’ ‘I think we all borrow from each other as writers’)

To celebrate the twentieth anniversary of Philosopher’s Stone, we have put together a selection of books which Rowling has referred to as those which had an impact on the genesis of Harry and his adventures. We like to think some of these volumes wouldn’t look out of place on the shelves in Dumbledore’s office or the Hogwarts library.

 

(NONESUCH PRESS.) HOMER. The Iliad, 1931.

Rowling has said that she was extremely moved by her reading of the Iliad at the age of nineteen, particularly the scene in which Hector returns to battle to rescue Patroclus’ body. In The Goblet of Fire, Harry returns Cedric’s body to Hogwarts after the two are lured away to a remote graveyard by Voldemort during the Triwizard Tournament, an incident she has said was directly influenced by Homer. “The idea of the desecration of a body, a very ancient idea… I was thinking of that when Harry saved Cedric’s body.”

 

(FRASER, William Alexander.) [Presentation Bible to Capt. W. A. Fraser from the Missionaries on the Loyalty Islands and New Hebrides:], 1867.

The biblical allusions in Harry Potter, particularly the last book, have been noted by many. The inscription on Dumbledore’s family tomb, “Where your treasure is, your heart will be also”, is from Matthew 6:21, while the tombstone of Harry’s parents bears the quotation “And the last enemy that shall be destroyed is death” from 1 Corinthians, which also informs one of the major themes of the book. Harry’s death and later resurrection have obvious resonances with the life of Jesus.  “They’re very British books”, Rowling has said, “So on a very practical note Harry was going to find biblical quotations on tombstones, [but] I think those two particular quotations he finds on the tombstones at Godric’s Hollow, they (…) almost epitomize the whole series.”

 

AESCHYLUS. The Tragedies. 1779.

Rowling puzzled many readers by choosing a long quotation from ‘The Libation Bearers’ as an epigraph to The Deathly Hallows.

Rowling has said that this, along with the second epigraph from Quaker leader William Penn, “cued up the ending perfectly”. In the passage from the Iliad, Electra and her brother Orestes plans to exact revenge for the murder of their father and ask the ‘dark gods’ of the underworld for strength in achieving their task. Electra and Orestes are caught in a dilemma as their father’s murderer was their mother, Clytemnestra. To murder her in turn would be to duplicate her sin of shedding kindred blood. As Harry shares blood with Lord Voldemort – blood, moreover, that carries the protection given when his mother died to save him – his knowledge that he must defeat Voldemort is complicated by a kinship tie with him. It is this connection which also tethers Harry to life and allows him to return after Voldemort has performed the killing curse on him in the climax of the final book. This passage therefore speaks to the complexities of blood relationships in Rowling’s universe, a theme that is prevalent throughout the seven books.

 

CHAUCER, Geoffrey. The Workes of Geffray Chaucer newly printed, [1550?]

‘The Pardoner’s Tale’ from Chaucer’s Canterbury Tales is recognisably the source for the ‘Tale of the Three Brothers’, the story which reveals the legend of the Deathly Hallows to Harry, Ron and Hermione. In Chaucer’s story, three brothers set out to kill Death in vengeance for the death of a friend. They encounter an old man who tells them that they will find Death under an oak tree. When they get there, however, they discover not Death but a large cache of gold coins. Forgetting their quest, each falls to plotting to kill the others, so that he may take the gold for himself. By the end of the tale, their greed has caused the death of all three brothers, illustrating the biblical theme of the Pardoner’s tale, “Radix malorum est cupiditas” (“Greed is the root of [all] evils” 1 Timothy 6.10). ‘The Tale of the Three Brothers’ appears in what might be said to be wizarding world’s equivalent of the Canterbury Tales, The Tales of Beedle the Bard and is retold in Deathly Hallows by Xenophilius Lovegood. Three brothers defy death by conjuring a bridge to cross a dangerous river in safety. Death appears to the brothers and gives each of them a gift, apparently in recognition of their skill at evading him. The first two brothers die as a result of the misuse of Death’s gifts but the third (the recipient of the invisibility cloak eventually inherited by Harry) uses it wisely and dies peacefully as an old man.

 

SHAKESPEARE, William. The Works. 1866.

J. K. Rowling has talked in interviews about the influence of Macbeth on the prophecy about Harry and Voldemort which states that “neither can live while the other survives”. “I absolutely adore Macbeth. It is possibly my favourite Shakespeare play” she has said. “And that’s the question isn’t it? If Macbeth hadn’t met the witches, would he have killed Duncan? Would any of it have happened? Is it fated or did he make it happen? I believe he made it happen.” This idea of free will despite the apparent determinations of fate is emphasised to Harry by Dumbledore in Half-Blood Prince:

You see, the prophecy does not mean you have to do anything! But the prophecy caused Lord Voldemort to mark you as his equal. . . . In other words, you are free to choose your way, quite free to turn your back on the prophecy!

 

LEWIS, C. S. [The Chronicles of Narnia:] The Lion, the Witch and the Wardrobe; Prince Caspian; The Voyage of the Dawn Treader; The Silver Chair; The Horse and His Boy; The Magician’s Nephew; The Last Battle. 1950-1956.

Rowling has said that Lewis’ books were childhood favourites and an inspiration when writing fantasy novels for children.  “I found myself thinking about the wardrobe route to Narnia when Harry is told he has to hurl himself at a barrier in King’s Cross Station – it dissolves and he’s on platform Nine and Three-Quarters, and there’s the train for Hogwarts.” A connection can also be made between Harry’s obnoxious, bullying cousin Dudley Dursely and Eustace Scrub, who is the cousin of the Pevensie children who appear in several Narnia novels. Both Dudley and Eustace eventually find some form of redemption in the course of each narrative.

 

AUSTEN, Jane. [The Novels:] Pride & Prejudice; Sense & Sensibility; Mansfield Park; Emma; Northanger Abbey; Persuasion. 1907–09.

While the parallels between Austen’s portraits of nineteenth century manners and society and a story about a school for young witches and wizards might not immediately jump off the page, Rowling has spoken of Austen as one of her chief influences in the craft of storytelling. The Potter series is known for its surprising turns and twist endings, and Rowling has stated that “I have never set up a surprise ending in a Harry Potter book without knowing I can never, and will never, do it anywhere near as well as Austen did in Emma.”

 

Dorothy L. Sayers

Despite the overarching theme of good versus evil, each individual Potter story often feels like its own self-contained mystery novel, with suspects, evidence and an eventual payoff forming integral parts of the structure. Acknowledging this fact, Rowling has referred to Sayers as “the queen of the genre”. She has talked about the influence of Sayers on Harry Potter with regards to romance in the novels:

There’s a theory – this applies to detective novels, and then Harry, which is not really a detective novel, but it feels like one sometimes – that you should not have romantic intrigue in a detective book. Dorothy L. Sayers, who is queen of the genre said — and then broke her own rule, but said — that there is no place for romance in a detective story except that it can be useful to camouflage other people’s motives. That’s true; it is a very useful trick. I’ve used that on Percy and I’ve used that to a degree on Tonks in this book, as a red herring. But having said that, I disagree inasmuch as mine are very character-driven books, and it’s so important, therefore, that we see these characters fall in love, which is a necessary part of life.

We’re also celebrating the 20th anniversary of Harry Potter with a curated selection of signed first and special editions of Harry Potter, which you can see here.

You can read our blog on how to identify whether your Philosopher’s Stone is a first edition here, or watch this video.

 

 

The Professor: Jerry Thomas and the First Cocktail Book

Peter Harrington Bookseller Blog -

This article by Ben Houston originally appeared in The Gourmand magazine.

The early history of the cocktail is inevitably entangled in over two centuries of tall-tale bar-talk. As David Wondrich remarks in Imbibe!, his definitive guide to classic American cocktails, “there was no Homer to record the names and deeds of bartenders”, and so the lineages of many of the cocktail connoisseur’s favourite tipples have been utterly obscured by the “mists of time”.

Within this befogged prospect a few monuments of mixology loom large, and of these perhaps the most colossal is “The Professor” Jerry Thomas’s The Bar-Tender’s Guide: A Complete Cyclopaedia of Plain and Fancy Drinks. First published in 1862, Thomas’s short book was the first ever printed guide to mixing cocktails. Launched into an America heady with Gold Rush Fever and divided by a vicious civil war, the book offered by way of diversion a collection of almost alchemical recipes and fantastical techniques that still dazzle today.

THOMAS, Jerry. The Bar-Tender’s Guide, Danbury: Behrens Publishing Company, 1887. £750.

The creative showmanship and flair of these recipes capture perfectly a time when the mixing of cocktails was an art on the edge, equal parts glamour and grift, probably best exemplified by the dangerously spectacular “Blue Blazer”, which required the bar-tender to pitch a cascade of flaming Scotch and boiling water between two mugs. Thomas wisely advises that “the novice in mixing this beverage should be careful not to scold [sic.] himself”.

Thomas honed his skills, and made his fortune in the bar-rooms of Gold Rush California. Flashily dressed, diamond studs aglint and with a conjuror’s flourish, he mixed the fanciest drinks from the finest ingredients for the assembled prospectors, robber-barons and bunco artists. However, it was in New York that Thomas was to break the bar-keep’s omerta, and set down his recipes and techniques for publication. Today his book is rightly recognised as the earliest printed document of what Wondrich calls “the first legitimate American culinary art”.

THOMAS, Jerry. [The Bar-Tenders’ Guide.] How to Mix Drinks, or The Bon-Vivant’s Companion… New York Dick & Fitzgerald 1862. £2,500

THOMAS, Jerry. The Bar-Tender’s Guide, New York: Fitzgerald Publishing Corporation, successor to Dick & Fitzgerald, 1887. £1,500

The Bar-Tender’s Guide is an exceedingly scarce book in its true first edition with just nine copies recorded in institutions worldwide. Highly elusive, it is remarkable evocation of the time when bar-tenders-as-stars performed the theatre of a truly original culinary art.

 

 

 

The Books That Made Europe

Peter Harrington Bookseller Blog -

A selection of books relating to this blog post can currently be found on our Curator’s Choice page.

Peter Harrington is proud to be associated with an exhibition currently running in Rome, at the Palazzo Madama, the home of the Italian Senate. The exhibition, which was earlier displayed at the Biblioteca Wittockiana in Brussels, runs until June 20 2017 and is highly recommended.

Books That Made Europe is a timely exhibition. Scheduled to coincide with the 60th anniversary of the signing of the Treaty of Rome (1957) which facilitated the creation of the European Economic Community, the exhibition celebrates the printed works which underpin the culture and values of the modern-day European Union.

This exhibition roots the EU’s foundation ideals of freedom, human rights and integration in Europe’s intellectual and cultural heritage, beginning with Johann Gutenberg, whose invention in c. 1440 of movable type enabled the mass circulation of ideas through the printed word. The exhibition features 140 books, spanning six centuries. Recalling that European federalism was sought in the aftermath of the Second World War, as a direct attempt to curb future abuses of power by Nation States and to guard against the rise of extreme nationalism, the books featured have been selected for their capacity to challenge assumptions and broaden minds. The most influential scientific and cultural works are represented in the collection, to which Peter Harrington has supplied and lent a number of items and has facilitated the loan of several others through its connections to private collectors and institutions.

 

Thomas Hobbes, Leviathan, or the Matter, Forme, & Power of a Common-wealth Ecclesiastical and Civil. 1651.

One of the most important books in the history of political philosophy, Thomas Hobbes’ treatise on the structure of society and legitimate government is the first attempt to set out a cohesive political system in the English language. The work was conceived in one of the most tumultuous periods in English history; the conflict between Charles I and parliament and the resultant civil war, which culminated in the execution of the king and installation of Oliver Cromwell as Lord Protector.

Leviathan presents Hobbes’ theory of the reciprocal relationship between political obedience and peace and argues for a social contract between the state and the individual to guard against political disintegration. The famous frontispiece to the work – the titular leviathan – was designed by Hobbes in collaboration with the French artist Abraham Bosse, and is a perfect illustration of his ideas. A giant crowned figure, his body composed of numerous other tiny figures, towers above a well-ordered landscape. As Hobbes wrote

the multitude so united in one person is called a COMMONWEALTH; in Latin, CIVITAS. This is the generation of that great LEVIATHAN, or rather, to speak more reverently, of that mortal god to which we owe, under the immortal God, our peace and defence. For by this authority, given him by every particular man in the Commonwealth, he hath the use of so much power and strength conferred on him that, by terror thereof, he is enabled to form the wills of them all, to peace at home, and mutual aid against their enemies abroad. And in him consisteth the essence of the Commonwealth; which, to define it, is: one person, of whose acts a great multitude, by mutual covenants one with another, have made themselves every one the author, to the end he may use the strength and means of them all as he shall think expedient for their peace and common defence.

Hobbes’ work generated a storm of controversy, particularly after the restoration of the Stuarts in 1660. Parliament tried to ban Leviathan and Hobbes was forced to defend himself against charges of atheism, scepticism and materialism.

 

Samuel Pufendorf, De officio hominis et civis juxta legem naturalem libri duo. 1673

First edition, one of two printings of 1673, this one with 32 unnumbered preliminary and 243 numbered pages (pp. 129-130 and 179 omitted in pagination), the other with 240 numbered pages. This is a short summary of a part of Pufendorf’s masterwork De jure naturae et gentium. The legal theorist, historian and theologian Samuel von Pufendorf (1632-94) was the first professor of the Law of Nature and of Nations in a German university, at Heidelberg. In his works on political science “he attempted to strike a middle path between the rationalism of Grotius and the voluntarism of Hobbes. He envisaged the state of nature as a war of all against all, from which men would wish to save themselves by joining in a society whose laws were imposed by the ruler’s will. But he also argued that such laws must conform to natural law, whose duties he maintained, unlike Grotius, were imposed on man by God’s will.   For it must have been God’s will to give man such a nature that he can only live and prosper in society and therefore an inclination to observe the rules that make social life possible.   In preference to Grotius a posteriori method, he adopted a sociological form of inquiry into man’s condition in society” (The New Palgrave III, p. 1074).

 

John Locke, Some Considerations of the Consequences of the Lowering of Interest and Raising the Value of Money. 1692.

Locke’s first book on economics, this is an influential contribution to monetary theory which offers a sophisticated defense of mercantilism. After the Revolution Settlement, the question of lowering the rate of interest in England was topical: many London merchants wanted cheap money and Locke was thus prompted to look out his “old essay” and prepare it for publication in which he was encouraged by his friend John Somers – the unnamed MP to whom it was dedicated.

“In his tract of 1692, (Some Considerations, written 1672) Locke controverts the view of Sir Josiah Child that the rate of interest could be fixed at a low rate, say 4 per cent, by law.  Locke, though ready to approve of a legal rate of 6 per cent, argues that ‘generally speaking’ the price of the hire of money cannot be fixed by law; and that any attempt to fix the rate of interest below ‘the true and natural value’ can only harass trade and is sure to be defeated by the devices of expert traders” (Palgrave II, 632–633).

“Locke’s writings on money and his arguments against devaluation have almost been regarded as gospels for ‘sound money’ men. The influence of his thought was most noticeable in the early nineteenth century, as shown in the speeches of Canning and Peel when parliament debated the monetary standard in 1811, 1819 and 1844. But strange to say, Locke himself was not happy about his own work on money. In a letter to William Molyneux (30th March 1696), he stated his feelings as follows: ‘The business of our money has so near brought us to ruin, that, till the Plot broke out, it was every body’s talk, every body’s uneasiness. And because I had played the fool to print about it, there was scarce a post wherein somebody or other did not give me fresh trouble about it …  I must own to you, this, and the like subject, are not those which I now relish, or that do, with most pleasure, employ my thought’” (see Ming-Hsun Li, The Great Recoinage of 1696–9, pp. 104–105).

 

Karl Marx, Das Kapital. Kritik der politischen Oekonomie. 1867

Rare first edition of the first volume of Das Kapital, the only one to appear in Marx’s lifetime; one of 1,000 copies printed. Two further volumes were published from his manuscripts by Engels, in 1885 and 1894 respectively.

The first volume of Das Kapital was published on 14 September 1867 in Hamburg, issued in printed wrappers.

“Marx himself modestly described Das Kapital as a continuation of his Zur Kritik de politischen Oekonomie, 1859. It was in fact the summation of his quarter of a century’s economic studies, mostly in the Reading Room of the British Museum. The Athenaeum reviewer of the first English translation (1887) later wrote: ‘Under the guise of a critical analysis of capital, Karl Marx’s work is principally a polemic against capitalists and the capitalist mode of production, and it is this polemical tone which is its chief charm’. The historical-polemical passages, with their formidable documentation from British official sources, have remained memorable; and, as Marx (a chronic furunculosis victim) wrote to Engels while the volume was still in the press, ‘I hope the bourgeoisie will remember my carbuncles all the rest of their lives’ …”

“By an odd quirk of history the first foreign translation of Das Kapital to appear was the Russian, which Petersburgers found in their bookshops early in April 1872. Giving his imprimatur, the censor, one Skuratov, had written ‘few people in Russia will read it, and still fewer will understand it’. He was wrong: the edition sold out quickly; and in 1880 Marx was writing to his friend F. A. Sorge that ‘our success is still greater in Russia, where Kapital is read and appreciated more than anywhere else’” (PMM).

“The history of the twentieth century is Marx’s legacy. Stalin, Mao, Che, Castro—the icons and monsters of the modern age have all presented themselves as his heirs. Whether he would recognise them as such is quite another matter … Nevertheless, within one hundred years of his death half the world’s population was ruled by governments that professed Marxism to be their guiding faith. His ideas have transformed the study of economics, history, geography, sociology and literature. Not since Jesus Christ has an obscure pauper inspired such global devotion—or been so calamitously misinterpreted” (Francis Wheen, in his introduction to Karl Marx, 1999).

 

Adolf Wagner, Karl Heinrich Rau’s Lehrbuch der Finanzwissenschaft. Sechste Ausgabe, vielfach verändert und theilweise völlig neu bearbeitet. Erste Abtheilung. Einleitung. Ausgaben. Privaterwerth des Staats. 1872.

First edition of Wagner’s reworking of volume three of Rau’s Lehrbuch der politischen Oekonomie.

Wagner was a prominent economist of the Bismark era, a Kathedersozialist or academic socialist. As a social philosopher, he criticised emergent industrial –commercial capitalist ideals, whilst maintaining an essentially conservative stance, advocating a State capable of reconciling individualistic and socialistic principles.

Undoubtedly Wagner’s most important and enduring work, the Lehrbuch der Finanzwissenschaft was his revision of the third part of Karl Heinrich Rau’s four-volume compendium Lehrbuch der politischen Ökonomie. His presentation of the material was ground-breaking, dismissing the traditional German ‘cameralistic’ management of state finances, instead envisioning a modern theory of public finance, centred on a more active role of the State and a tax system that aimed at promoting greater equality. He also believed an active role of the State in a developing industrial society, and thus advocated the nationalisation of certain key sectors, such as railways, insurance and banking. Most importantly, Wagner categorically rejected the system of laissez-faire liberalism epitomised by the British economy.

 

Knut Wicksell, Geldzins und Güterpreise. 1898

In Geldzins und Güterpreise, believed by many to be Wicksell’s most original and enduring contribution to economics, ‘he more or less founded modern macroeconomics by going back to Tooke’s contra-quantity theory of money, according to which the price level is determined not by the quantity of money but by the national income in the form of the total flow of expenditures on goods and services. While rejecting Tooke’s argument, he restated the old quantity of money so as to emphasise expenditure flows, carefully distinguishing the direct effect of an increase in the quantity of money on prices via the cash balances individuals are willing to hold and the indirect effect on prices that operate through variations in the rate of interest’ (Great Economists Before Keynes, p. 274).

C.G. Uhr, writing in The New Palgrave, describes this work as ‘the home of the Wicksellian “cumulative price level fluctuations or processes”, allegedly generated by a divergence between the rate of return on newly created real capital and the bank-dominated market rate of interest’ (IV, 904).

 

John Maynard Keynes, The Economic Consequences of The Peace. 1919.

Keynes’ second, and sometimes called his best, book, The Economic Consequences of The Peace, is a critical account of the Treaty of Versailles based on Keynes’ experience as a delegate of the British Treasury at the Paris Peace Conference of 1919. Keynes had argued for a more generous deal for Germany in the wake of the First World War, and perceived that the reparations imposed would ruin Europe. For this reason, the book is heralded by some as an early anticipation of the World War II. Keynes resigned from his advisory role with the Treasury just three weeks before the signing of the Treaty, amid growing frustration with the negotiations and concerns over his health. He returned to Cambridge where he spent the summer of 1919 writing this meditation on the progress of the Conference and his predictions of its consequences.

Two profound criticisms of the Treaty underpin Keynes’ book. His first is that the economic terms of the treaty rendered prosperity in Europe through an equitable, effective and integrated economic system impossible. Secondly, he argued that the Allies had violated their commitment to a policy of even handedness by the severe terms of the Treaty.

The book became an almost immediate success on both sides of the Atlantic, solidifying Keynes’ reputation as one of the leading economists and public intellectuals of his day.

You can find the exhibition catalogue, which includes in-depth information on each item and its importance, as well as several essays about the history of the printed word in Europe, here. A supplementary catalogue is also available and can be found here.

 

Special thanks to Dario Lasagni, Eugenio Sidoli and Ian Smith in helping with the production of this blog.

 

SALINGER, J. D. The Catcher in the Rye. 1951.

Peter Harrington Bookseller Blog -

Presented by Pom Harrington, owner of Peter Harrington Rare Books.

Octavo. Original blue boards, spine lettered in silver. With the supplied dust jacket, designed by Fritz Wegner. Housed in a dark blue quarter morocco solander box made by the Chelsea Bindery. Boards browned at edges and a little marked, tips worn, a good copy in the jacket with chips at head of spine and folds.

First UK edition, presentation copy inscribed by the author in red ink on the front free endpaper, “To Joyce Williams, who nursed my mother so selflessly and beautifully. With gratitude, J. D. Salinger. New York, N.Y. June 21, 1974.” Salinger’s mother was born Marie Jillich, in 1891 in Atlantic, Cass County, Iowa, and died in June 1974, the same month as the inscription. She had adopted Judaism and the name Miriam on her marriage. Her husband Sol, Salinger’s father, had died earlier the same year, in Brooklyn Heights, New York. Apparently Salinger showed little emotional response to their deaths, even within his own family. He reported having dealt with his father’s death with a “minimum of crap and ceremony” and, when his mother died, he neglected to tell his own daughter Peggy; she read about it in the newspaper (Raychel Haugrud Reiff, J. D. Salinger, 2008, p. 35). This presentation inscription, made in a copy of the UK edition presumably from his own library, shows a little more emotional response to her passing. On the rear endpaper, Joyce Williams has re-presented the book: “To my brother Eric McBean. From his sister Joyce Williams. May 17, 2003. Brooklyn NY. 11233”.

RACKHAM, Arthur. The Peter Pan Portfolio, [1912].

Peter Harrington Bookseller Blog -

Presented by Pom Harrington, owner of Peter Harrington Rare Books.

Elephant folio. Original full vellum portfolio, titles to front cover gilt, with the original ivory silk ties laced to a large bow at the spine and with two pairs of ivory silk fore-edge ties skilfully supplied to match. In the original green cloth-sided card box with full-page printed paper label to front. Housed in a custom green quarter morocco solander box. 12 large proof-size colour plates mounted in mats, with captioned tissue guards, by Rackham. The box a little worn in places, but a fine copy, a remarkable survival of this luxurious presentation.

Deluxe extra-limited edition, number 13 of 100 copies signed by the publisher and engraver on the limitation page and each plate signed on the mount by the artist, bound in full vellum. According to Latimore & Haskell, although Rackham was supposed to sign all 100 copies, the artist confessed that he had signed only about 20 of them. Copies numbered 101 to 600 were issued in a half vellum portfolio with green cloth sides; none of these was signed by Rackham. The Peter Pan Portfolio reproduces 12 of Rackham’s favourite illustrations at their original size. Barrie wrote enthusiastically of Rackham’s originals, which he had seen exhibited at the Leicester Galleries, “I like best of all the Serpentine with the fairies, and the Peter in his night-gown sitting in the tree. Next I would [sic] the flying Peters, the fairies going to the ball (as in the ‘tiff’ and the fairy on cobweb) – the fairies sewing the leaves with their sense of fun (the gayest thing this) and your treatment of snow” (Ray 329). Barrie’s comments seemingly influenced Rackham’s selection, as the portfolio includes all the images the author mentioned.

WALTON, Izaak. The Compleat Angler, or The Contemplative Man’s Recreation. 1931.

Peter Harrington Bookseller Blog -

Presented by Pom Harrington, owner of Peter Harrington Rare Books.

Small quarto. Specially bound for the publisher by Sangorski & Sutcliffe in red crushed morocco, spine gilt tooled with a fish motif (closely resembling that used on copies in the vellum binding), concentric gilt panels on sides with fish motif at corners, top edge gilt, others untrimmed, three-line gilt turn-ins, marbled endpapers. Housed in a red quarter morocco slipcase. Colour frontispiece and 11 coloured plates with captioned tissue guards, black and white illustrations in the text, by Rackham. Attractive bookplate of Cyril Sturla (a captain in The Cheshire Regiment during the Great War). An excellent copy.

Deluxe edition, number 1 of 757 copies signed by the artist; this is one of a putative 10 “special copies” in a luxury binding commissioned by the publisher and containing an original signed pen-and-ink and watercolour sketch by Rackham (this one captioned “Handle him as if you loved him” – Walton’s dictum for handling a live frog before impaling it on a hook) and showing an amusing riparian scene with a frog pleading with a gentleman, while a typically Rackhamesque anthropomorphic tree looks on. It was George Harrap who hit on the idea of a “Rackham special”, the most exclusive format of Rackham’s books. From The Vicar of Wakefield on, Harrap held back the first dozen or so copies to be specially bound, as here, and asked Rackham to add a unique original watercolour sketch to the limited page. The first few copies were usually reserved for the publisher and his family; only a handful were available to the public. Describing his artistic method for these “specials”, Rackham pointed out that “my little sketches must inevitably be of a light hearted or joking nature… They have to be spontaneous and free handed. The nature of the paper is such that there can be no preparatory drawing and no alterations”.

POE, Edgar Allan. Tales of Mystery and Imagination. 1935.

Peter Harrington Bookseller Blog -

Presented by Pom Harrington, owner of Peter Harrington Rare Books.

Quarto (262 x 186 mm). Specially bound for the publisher in green full morocco by Sangorski & Sutcliffe, gilt lettered and panelled spine, single-line gilt lozenge on sides with gilt corner ornaments from designs by Rackham, top edges gilt, others untrimmed, three-line gilt turn-ins, marbled endpapers (the original pictorial endpapers bound in after binder’s blanks). With the publisher’s card slipcase (with hand-numbered label). Colour frontispiece and 11 colour plates mounted on heavy white paper with captioned tissue guards, black and white illustrations in the text, by Rackham. Slight signs of wear at extremities of joints. An excellent copy.

Deluxe edition, number 3 of 460 copies signed by the artist. This is one of ten “special copies” reserved by the publisher from the total edition, presented in a specially commissioned luxury binding decorated in gilt with tools designed by the artist, and including a full-page original pen-and-ink and watercolour drawing by Rackham (signed “Arthur Rackham 1935”), showing a seated elderly man reading a hair-raising story, while his black cat spits at the Devil, who emerges from behind his armchair. It was George Harrap who hit on the idea of a “Rackham special”, the most exclusive format of Rackham’s books. From The Vicar of Wakefield on, Harrap held back the first dozen or so copies to be specially bound, as here, and asked Rackham to add a unique original watercolour sketch to the limited page. The first few copies were usually reserved for the publisher and his family; only a handful were available to the public. Describing his artistic method for these “specials”, Rackham pointed out that “my little sketches must inevitably be of a light hearted or joking nature … They have to be spontaneous and free handed. The nature of the paper is such that there can be no preparatory drawing and no alterations”.

[QUESNAY, François]. Physiocratie, ou constitution naturelle… 1768.

Peter Harrington Bookseller Blog -

Presented by Ian Smith of Peter Harrington Rare Books.

Two works bound in one volume, octavo (188 x 114 mm). Contemporary marbled paper boards, mottled calf spine, red morocco label.

First edition (“Leyde” issue) of the book that gave the Physiocrats their name, one of the most important and original works on political economy to be published before The Wealth of Nations, bound together with its important companion piece, one of the scarcest of Dupont’s works, and probably one of the most successful publications promoting physiocracy. The work is partly based on Le Mercier de la Rivière’s L’Ordre naturel et essentiel des Sociétés politiques, which Adam Smith referred to as “the most distinct and best connected account of this doctrine”. Schumpeter, in his discussion on the physiocrats, calls Dupont “by far the ablest of the lot” (p. 226) and Palgrave notes; “If Quesnay was the father of physiocracy, Dupont was its godfather, for he gave it its name by the publication of his Physiocratie… a collection of Quesnay’s articles, which the editor introduced by a Discours.”. Quesnay presented a copy of his book to Adam Smith, who described him as “ingenious and profound, a man of the greatest simplicity and modesty”, while pronouncing Quesnay’s system to be “with all its imperfections, perhaps the nearest approximation to the truth that has yet been published upon the subject of political economy”. François Quesnay (1694–1774) was the court physician to Louis XV, and his notion of a circular flow of income throughout the economy was influenced by the contemporary discovery of blood circulation through the human body. He believed that trade and industry were not sources of wealth, and instead argued that the real economic movers were agricultural surpluses flowing through the economy in the form of rent, wages and purchases. Quesnay argued that regulation impedes the flow of income throughout all social classes and therefore economic development; and that taxes on the productive classes, such as farmers, should be reduced in favour of rises for unproductive classes, such as landowners, since their luxurious way of life distorts the income flow.

[PUTTENHAM, George.] The Arte of English Poesie. 1589.

Peter Harrington Bookseller Blog -

[PUTTENHAM, George.] The Arte of English Poesie. Contrived into three Bookes: The first of Poets and Poesie, the second of Proportion, the third of Ornament. Published: London: by Richard Field, 1589.
Presented by Adam Douglas, Senior Rare Book Specialist at Peter Harrington.

Quarto (184 x 127 mm). Dark green levant morocco by Rivière, floral and ornamental gilt border on pointillé ground on sides, gilt dentelles, spine gilt, edges gilt. Bookplate. Woodcut device (McKerrow 222) on title page, woodcut portrait of Elizabeth I, woodcut initials, head- and tailpieces, and diagrams; bound without first and last blanks.

First and only contemporary edition; “an ambitious work of literary history and criticism as well as a rhetorical handbook for the practising poet” (ODNB). Puttenham’s examples are drawn mostly from early to mid-16th-century writers, poetry such as Richard Tottel’s Songs and Sonnets or the works of George Gascoigne and George Turberville. Ben Jonson owned a copy and carefully annotated it. The book was published anonymously with a dedication to Burghley subscribed “R. F.” by the printer Richard Field, the Stratford contemporary of William Shakespeare. Field was associated with the printing or publishing of many important sources for Shakespeare’s plays, suggesting the possibility that the playwright may have had access to his townsman’s shop. William Lowes Rushton itemizes an impressive number of parallels between The Art of English Poesie and the language displayed in Shakespeare’s plays.

POTTER, Beatrix. [Complete set of deluxe editions:] 1902–10.

Peter Harrington Bookseller Blog -

POTTER, Beatrix. [Complete set of deluxe editions:] The Tale of Peter Rabbit; The Tailor of Gloucester; The Tale of Squirrel Nutkin; The Tale of Two Bad Mice; The Tale of Benjamin Bunny; The Pie and the Patty-Pan; The Tale of Mrs. Tiggy-Winkle; The Tale of Jeremy Fisher; The Tale of Tom Kitten; The Tale of Jemima Puddle-Duck; The Tale of the Flopsy Bunnies; The Tale of Mrs. Tittlemouse. Published: London: Frederick Warne & Co., 1902–10.

Presented by Pom Harrington of Peter Harrington Rare Books.

12 works: 11 sextodecimo, 1 small quarto. Original gilt decorated cloth, pictorial labels to front boards, pictorial endpapers, except: Peter Rabbit bound in yellow cloth lettered red, grey patterned endpapers; Squirrel Nutkin and Tailor of Gloucester in floral cloth with gilt-lettered vellum labels, pictorial endpapers; Pie and the Patty-Pan in pale blue cloth lettered blue, white moiré endpapers. Each book housed in a custom folding case. An excellent set. Some hinges split but holding, a few with light finger-marks to contents, some with contemporary gift inscriptions, a little rubbing to extremities. The Pie and the Patty-Pan with bookplates of H. Bradley Martin and Mildred Greenhill, and misbound at p. 14.

Complete set of the first deluxe editions of the Peter Rabbit series. Priced at 1/6- rather than 1/- for the paper-covered books, the deluxe editions went through three iterations before a consistent style was settled upon. The first deluxe binding of Peter Rabbit was issued in two colours, yellow and green. Potter felt this unimpressive, writing, “I thought last year there was not sufficient difference between the two styles of binding – that if the cloth binding had been more distinctly different, and pretty, there might have been more inducement to buy it.” She obtained some samples of patterned cloth from her grandfather’s textile printing works: Edmund Potter & Co. of Manchester, one of the largest calico printers in Europe. An art fabric binding, which Potter referred to as “a flowered lavender chintz, very pretty” was selected for the deluxe issues of the Tailor of Gloucester and Squirrel Nutkin in 1903, and vellum labels used for the title and author’s name, as it was impracticable to print directly onto the fabric. The following October, a brightly coloured moiré cloth decorated in gilt was chosen for the deluxe issue, coinciding with the publication of Benjamin Bunny and the Two Bad Mice. Potter contributed to the gilt design, noting in a letter to the Warnes that “I will do some sketches of designs for the cover while I am at Melford.” This design, with some minor alterations to the gilt decoration, was adopted for the deluxe editions of the rest of the series.

POTTER, Beatrix. The Tale of Peter Rabbit. December 1901].

Peter Harrington Bookseller Blog -

Presented by Pom Harrington, owner of Peter Harrington Rare Books.

You can view this item on our website here: http://www.peterharrington.co.uk/the-…

Sextodecimo, pages unnumbered. Original pictorial grey paper boards, decoration and titles to front board in black. Housed in a custom black quarter morocco and cloth solander box. Coloured frontispiece and 41 text illustrations after pen and ink drawings. With the bookplates of Mildred Greenhill and H. Bradley Martin to the front pastedown. A faint spray of foxing to a few leaves, slight marking to front free endpapers, still an exceptional copy of this fragile publication.

First edition, first impression. The first of her small format books to be published, The Tale of Peter Rabbit was developed from a picture letter sent to Noel Moore on 4 September 1893. In 1900, Potter thought it might make a small book, and contacted Moore to see if he had kept the letter and if she might borrow it back; the letter was then expanded into the book with 41 black and white drawings and a colour frontispiece. However, as a larger format and colour were in vogue at the time for children’s books, it was rejected by a number of publishers, including Warne, after they found Potter was adamant that the size and form of the book should not be altered. Determined to see it in print, she decided to publish it herself, with the colour frontispiece printed by Herschel of Fleet Street using the recently introduced three colour press. The privately-printed edition was ready on 16 December 1901 in an edition of 250 copies; Potter presented them to friends and relatives, and also sold them for 1/2d. Within two weeks it proved so popular that she commissioned a second impression. The book was then taken up by Frederick Warne and published in a regular trade edition in October 1902.

POTTER, Beatrix. Original manuscript with drawings…. [c.1896].

Peter Harrington Bookseller Blog -

Presented by Pom Harrington, owner of Peter Harrington Rare Books.

You can view this item on our website here: http://www.peterharrington.co.uk/orig…

Folded booklet of 5 pages. Original ink holograph and watercolour manuscript with 9 ink and watercolour drawings and text by Potter, the first with title and “H. Gerbault. Copy” written below, the remainder with accompanying verse, unbound. Housed in a custom brown folding case. In superb condition.

The illustrated French poem is identified as the work of Beatrix Potter by the accompanying note written by an executor of the artist, stating that “the enclosed poem is an example of fine copying done on notepaper by Beatrix Potter (from her portfolios at Sawrey, Oct. 49).” Henri Gerbault (1863–1930) was a French illustrator and watercolourist, and this manuscript is based on a contribution by Gerbault to a children’s periodical of the early 1890s, later anthologised in Chansons du vieux temps with music by J. Tiersot (1904), also with designs by Gerbault. It is thought that these and other similar copies were made by Potter to improve her figure drawing, always her weakest point, as she later acknowledged: “I am not good – or trained – in drawing human figures (they are a terrible bother to me when I have perforce to bring them into the pictures for my own little stories)”.

LOWRY, L. S. Going to the Match. 1972.

Peter Harrington Bookseller Blog -

Presented by Ben Houston of Peter Harrington Rare Books.

Sellotape residue to extreme top edge, light creasing to margins hidden by the mount. Presented in a lime wax frame with conservation mount and glass.

Edition of 300, signed in pencil lower right by Lowry, with the Fine Art Trade Guild blindstamp lower left. The print is reproduced from an original 1953 oil painting of football fans converging on Burnden Park, Bolton Wanderers’ old football stadium. Originally titled Football Ground, the painting won first prize in a competition organized by the Football Association. This was a surprise to Lowry, who had no idea the picture had been entered. In 1999 the painting was bought by the Professional Footballers’ Association for £1.9 million, a record price at the time for a Lowry painting.

MILNE, A. A. Winnie-the-Pooh… 1926–27–28.

Peter Harrington Bookseller Blog -

3 works, small quarto. Original full stiff vellum with yapp edges, titles to front covers gilt. Winnie-the-Pooh in a yellow cloth chemise and yellow morocco slipcase; Now we are Six in a dark red cloth chemise and matching slipcase; The House at Pooh Corner in a pale red cloth chemise and matching slipcase. Illustrated throughout by E. H. Shepard. Faint blemishes to front cover of Now We Are Six. An exceptional set.

Signed extra-limited editions. Each volume is one of 20 large paper copies printed on Japanese vellum and bound in vellum, signed by both the author and the illustrator—the most luxurious and exclusive issue of the various formats done for the first editions of Milne’s Pooh books. Winnie-the-Pooh is no. 12; Now We Are Six is no. 15; and The House of Pooh Corner no. 19. There was no equivalent issue of the first book in the series, When We Were Very Young (1924), as the magnitude of its success had not been anticipated, so this constitutes a complete set of the Pooh books in this format.

Presented by Ian Smith, Senior Rare

Peter Harrington Bookseller Blog -

Presented by Ian Smith, Senior Rare Book Specialist at Peter Harrington.

Octavo (223 x 145 mm). Original printed paper wrappers, rebacked.

Rare first edition – one of 1000 copies – of the “germ” of Das Kapital. The Kritik was Marx’s first attempt at a general statement of his theories, written following several years’ research in the British Museum. Marx had initially planned a multi-volume work, but he was dissatisfied with it, and no further parts were written or published. The work is, however, of considerable importance: Marx himself described Das Kapital as a continuation of his Zur Kritik der politischen Oekonomie (PMM 339). It represents Marx’s early attempts at the formulation of his economic theories and contains his treatment of the history of value and monetary theory. The preface outlines his classic formulation of historical materialism, and as such is the major Marxist contribution to the interpretation of history and political economy:

“In the social production of their life, men enter into definite relations that are indispensable and independent of their will, relations of production which correspond to a definite stage of the development of their material productive forces. The sum total of these relations of production constitutes the economic structure of society, the real foundation, on which rises a legal and political superstructure and to which correspond definite forms of social consciousness. The mode of production of material life conditions the social, political and intellectual life process in general. It is not the consciousness of men that determines their being, but, on the contrary, their social being that determines their consciousness” (Introduction, p. v., translation taken from Karl Marx and Frederick Engels, Selected Works I, 362–4).

Printing and the Mind of Man

Peter Harrington Bookseller Blog -

Printing and the Mind of Man (PMM) is a landmark publication in the study of books and their place in culture. First published in 1967, PMM was based on the 1963 exhibitions of the same name held in London which sought to examine the the impact of printed books on the development of western civilisation. It included over 650 examples of printing and printing technology documenting the influence of print on the development of Western world. It soon became an important reference work for book collectors and remains an indispensable resource for booksellers, librarians and bibliophiles today. You can find very fine illustrated copies of PMM, complete with protective slip case, here.

We have put together this selection of twenty or so pivotal works drawn from PMM currently in our stock, any of which would be a worthy addition to the collection of the bibliophile.

 

New York Slate: a Bob Dylan forgery

Peter Harrington Bookseller Blog -

There are certain items of music memorabilia that seem to reach almost totemic status. In 2000, George Michael, Robbie Williams and Liam and Noel Gallagher all competed in a bidding war for the piano on which John Lennon composed ‘Imagine’, which eventually sold to George Michael for almost £1.4m. Michael Jackson’s red leather jacket from the Thriller video also went for over £1m at auction in 2011 whilst the cardigan Kurt Cobain wore in Nirvana’s 1993 MTV Unplugged performance fetched £93,000 in 2015. The memorabilia trade can sometimes seem more akin to dealing in relics, with teeth, locks of hair and the most banal of doodled notes fervently pursued by collectors and super-fans.

This commercial appetite for even the most obscure souvenirs from the careers of legendary musicians has, however, spawned a lucrative market for fakes and forgeries. These come in all shapes and sizes; some, created by cynical amateurs, are fairly easy to spot; others, painstakingly faked by individuals with an encyclopaedic knowledge of both music history and the memorabilia industry, can pose more of a challenge to authentication. Often accompanied by elaborately fabricated provenances, it can take both inventive research, specialist industry contacts and an instinct for authenticity to sniff out a fake.

In 2014 Peter Harrington acquired an ‘Original Bob Dylan artwork’ from Special Auction Services, an auction house which specialises in music memorabilia. As any Dylan fan or memorabilia collector will know, a previously unknown artwork by Dylan is a hugely exciting prospect, and we were enthusiastic to learn more about our purchase. The piece, titled ‘New York Slate’, was accompanied by a three-page manuscript provenance which purported that it was an earlier rejected artwork by Dylan intended for use as the album cover of The Band’s Music from Big Pink. It was apparently produced during the period in which Dylan was holed up in the eponymous house in Woodstock, NY, recovering from a motorcycle accident and recording songs with The Band in the basement. The story went that The Band opted for the brighter, more abstract acrylic painting which became the famous album cover, over this sombre pastel offering, but that this piece was eventually reproduced in the programme for the Last Waltz, The Band’s farewell concert at Winterland Ballroom in San Francisco in 1976, and filmed by Martin Scorsese for the documentary of the same name. On the reverse, the artwork bears the signatures of two of the members of The Band, Levon Helm and Rick Danko, in silver pen, The Band’s one-time road manager Joseph Forno Jr, and Bob Dylan’s own inked signature dated ‘68’. The item description in the auction house catalogue specifically mentioned that this piece had been retained by Levon Helm and had survived a fire at his house in Woodstock, in the early 90s before being sold to the present owner.

 

“Big Pink”, home of The Band in late 60s, located at West Saugerties (near Woodstock), USA. It was to this house that Bob Dylan would eventually retreat to write songs and play them and try others, in its large basement. By johndan (Big Pink) [CC BY 2.0 (http://creativecommons.org/licenses/by/2.0)], via Wikimedia Commons

In the course of researching this item for our own cataloguing purposes, our attention was caught by several features of the piece and its provenance that caused suspicion. “With items such as this, you have to look for the facts that can be categorically proved or disproved” says Glenn Mitchell of Peter Harrington, who worked on researching this piece. We began by trying to track down the Last Waltz programme mentioned in the item’s description, which would at the very least have authenticated the connection between this artwork and The Band. Glenn reached out to contact Jeff Gold, an LA-based former Executive Vice President/General Manager of Warner Bros. and owner of fine music collectibles business Recordmecca. Jeff is also recognised as the leading expert in Bob Dylan rarities, recently acting as advisor to Dylan’s management in the sale of the singer-songwriter’s archive to the University of Tulsa. He told us that he was not aware of any such programme having existed and voiced his doubts as to the piece’s legitimacy. He offered to put us in touch with Joseph Forno Jr, The Band’s former road manager, with whom he had previously corresponded, and who would be able to tell us if he remembered this artwork or had signed his name to it.

Joe Forno was enormously helpful. While he did not act as The Band’s manager until 1985, he knew all the members in 1968, during the period of Dylan’s residence in Big Pink. His father was also an important member of the Woodstock community, a well-known local businessman and Justice of the Peace, who “got to know the members of The Band very well and did a lot to keep them out of trouble”. With regards to the artwork, he responded:

First, I’ve never heard that Bob Dylan created an alternative painting for the Band’s first cover. It is entirely possible he did, but I’ve never heard that. From 1986 thru 1994, including the time of the fire that destroyed Levon’s home and studio, I spent more time with Levon than anyone. I was also there the night of the fire in 1991 and rarely left his side for the next year until he moved into the “barn” that I was in charge of rebuilding with contractor Paul Shultis Jr.  Nothing survived the fire except for the people in the house, Levon and Sandy Helm, his Dad Jasper Diamond and Carolyn Szelest, wife of the late piano player Stan Szelest. Levon had nothing but his bathrobe and a pair of cowboy boots. I was at the house every day after the fire. No painting survived the fire. I never saw the painting. There was a concrete vault that was water damaged and contained recorded tapes from the RCO era. They were removed to a vault I owned and cataloged and later returned to Levon’s new studio. No paintings or art was in the vault, and that would have been the only place anything could have survived.

 

Details of the signatures which appear on the reverse of the piece

 

Joe also provided us with samples of Levon Helm’s signature, which did not match that on the reverse of the piece, and told us that his own alleged autograph thereon was “not even close to my normal signature”.

Jeff Gold was also able to pass on other important contacts to us, who were able to help corroborate the mounting evidence that this artwork was an elaborate fake. Cheryl Pawelski, co-producer of The Band’s boxset, all of their reissues, and a foremost expert on their output, confirmed that there had never been a program for The Last Waltz. We also consulted Roger Epperson, one of the foremost Rock autograph experts, who considered both the Levon Helm and Rick Danko signatures to be fakes. On top of this, the style, materials and size of this piece don’t seem concordant with other Dylan artworks from the time, which are predominantly large acrylic paintings on canvas.

 

Photograph of The Last Waltz, The Band with Bob Dylan and other guests performing I Shall Be Released. By David Gans (originally posted to Flickr as The Last Waltz) [CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons

Having discovered the item’s inauthenticity, we contacted Special Auction Services, detailing our findings. Auction houses, however, often contain clauses in their terms and conditions which protect them against errors or negligence in their cataloguing, and we were duly informed by Special Auction services that, with regards to their catalogues, “All descriptions, whether printed or oral, are statements of opinion not fact”. In short, they refused to take responsibility for auctioning a fake.

This cautionary tale shows how far forgers will go to defraud dealers and avid collectors, and how they can sometimes exploit an auction house’s less-than-rigorous approach to research. Fortunately, we were able to discover the spurious nature of this artwork, subjecting it to the same level of scrutiny as we do all the items we acquire, which is why we are able to assure customers of the legitimacy of everything we sell. The advantage of buying from a reputable dealer is not only in the application of skill and experience we apply when in research and cataloguing, but also in that fact that we guarantee a full refund if there is any reason for dissatisfaction with an item. Unfortunately, not all auction houses exercise the same diligence and care in cataloguing, nor do they offer any protection to their customers if an error has been made on their part, which is why it is important to be vigilant about who you are dealing with in the rare book, artwork or memorabilia trade.

 

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.

China in Print17 – 19 November 2017

Peter Harrington Bookseller Blog -

Date: 17 – 19 November 2017

Location: Hong Kong Maritime Museum, Special Exhibitions Gallery, Central Ferry Pier No.8, Man Kwong St, Hong Kong

Website: http://www.chinainprint.com

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

Admission is free.

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { position:relative; float:left; width:94%; min-width:305px; margin:0 1% 0 1%; height:auto; min-height:30px; } #hugeit-contact-wrapper_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hover-active { border:2px dashed #2EA2CC; padding-left:2px; padding-right:2px; padding-bottom:2px; margin-left:-4px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.captcha-block { /*height:78px;*/ } /***fvpps***/ .free_video .portelemented .play-icss { position: relative; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; outline:none; } /***fvpps***/ #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.small-checkbox .checkbox-block input:checked + span{ width: 7px; height: 7px; border-radius:7px; top:3px; left:3px; } #huge-it-captcha-popup > div > label { display:inline-block; height:30px; width:150px; } #huge-it-captcha-popup > div > input { width:350px; } /*######################## END OFO CHOR ######################*/ body #hugeit-contact-wrapper_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_button_overlay{ background: rgba(241, 241, 241, 0.85); position: absolute; top: 0; left: 0; text-align: center; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; outline:none; vertical-align:top !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*/////INPUT TEXT FullName//////*/ #hugeit-contact-wrapper_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; margin:0 0 5px 0 !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label > .checkbox-block{ margin: 0 5px 0 0 !important; float: none !important; display: inline-block; vertical-align: middle !important; } jQuery(document).ready(function () { /*FRONT END PREVIEW FROM ADMIN JS*/ jQuery(".hugeit-contact-column-block input[type='file']").on('change',function(){ var value=jQuery(this).val().substr(jQuery(this).val().indexOf('fakepath')+9); jQuery(this).parent().find('input[type="text"]').val(value); }); jQuery(".hugeit-contact-column-block select").on('change',function(){ jQuery(this).prev('.textholder').val(jQuery(this).val()); }); }); Going to this fair? Name* Email* Request Submit jQuery.fn.ForceNumericOnly =function(){ return this.each(function() { jQuery(this).keydown(function(e){ var key = e.charCode || e.keyCode || 0; // allow backspace, tab, delete, enter, arrows, numbers and keypad numbers ONLY // home, end, period, and numpad decimal return ( key == 8 || key == 9 || key == 13 || key == 46 || key == 110 || key == 190 || (key >= 35 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 0) { var blnValid = false; for (var j = 0; j < _validFileExtensions.length; j++) { var sCurExtension = _validFileExtensions[j]; if (sFileName.substr(sFileName.length - sCurExtension.length, sCurExtension.length).toLowerCase() == sCurExtension.toLowerCase()) { blnValid = true; break; } } if (!blnValid) { return false; } } } } return true; } jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').not('.buttons-block').not('.captcha-block').each(function(){ if(jQuery(this).find('div.ready-phone-block input.readyPhone').attr('type')=='tel'){ phone_field=jQuery(this).find('div.ready-phone-block input.readyPhone'); if(phone_field.attr('data-required')=='required'){ phone_field.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parents('.hugeit-field-block').find('.hugeit-error-message').text(requiredError); jQuery(this).parents('.hugeit-field-block').find('label').addClass('error'); jQuery(this).parents('.hugeit-field-block').find('label>em.required-star').addClass('error'); }else{ jQuery(this).parents('.hugeit-field-block').find('.hugeit-error-message').text(''); jQuery(this).parents('.hugeit-field-block').find('label').removeClass('error'); jQuery(this).parents('.hugeit-field-block').find('label>em.required-star').removeClass('error'); } }); } phone_field.on('keypress keyup change blur',function(){ var phoneVal=jQuery(this).val(); jQuery(this).parents('.field-block').find('input[type="hidden"]').val(phoneVal); }) } if(jQuery(this).find('div.input-text-block >input').hasClass('required')){ var text_emailField=jQuery(this).find('input'); text_emailField.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.selectbox-block >select').hasClass('required')){ var selectField=jQuery(this).find('div.selectbox-block >select'); selectField.on('blur change',function(){ if(selectField.val()==null){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); } }); } if(jQuery(this).find('div.input-name-block >input.pl_name').hasClass('required')){ var text_fullnameField=jQuery(this).find('input.pl_name'); var text_fullnameField2=jQuery(this).find('input.pl_surname'); text_fullnameField.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField2.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); text_fullnameField2.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); } if(jQuery(this).find('div.textarea-block >textarea').hasClass('required')){ var textarea_field=jQuery(this).find('textarea'); textarea_field.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.email-block >input').attr('type')=='email'){ var emailField=jQuery(this).find('input'); emailField.on('blur',function(){ if(jQuery(this).val()!=''){ if(!isValidEmailAddress(jQuery(this).val())){ jQuery(this).parent().find('.hugeit-error-message').text(emailError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }) } if(jQuery(this).find('div.file-block >input[type="file"]').attr('type')=='file'){ var fileInput=jQuery(this).find('input[type="file"]'); var maxSize = fileInput.parent().find('input[name="MAX_FILE_SIZE"]').val(); fileInput.on('blur',function(){ var typeStr = jQuery(this).parent().find('input[name="fileTypeArr"]').val().trim(); typeStr = typeStr.replace(/\s+/g, ''); var _validFileExtensions = typeStr.split(","); if(fileInput.val()!=''){ var validREsult=Validate(jQuery('#huge_it_contact_form_8'),_validFileExtensions); if(!validREsult){ jQuery(this).parent().find('.hugeit-error-message').text(uploadTypeError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); }else{ if(fileInput.val()!=''){ var fileSize = fileInput.get(0).files[0].size; } if(jQuery(this).hasClass('required')&&jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else if(fileSize>maxSize){ jQuery(this).parent().find('.hugeit-error-message').text(uploadSizeError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }else{ if(jQuery(this).hasClass('required')&&jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }) } }); var captchaExists='no'; jQuery( "#huge_it_contact_form_8" ).on( "submit", function(e){ e.preventDefault(); var errorsAllow='yes'; var nVer = navigator.appVersion; var nAgt = navigator.userAgent; var browserName = navigator.appName; var fullVersion = ''+parseFloat(navigator.appVersion); var majorVersion = parseInt(navigator.appVersion,10); var nameOffset,verOffset,ix; // In Opera 15+, the true version is after "OPR/" if ((verOffset=nAgt.indexOf("OPR/"))!=-1) { browserName = "Opera"; fullVersion = nAgt.substring(verOffset+4); } // In older Opera, the true version is after "Opera" or after "Version" else if ((verOffset=nAgt.indexOf("Opera"))!=-1) { browserName = "Opera"; fullVersion = nAgt.substring(verOffset+6); if ((verOffset=nAgt.indexOf("Version"))!=-1) fullVersion = nAgt.substring(verOffset+8); } // In MSIE, the true version is after "MSIE" in userAgent else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) { browserName = "MSIE"; fullVersion = nAgt.substring(verOffset+5); } // In Chrome, the true version is after "Chrome" else if ((verOffset=nAgt.indexOf("Chrome"))!=-1) { browserName = "Chrome"; fullVersion = nAgt.substring(verOffset+7); } // In Safari, the true version is after "Safari" or after "Version" else if ((verOffset=nAgt.indexOf("Safari"))!=-1) { browserName = "Safari"; fullVersion = nAgt.substring(verOffset+7); if ((verOffset=nAgt.indexOf("Version"))!=-1) fullVersion = nAgt.substring(verOffset+8); } // In Firefox, the true version is after "Firefox" else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) { browserName = "Firefox"; fullVersion = nAgt.substring(verOffset+8); } // In most other browsers, "name/version" is at the end of userAgent else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < (verOffset=nAgt.lastIndexOf('/')) ) { browserName = nAgt.substring(nameOffset,verOffset); fullVersion = nAgt.substring(verOffset+1); if (browserName.toLowerCase()==browserName.toUpperCase()) { browserName = navigator.appName; } } // trim the fullVersion string at semicolon/space if present if ((ix=fullVersion.indexOf(";"))!=-1) fullVersion=fullVersion.substring(0,ix); if ((ix=fullVersion.indexOf(" "))!=-1) fullVersion=fullVersion.substring(0,ix); majorVersion = parseInt(''+fullVersion,10); if (isNaN(majorVersion)) { fullVersion = ''+parseFloat(navigator.appVersion); majorVersion = parseInt(navigator.appVersion,10); } jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').not('.buttons-block').each(function(){ if(jQuery(this).find('div.input-text-block >input').hasClass('required')){ var text_emailField=jQuery(this).find('input'); if(text_emailField.val().trim()==''){ text_emailField.parent().find('.hugeit-error-message').text(requiredError); text_emailField.parent().parent().find('label').addClass('error'); text_emailField.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ text_emailField.parent().find('.hugeit-error-message').text(''); text_emailField.parent().parent().find('label').removeClass('error'); } } if(jQuery(this).find('div.ready-phone-block input.readyPhone').attr('type')=='tel'){ phone_field=jQuery(this).find('div.ready-phone-block input.readyPhone'); if(phone_field.attr('data-required')=='required'){ if(phone_field.val().trim()==''){ phone_field.parents('.hugeit-field-block').find('.hugeit-error-message').text(requiredError); phone_field.parents('.hugeit-field-block').find('label').addClass('error'); phone_field.parents('.hugeit-field-block').find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ phone_field.parents('.hugeit-field-block').find('.hugeit-error-message').text(''); phone_field.parents('.hugeit-field-block').find('label').removeClass('error'); phone_field.parents('.hugeit-field-block').find('label>em.required-star').removeClass('error'); } } } if(jQuery(this).find('div.license-block input#ifChecked').hasClass('required')){ license_field=jQuery(this).find('div.license-block input[type="checkbox"]'); if(!license_field.is(':checked')){ license_field.parents('.hugeit-field-block').find('.hugeit-error-message').text('Please tick on checkbox'); errorsAllow='no'; }else{ license_field.parents('.hugeit-field-block').find('.hugeit-error-message').text(''); } } if(jQuery(this).find('div.input-name-block >input.pl_name').hasClass('required')){ var text_fullnameField=jQuery(this).find('input.pl_name'); var text_fullnameField2=jQuery(this).find('input.pl_surname'); if(text_fullnameField==''||text_fullnameField2.val().trim()==''){ text_fullnameField.parent().parent().find('.hugeit-error-message').text(requiredError); text_fullnameField.parent().parent().find('label').addClass('error'); text_fullnameField.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ text_fullnameField.parent().parent().find('.hugeit-error-message').text(''); text_fullnameField.parent().parent().find('label').removeClass('error'); text_fullnameField.parent().parent().find('label>em.required-star').removeClass('error'); } if(text_fullnameField2.val().trim()==''||text_fullnameField.val().trim()==''){ text_fullnameField2.parent().parent().find('.hugeit-error-message').text(requiredError); text_fullnameField2.parent().parent().find('label').addClass('error'); text_fullnameField2.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ text_fullnameField2.parent().parent().find('.hugeit-error-message').text(''); text_fullnameField2.parent().parent().find('label').removeClass('error'); text_fullnameField2.parent().parent().find('label>em.required-star').removeClass('error'); } } if(jQuery(this).find('div.textarea-block >textarea').hasClass('required')){ var textarea_field=jQuery(this).find('textarea'); if(textarea_field.val().trim()==''){ textarea_field.parent().find('.hugeit-error-message').text(requiredError); textarea_field.parent().parent().find('label').addClass('error'); textarea_field.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ textarea_field.parent().find('.hugeit-error-message').text(''); textarea_field.parent().parent().find('label').removeClass('error'); } } if(jQuery(this).find('div.email-block >input').attr('type')=='email'){ var emailField=jQuery(this).find('input'); emailField.on('blur',function(){ if(jQuery(this).val()!=''){ if(!isValidEmailAddress(jQuery(this).val())){ jQuery(this).parent().find('.hugeit-error-message').text(emailError); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); } } }) } if(jQuery(this).find('div.selectbox-block >select').hasClass('required')){ var selectField=jQuery(this).find('div.selectbox-block >select'); if(selectField.val()==null){ selectField.parent().find('.hugeit-error-message').text(requiredError); selectField.parent().parent().find('label').addClass('error'); selectField.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ selectField.parent().find('.hugeit-error-message').text(''); selectField.parent().parent().find('label').removeClass('error'); } } if(jQuery(this).find('div.file-block >input[type="file"]').attr('type')=='file'){ var fileInput=jQuery(this).find('input[type="file"]'); var maxSize = fileInput.parent().find('input[name="MAX_FILE_SIZE"]').val(); var typeStr = fileInput.parent().find('input[name="fileTypeArr"]').val().trim(); typeStr = typeStr.replace(/\s+/g, ''); var _validFileExtensions = typeStr.split(","); if(fileInput.val()!=''){ var validREsult=Validate(jQuery('#huge_it_contact_form_8'),_validFileExtensions); if(!validREsult){ fileInput.parent().find('.hugeit-error-message').text(uploadTypeError); fileInput.parent().parent().find('label').addClass('error'); fileInput.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ if(fileInput.val()!=''){ var fileSize = fileInput.get(0).files[0].size; } if(fileInput.hasClass('required')&&fileInput.val().trim()==''){ fileInput.parent().find('.hugeit-error-message').text(requiredError); fileInput.parent().parent().find('label').addClass('error'); fileInput.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else if(fileSize>maxSize){ fileInput.parent().find('.hugeit-error-message').text(uploadSizeError); fileInput.parent().parent().find('label').addClass('error'); fileInput.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ fileInput.parent().find('.hugeit-error-message').text(''); fileInput.parent().parent().find('label').removeClass('error'); } } }else{ if(fileInput.hasClass('required')&&fileInput.val().trim()==''){ fileInput.parent().find('.hugeit-error-message').text(requiredError); fileInput.parent().parent().find('label').addClass('error'); fileInput.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ fileInput.parent().find('.hugeit-error-message').text(''); fileInput.parent().parent().find('label').removeClass('error'); } } } if(jQuery(this).hasClass('captcha-block')){ captchaExists='yes'; } }); if(captchaExists=='yes'){ if(jQuery('#huge_it_contact_form_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').append(''+captchaError+'') } errorsAllow='no'; }else{ jQuery(this).find('div.captcha-block').find('span.hugeit-error-message').text(''); } } if(errorsAllow=='yes'){ var fd = new FormData(); var files_data = jQuery('.fileUploader'); var self=jQuery(this); var postData=self.serialize(); jQuery.each(jQuery(files_data), function(i, obj) { jQuery.each(obj.files,function(j,file){ fd.append(obj.name, file); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: '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); })

Boston International Antiquarian Book Fair10 – 12 November 2017

Peter Harrington Bookseller Blog -

Date: 10 – 12 November 2017

Location: John B. Hynes Veterans Memorial Convention Center

Website: https://bostonbookfair.com

 

/*########### 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); })

Seattle Antiquarian Book Fair14 – 15 October 2017

Peter Harrington Bookseller Blog -

Date: 14 – 15 October 2017

Location: Seattle Center Exhibition Hall, Seattle, USA

Website: http://www.seattlebookfair.com/

Dealers from across the United States, Canada, England and beyond offering for sale thousands of collectible books, prints, maps, manuscripts, autographs, photographs, posters, postcards, broadsides, fine bindings and ephemera.

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

Tickets are $5 at the door, good for both Saturday and Sunday entries.

/*########### PREVIEW CONTAINER ##############*/ .simple-captcha-block input[type='text']{ max-width: 300px; } .text-right{ text-align: right; } .text-left{ text-align: left; } #hugeit-contact-preview-container { position:relative; float:right; width:60%; padding:10px 0 10px 0; background:#fff; min-width:310px; } #hugeit-contact-wrapper_8 { margin:0 auto; min-width:315px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { position:relative; float:left; width:94%; min-width:305px; margin:0 1% 0 1%; height:auto; min-height:30px; } #hugeit-contact-wrapper_8 div.multicolumn .hugeit-contact-column-block { width:47%; padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block { padding-top: 10px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div { width:100%; padding:5px 0 5px 0; clear:both; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.custom-text-block{ font-size:16px !important; line-height:17px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-check-field, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hugeit-radio-field{ padding:5px 0 5px 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.buttons-block{ position: relative; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.hover-active { border:2px dashed #2EA2CC; padding-left:2px; padding-right:2px; padding-bottom:2px; margin-left:-4px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div.captcha-block { /*height:78px;*/ } /***fvpps***/ .free_video .portelemented .play-icss { position: relative; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; outline:none; } /***fvpps***/ #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label { display:block; width:38%; float:left; cursor: pointer; margin-right: 2%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block { display:inline-block; width:60%; vertical-align: super !important; line-height: 0; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block select, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block textarea, #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="text"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="password"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="name"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="email"], #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block input[type="number"] { width:100%; line-height: initial !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul { width:100%; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li { float:left; line-height: 1 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label {margin:0 10px 0 0;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul li label span.sublable{vertical-align: super;} #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul { position:relative; display:table !important; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label ul li { clear:both; padding:0 !important; margin:0 !important; } #hugeit-contact-wrapper_8 #huge_it_captcha { float:right; } /*FIELDS CUSTOM STYLES*/ /*radio + checkbox*/ #hugeit-contact-wrapper_8.big-radio .radio-block, #hugeit-contact-wrapper_8.big-checkbox .checkbox-block { width: 24px; height: 24px; border-radius:13px; } #hugeit-contact-wrapper_8.big-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.big-checkbox .checkbox-block input:checked + span { width: 12px; height: 12px; border-radius:6px; top:5px; left:5px; } #hugeit-contact-wrapper_8.medium-radio .radio-block,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block { width: 20px; height: 20px; border-radius:10px; } #hugeit-contact-wrapper_8.medium-radio .radio-block input:checked + span,#hugeit-contact-wrapper_8.medium-checkbox .checkbox-block input:checked + span{ width: 10px; height: 10px; border-radius:5px; top:4px; left:4px; } #hugeit-contact-wrapper_8.small-radio .radio-block.small,#hugeit-contact-wrapper_8.small-checkbox .checkbox-block { width: 15px; height: 15px; border-radius:8px; } #hugeit-contact-wrapper_8.small-radio .radio-block input:checked + span, #hugeit-contact-wrapper_8.small-checkbox .checkbox-block input:checked + span{ width: 7px; height: 7px; border-radius:7px; top:3px; left:3px; } #huge-it-captcha-popup > div > label { display:inline-block; height:30px; width:150px; } #huge-it-captcha-popup > div > input { width:350px; } /*######################## END OFO CHOR ######################*/ body #hugeit-contact-wrapper_8 input, body #hugeit-contact-wrapper_8 textarea {padding:0; margin:0;} #hugeit-contact-wrapper_8 { width:100%; background:#fcfcfc; } #hugeit-contact-wrapper_8 > div { border:0px solid #DEDFE0; } #hugeit-contact-wrapper_8 > div > h3 { position:relative; display:block; clear:both !important; padding:5px 0 10px 1% !important; font-size:22px !important; line-height:22px !important; color:#FE5858 !important; margin: 10px 0 15px 0 !important; } /*LABELS*/ #hugeit-contact-wrapper_8 label { font-size:16px !important; line-height:16px !important; color:#3B3B3B; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; } #hugeit-contact-wrapper_8 .hugeit-field-block >label.error { color:#C2171D !important; } #hugeit-contact-wrapper_8 label em.required-star{ color: #FE5858; } #hugeit-contact-wrapper_8 label em.error{ color: #C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.hugeit-error-message{ font-size: 12px !important; color: #C2171D; line-height:16px !important; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; display: inline; vertical-align: top; padding-top: 5px; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_success_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#3DAD48; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_spam_msg{ font-size: 16px !important; display: block; text-align: center; vertical-align:super; font-family:Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif; color:#C2171D; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_button_overlay{ background: rgba(241, 241, 241, 0.85); position: absolute; top: 0; left: 0; text-align: center; } #hugeit-contact-wrapper_8 .hugeit-field-block span.huge_it_button_overlay>img#buttLoad{ width: 20px; height: 20px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsRightAlign{ text-align: right !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsAboveAlign{ width:100% !important; float:none !important; padding-bottom: 5px !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsAboveAlign { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsLabelHide{ display: none;! } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsLabelHide { width:100% !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div > label.formsInsideAlign{ display:none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .formsInsideAlign { width:100% !important; } /*FIELDS CUSTOM STYLES*/ /*############INPUT TEXT############*/ #hugeit-contact-wrapper_8 .input-text-block input, #hugeit-contact-wrapper_8 .input-text-block input:focus { height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; outline:none; vertical-align:top !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*/////INPUT TEXT FullName//////*/ #hugeit-contact-wrapper_8 .input-name-block{ font-size: 0 !important; } #hugeit-contact-wrapper_8 .input-name-block input, #hugeit-contact-wrapper_8 .input-name-block input:focus { width: 49% !important; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; padding:0 5px 0 5px !important; outline:none; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .input-name-block input:first-child, #hugeit-contact-wrapper_8 .input-name-block input:first-child:focus{ margin-right: 2% !important; } /*/////INPUT TEXT FullName//////*/ /*/////////*/ /*############ Phone Field############*/ #hugeit-contact-wrapper_8 .ready-phone-block input.readyPhone,.ready-phone-block input.readyPhone:focus { width: 100%; box-sizing:border-box; height:24px; background:#FFFFFF; border:2px solid #DEDFE0 !important; box-shadow:none !important ; border-radius:3px; font-size:12px; color:#393939; margin:0 !important; outline:none; padding-left: 48px; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.hide{ display: none !important; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div ul.country-list{ display: block !important; z-index: 10; } #hugeit-contact-wrapper_8 .hugeit-contact-column-block > div .field-block ul.country-list li{ float: none !important; margin: 0 !important; } /*############TEXTAREA############*/ #hugeit-contact-wrapper_8 .textarea-block textarea { background:#FFFFFF; border:1px solid #C7C5C5; border-radius:1px; font-size:12px; color:#393939; margin:0 !important; padding:0 0 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } /*############CHECKBOX RADIOBOX############ */ #hugeit-contact-wrapper_8 .hugeit-checkbox-list { list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li, #hugeit-contact-wrapper_8 .hugeit-radiobox-list li { margin:0 0 6px 0 !important; padding:0 !important; list-style:none; } #hugeit-contact-wrapper_8 .hugeit-checkbox-list li label , #hugeit-contact-wrapper_8 .hugeit-radiobox-list li label { cursor:pointer; } #hugeit-contact-wrapper_8 .radio-block, #hugeit-contact-wrapper_8 .checkbox-block { position:relative; float:left; margin:0 5px 0 5px !important; display: block; } #hugeit-contact-wrapper_8 .radio-block input, #hugeit-contact-wrapper_8 .checkbox-block input { visibility:hidden; position:absolute; top:0; left:0; } #hugeit-contact-wrapper_8 .radio-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; cursor:pointer; } #hugeit-contact-wrapper_8 .checkbox-block i { display:inline-block; float:left; width:20px; color:#C6C3C3; } #hugeit-contact-wrapper_8.big-radio .radio-block i , #hugeit-contact-wrapper_8.big-checkbox .checkbox-block i { font-size:24px; } #hugeit-contact-wrapper_8.medium-radio .radio-block i , #hugeit-contact-wrapper_8.medium-checkbox .checkbox-block i { font-size:20px; } #hugeit-contact-wrapper_8.small-radio .radio-block i , #hugeit-contact-wrapper_8.small-checkbox .checkbox-block i { font-size:15px; } #hugeit-contact-wrapper_8 .radio-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8.checkbox-block i:hover { color:#A9A6A6; } #hugeit-contact-wrapper_8 .radio-block i.active, #hugeit-contact-wrapper_8 .checkbox-block i.active { display:none; }/*Voch checked inputi motic heracnumenq active@*/ #hugeit-contact-wrapper_8 .radio-block input:checked + i.active + i.passive, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active + i.passive { display:none; } #hugeit-contact-wrapper_8 .radio-block input:checked + i.active, #hugeit-contact-wrapper_8 .radio-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active, #hugeit-contact-wrapper_8 .checkbox-block input:checked + i.active:hover { display:inline-block; color:#FE5858; } /*############SELECTBOX#############*/ #hugeit-contact-wrapper_8 .selectbox-block { position:relative; height:29px; } #hugeit-contact-wrapper_8 .selectbox-block select { position:relative; height:26px; margin:1px 0 0 1px !important; opacity:0; z-index:2; } #hugeit-contact-wrapper_8 .selectbox-block .textholder { position:absolute; height:28px; width:90%; margin:0 !important; top:0; color:#393939; left:0; border:0; opacity: 1 !important; background:none; border:1px solid #C7C5C5; border-radius:2px; font-size:14px; background:#FFFFFF; padding:0 10% 0 5px !important; box-sizing: border-box; -moz-box-sizing: border-box; } #hugeit-contact-wrapper_8 .selectbox-block i { position:absolute; top:7.25px; right:10px; z-index:0; color:#FE5858; font-size:14px; } /*############FILE#############*/ #hugeit-contact-wrapper_8 .file-block { position:relative; cursor:pointer; } #hugeit-contact-wrapper_8 .file-block .textholder { position:relative; float:left; width:calc(60% - 7px) !important; height:28px; margin:0; border:1px solid #DEDFE0 !important; border-radius:2px !important; font-size:14px; color:#393939; background:#FFFFFF; padding:0 40% 0 5px !important; box-sizing: content-box; -moz-box-sizing: content-box; } #hugeit-contact-wrapper_8 .file-block .uploadbutton { position:absolute; top:0; right:0; width:38%; border-top:1px solid #DEDFE0 !important; border-bottom:1px solid #DEDFE0 !important; border-right:1px solid #DEDFE0 !important; border-top-right-radius:2px !important; border-bottom-right-radius:2px !important; height:28px; padding:0 1%; margin:0; overflow: hidden; font-size:14px; line-height:28px; color:#F7F4F4; background:#393939; text-align:center; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; box-sizing:content-box; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#F7F4F4; background:#393939; vertical-align: baseline; } #hugeit-contact-wrapper_8 .file-block .uploadbutton i { color:#DFDFDF; font-size:14px; vertical-align: baseline; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton { color:#FFFFFF; background:#FE5858; } #hugeit-contact-wrapper_8 .file-block:hover .uploadbutton i { color:#FFFFFF; } #hugeit-contact-wrapper_8 .file-block input[type='file'] { height:30px; width:100%; position:absolute; top:0; left:0; opacity:0; cursor:pointer; } /*###########CAPTCHA#############*/ #hugeit-contact-wrapper_8 .captcha-block div { margin-right:-1px; float: right; } /*############BUTTONS#############*/ #hugeit-contact-wrapper_8 .buttons-block { text-align:left; } #hugeit-contact-wrapper_8 .buttons-block button { height:auto; padding:8px 16px 8px 16px; cursor:pointer; text-transform: none; font-size:14px; } #hugeit-contact-wrapper_8 .buttons-block button.submit { color:#FFFFFF !important; background-color:#FE5858 !important; border:1px solid #FE5858 !important; border-radius:2px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; margin:0 0 5px 0 !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover { color:#FFFFFF !important; background:#FE473A !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.submit:hover i { color:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset { color:#FE5858 !important; background-color:#FFFFFF !important; border:1px solid #FE5858 !important; border-radius:1px !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; background-image: none !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover { color:#FE473A !important; background:#FFFFFF !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset i { color:#FFFFFF !important; font-size:14px !important; vertical-align: baseline !important; -webkit-transition: all 0.5s ease !important; transition: all 0.5s ease !important; } #hugeit-contact-wrapper_8 .buttons-block button.reset:hover i { color:#FFFFFF !important; } /*############ License Field ############*/ #hugeit-contact-wrapper_8 .hugeit-check-field >.license-block{ width: 100% !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label{ vertical-align: super !important; } #hugeit-contact-wrapper_8 .hugeit-check-field > .license-block >.secondary-label > .checkbox-block{ margin: 0 5px 0 0 !important; float: none !important; display: inline-block; vertical-align: middle !important; } jQuery(document).ready(function () { /*FRONT END PREVIEW FROM ADMIN JS*/ jQuery(".hugeit-contact-column-block input[type='file']").on('change',function(){ var value=jQuery(this).val().substr(jQuery(this).val().indexOf('fakepath')+9); jQuery(this).parent().find('input[type="text"]').val(value); }); jQuery(".hugeit-contact-column-block select").on('change',function(){ jQuery(this).prev('.textholder').val(jQuery(this).val()); }); }); Going to this fair? Name* Email* Request Submit jQuery.fn.ForceNumericOnly =function(){ return this.each(function() { jQuery(this).keydown(function(e){ var key = e.charCode || e.keyCode || 0; // allow backspace, tab, delete, enter, arrows, numbers and keypad numbers ONLY // home, end, period, and numpad decimal return ( key == 8 || key == 9 || key == 13 || key == 46 || key == 110 || key == 190 || (key >= 35 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); }); }); }; jQuery(document).ready(function(){ var requiredError='Please Fill This Field'; var captchaError='Please tick on Captcha box'; var emailError='Incorrect Email'; var uploadTypeError='Unacceptable file type'; var uploadSizeError='Exceeds limits on uploaded file'; function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i); return pattern.test(emailAddress); } function Validate(oForm,_validFileExtensions) { var arrInputs = document.getElementsByTagName("input"); for (var i = 0; i < arrInputs.length; i++) { var oInput = arrInputs[i]; if (oInput.type == "file") { var sFileName = oInput.value; if (sFileName.length > 0) { var blnValid = false; for (var j = 0; j < _validFileExtensions.length; j++) { var sCurExtension = _validFileExtensions[j]; if (sFileName.substr(sFileName.length - sCurExtension.length, sCurExtension.length).toLowerCase() == sCurExtension.toLowerCase()) { blnValid = true; break; } } if (!blnValid) { return false; } } } } return true; } jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').not('.buttons-block').not('.captcha-block').each(function(){ if(jQuery(this).find('div.ready-phone-block input.readyPhone').attr('type')=='tel'){ phone_field=jQuery(this).find('div.ready-phone-block input.readyPhone'); if(phone_field.attr('data-required')=='required'){ phone_field.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parents('.hugeit-field-block').find('.hugeit-error-message').text(requiredError); jQuery(this).parents('.hugeit-field-block').find('label').addClass('error'); jQuery(this).parents('.hugeit-field-block').find('label>em.required-star').addClass('error'); }else{ jQuery(this).parents('.hugeit-field-block').find('.hugeit-error-message').text(''); jQuery(this).parents('.hugeit-field-block').find('label').removeClass('error'); jQuery(this).parents('.hugeit-field-block').find('label>em.required-star').removeClass('error'); } }); } phone_field.on('keypress keyup change blur',function(){ var phoneVal=jQuery(this).val(); jQuery(this).parents('.field-block').find('input[type="hidden"]').val(phoneVal); }) } if(jQuery(this).find('div.input-text-block >input').hasClass('required')){ var text_emailField=jQuery(this).find('input'); text_emailField.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.selectbox-block >select').hasClass('required')){ var selectField=jQuery(this).find('div.selectbox-block >select'); selectField.on('blur change',function(){ if(selectField.val()==null){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); } }); } if(jQuery(this).find('div.input-name-block >input.pl_name').hasClass('required')){ var text_fullnameField=jQuery(this).find('input.pl_name'); var text_fullnameField2=jQuery(this).find('input.pl_surname'); text_fullnameField.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField2.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); text_fullnameField2.on('blur',function(){ if(jQuery(this).val().trim()==''||text_fullnameField.val().trim()==''){ jQuery(this).parent().parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }); } if(jQuery(this).find('div.textarea-block >textarea').hasClass('required')){ var textarea_field=jQuery(this).find('textarea'); textarea_field.on('blur',function(){ if(jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } }) } if(jQuery(this).find('div.email-block >input').attr('type')=='email'){ var emailField=jQuery(this).find('input'); emailField.on('blur',function(){ if(jQuery(this).val()!=''){ if(!isValidEmailAddress(jQuery(this).val())){ jQuery(this).parent().find('.hugeit-error-message').text(emailError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }) } if(jQuery(this).find('div.file-block >input[type="file"]').attr('type')=='file'){ var fileInput=jQuery(this).find('input[type="file"]'); var maxSize = fileInput.parent().find('input[name="MAX_FILE_SIZE"]').val(); fileInput.on('blur',function(){ var typeStr = jQuery(this).parent().find('input[name="fileTypeArr"]').val().trim(); typeStr = typeStr.replace(/\s+/g, ''); var _validFileExtensions = typeStr.split(","); if(fileInput.val()!=''){ var validREsult=Validate(jQuery('#huge_it_contact_form_8'),_validFileExtensions); if(!validREsult){ jQuery(this).parent().find('.hugeit-error-message').text(uploadTypeError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); }else{ if(fileInput.val()!=''){ var fileSize = fileInput.get(0).files[0].size; } if(jQuery(this).hasClass('required')&&jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else if(fileSize>maxSize){ jQuery(this).parent().find('.hugeit-error-message').text(uploadSizeError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }else{ if(jQuery(this).hasClass('required')&&jQuery(this).val().trim()==''){ jQuery(this).parent().find('.hugeit-error-message').text(requiredError); jQuery(this).parent().parent().find('label').addClass('error'); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); jQuery(this).parent().parent().find('label').removeClass('error'); jQuery(this).parent().parent().find('label>em.required-star').removeClass('error'); } } }) } }); var captchaExists='no'; jQuery( "#huge_it_contact_form_8" ).on( "submit", function(e){ e.preventDefault(); var errorsAllow='yes'; var nVer = navigator.appVersion; var nAgt = navigator.userAgent; var browserName = navigator.appName; var fullVersion = ''+parseFloat(navigator.appVersion); var majorVersion = parseInt(navigator.appVersion,10); var nameOffset,verOffset,ix; // In Opera 15+, the true version is after "OPR/" if ((verOffset=nAgt.indexOf("OPR/"))!=-1) { browserName = "Opera"; fullVersion = nAgt.substring(verOffset+4); } // In older Opera, the true version is after "Opera" or after "Version" else if ((verOffset=nAgt.indexOf("Opera"))!=-1) { browserName = "Opera"; fullVersion = nAgt.substring(verOffset+6); if ((verOffset=nAgt.indexOf("Version"))!=-1) fullVersion = nAgt.substring(verOffset+8); } // In MSIE, the true version is after "MSIE" in userAgent else if ((verOffset=nAgt.indexOf("MSIE"))!=-1) { browserName = "MSIE"; fullVersion = nAgt.substring(verOffset+5); } // In Chrome, the true version is after "Chrome" else if ((verOffset=nAgt.indexOf("Chrome"))!=-1) { browserName = "Chrome"; fullVersion = nAgt.substring(verOffset+7); } // In Safari, the true version is after "Safari" or after "Version" else if ((verOffset=nAgt.indexOf("Safari"))!=-1) { browserName = "Safari"; fullVersion = nAgt.substring(verOffset+7); if ((verOffset=nAgt.indexOf("Version"))!=-1) fullVersion = nAgt.substring(verOffset+8); } // In Firefox, the true version is after "Firefox" else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) { browserName = "Firefox"; fullVersion = nAgt.substring(verOffset+8); } // In most other browsers, "name/version" is at the end of userAgent else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < (verOffset=nAgt.lastIndexOf('/')) ) { browserName = nAgt.substring(nameOffset,verOffset); fullVersion = nAgt.substring(verOffset+1); if (browserName.toLowerCase()==browserName.toUpperCase()) { browserName = navigator.appName; } } // trim the fullVersion string at semicolon/space if present if ((ix=fullVersion.indexOf(";"))!=-1) fullVersion=fullVersion.substring(0,ix); if ((ix=fullVersion.indexOf(" "))!=-1) fullVersion=fullVersion.substring(0,ix); majorVersion = parseInt(''+fullVersion,10); if (isNaN(majorVersion)) { fullVersion = ''+parseFloat(navigator.appVersion); majorVersion = parseInt(navigator.appVersion,10); } jQuery('#hugeit-contact-wrapper_8').find('.hugeit-field-block').not('.buttons-block').each(function(){ if(jQuery(this).find('div.input-text-block >input').hasClass('required')){ var text_emailField=jQuery(this).find('input'); if(text_emailField.val().trim()==''){ text_emailField.parent().find('.hugeit-error-message').text(requiredError); text_emailField.parent().parent().find('label').addClass('error'); text_emailField.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ text_emailField.parent().find('.hugeit-error-message').text(''); text_emailField.parent().parent().find('label').removeClass('error'); } } if(jQuery(this).find('div.ready-phone-block input.readyPhone').attr('type')=='tel'){ phone_field=jQuery(this).find('div.ready-phone-block input.readyPhone'); if(phone_field.attr('data-required')=='required'){ if(phone_field.val().trim()==''){ phone_field.parents('.hugeit-field-block').find('.hugeit-error-message').text(requiredError); phone_field.parents('.hugeit-field-block').find('label').addClass('error'); phone_field.parents('.hugeit-field-block').find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ phone_field.parents('.hugeit-field-block').find('.hugeit-error-message').text(''); phone_field.parents('.hugeit-field-block').find('label').removeClass('error'); phone_field.parents('.hugeit-field-block').find('label>em.required-star').removeClass('error'); } } } if(jQuery(this).find('div.license-block input#ifChecked').hasClass('required')){ license_field=jQuery(this).find('div.license-block input[type="checkbox"]'); if(!license_field.is(':checked')){ license_field.parents('.hugeit-field-block').find('.hugeit-error-message').text('Please tick on checkbox'); errorsAllow='no'; }else{ license_field.parents('.hugeit-field-block').find('.hugeit-error-message').text(''); } } if(jQuery(this).find('div.input-name-block >input.pl_name').hasClass('required')){ var text_fullnameField=jQuery(this).find('input.pl_name'); var text_fullnameField2=jQuery(this).find('input.pl_surname'); if(text_fullnameField==''||text_fullnameField2.val().trim()==''){ text_fullnameField.parent().parent().find('.hugeit-error-message').text(requiredError); text_fullnameField.parent().parent().find('label').addClass('error'); text_fullnameField.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ text_fullnameField.parent().parent().find('.hugeit-error-message').text(''); text_fullnameField.parent().parent().find('label').removeClass('error'); text_fullnameField.parent().parent().find('label>em.required-star').removeClass('error'); } if(text_fullnameField2.val().trim()==''||text_fullnameField.val().trim()==''){ text_fullnameField2.parent().parent().find('.hugeit-error-message').text(requiredError); text_fullnameField2.parent().parent().find('label').addClass('error'); text_fullnameField2.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ text_fullnameField2.parent().parent().find('.hugeit-error-message').text(''); text_fullnameField2.parent().parent().find('label').removeClass('error'); text_fullnameField2.parent().parent().find('label>em.required-star').removeClass('error'); } } if(jQuery(this).find('div.textarea-block >textarea').hasClass('required')){ var textarea_field=jQuery(this).find('textarea'); if(textarea_field.val().trim()==''){ textarea_field.parent().find('.hugeit-error-message').text(requiredError); textarea_field.parent().parent().find('label').addClass('error'); textarea_field.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ textarea_field.parent().find('.hugeit-error-message').text(''); textarea_field.parent().parent().find('label').removeClass('error'); } } if(jQuery(this).find('div.email-block >input').attr('type')=='email'){ var emailField=jQuery(this).find('input'); emailField.on('blur',function(){ if(jQuery(this).val()!=''){ if(!isValidEmailAddress(jQuery(this).val())){ jQuery(this).parent().find('.hugeit-error-message').text(emailError); jQuery(this).parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ jQuery(this).parent().find('.hugeit-error-message').text(''); } } }) } if(jQuery(this).find('div.selectbox-block >select').hasClass('required')){ var selectField=jQuery(this).find('div.selectbox-block >select'); if(selectField.val()==null){ selectField.parent().find('.hugeit-error-message').text(requiredError); selectField.parent().parent().find('label').addClass('error'); selectField.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ selectField.parent().find('.hugeit-error-message').text(''); selectField.parent().parent().find('label').removeClass('error'); } } if(jQuery(this).find('div.file-block >input[type="file"]').attr('type')=='file'){ var fileInput=jQuery(this).find('input[type="file"]'); var maxSize = fileInput.parent().find('input[name="MAX_FILE_SIZE"]').val(); var typeStr = fileInput.parent().find('input[name="fileTypeArr"]').val().trim(); typeStr = typeStr.replace(/\s+/g, ''); var _validFileExtensions = typeStr.split(","); if(fileInput.val()!=''){ var validREsult=Validate(jQuery('#huge_it_contact_form_8'),_validFileExtensions); if(!validREsult){ fileInput.parent().find('.hugeit-error-message').text(uploadTypeError); fileInput.parent().parent().find('label').addClass('error'); fileInput.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ if(fileInput.val()!=''){ var fileSize = fileInput.get(0).files[0].size; } if(fileInput.hasClass('required')&&fileInput.val().trim()==''){ fileInput.parent().find('.hugeit-error-message').text(requiredError); fileInput.parent().parent().find('label').addClass('error'); fileInput.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else if(fileSize>maxSize){ fileInput.parent().find('.hugeit-error-message').text(uploadSizeError); fileInput.parent().parent().find('label').addClass('error'); fileInput.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ fileInput.parent().find('.hugeit-error-message').text(''); fileInput.parent().parent().find('label').removeClass('error'); } } }else{ if(fileInput.hasClass('required')&&fileInput.val().trim()==''){ fileInput.parent().find('.hugeit-error-message').text(requiredError); fileInput.parent().parent().find('label').addClass('error'); fileInput.parent().parent().find('label>em.required-star').addClass('error'); errorsAllow='no'; }else{ fileInput.parent().find('.hugeit-error-message').text(''); fileInput.parent().parent().find('label').removeClass('error'); } } } if(jQuery(this).hasClass('captcha-block')){ captchaExists='yes'; } }); if(captchaExists=='yes'){ if(jQuery('#huge_it_contact_form_8').attr('verified')==0){ if(!jQuery(this).find('div.captcha-block #huge_it_captcha_8').find('span').length){ jQuery(this).find('div.captcha-block #huge_it_captcha_8').append(''+captchaError+'') } errorsAllow='no'; }else{ jQuery(this).find('div.captcha-block').find('span.hugeit-error-message').text(''); } } if(errorsAllow=='yes'){ var fd = new FormData(); var files_data = jQuery('.fileUploader'); var self=jQuery(this); var postData=self.serialize(); jQuery.each(jQuery(files_data), function(i, obj) { jQuery.each(obj.files,function(j,file){ fd.append(obj.name, file); }) }); var time=jQuery('.hugeit_captcha_refresh_button').attr('data-time'); fd.append('action', 'hugeit_validation_action'); fd.append('formId', '8'); fd.append('browser',browserName); fd.append('nonce', huge_it_obj.nonce); fd.append('postData', postData); fd.append('time', time); jQuery.ajax({ type: 'POST', url: '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); })

Pages