Best JavaScript code snippet using stryker-parent
testvalues.js
Source:testvalues.js
1var textShort = 'short text',2 textMedium = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ultrices sem tincidunt ligula fringilla vestibulum. Proin fringilla iaculis orci, et pellentesque odio cursus et. Nam laoreet venenatis lorem, id pharetra arcu lacinia et. Sed vulputate odio vel sapien mollis a bibendum magna lacinia. Phasellus posuere velit et purus porttitor ac bibendum metus viverra. Cras at magna massa, non pretium metus. Aliquam erat tortor, aliquet feugiat dapibus vitae, adipiscing ac nibh. Etiam non erat nec purus iaculis pulvinar. Suspendisse eu nulla a tortor convallis egestas. Nullam tellus mi, dignissim et accumsan nec, gravida hendrerit orci. Integer convallis tempus diam, quis imperdiet mauris bibendum nec. Integer adipiscing metus dolor, et porttitor eros. Aliquam ac ipsum ipsum. Nullam congue nulla sit amet ligula fringilla accumsan venenatis ipsum tempor.\3\4Donec quis est et nisi rutrum posuere eget commodo justo. Vestibulum neque neque, suscipit elementum placerat in, tempus ut sapien. Nulla blandit, enim convallis semper facilisis, orci augue vehicula nisi, id elementum lectus dui a nunc. Nam mollis tempus lobortis. Duis non metus id enim euismod luctus. Praesent non velit sed nunc egestas aliquam id et velit. Proin porttitor convallis dapibus. Nullam id orci at neque tempus sagittis sed eu purus. Aenean venenatis tortor vel ipsum gravida ultricies. Phasellus interdum, neque non consequat malesuada, augue neque scelerisque mi, a imperdiet nibh augue posuere nunc. Nullam lobortis massa vel neque volutpat a ultrices ipsum volutpat. Duis non purus nisi, nec fringilla massa.\5\6In et ante ipsum. Nam a lectus libero, quis condimentum orci. Mauris volutpat consectetur feugiat. Praesent non leo tellus. Donec luctus tempus ultrices. Nunc vitae ante metus, a commodo nibh. Maecenas eget lacus massa, dapibus venenatis felis. Ut sit amet turpis a lectus tristique placerat et sed lectus. Aenean in diam vitae orci molestie malesuada. Nam vel leo purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed sit amet tellus lacus. Nulla congue egestas libero, vel tristique purus molestie vel.\7\8Mauris adipiscing, ligula quis dignissim sodales, dui massa laoreet ipsum, sit amet interdum sem dui et nunc. In at cursus velit. Mauris ut turpis tortor, at bibendum enim. Phasellus posuere lectus orci, id dignissim diam. Sed commodo, purus venenatis malesuada euismod, dolor augue semper diam, quis feugiat orci est tempor sem. Morbi quis lobortis orci. Nullam non arcu nec magna volutpat vulputate sit amet non lectus. Nullam gravida dictum quam, quis ultricies odio tempus quis. Sed sed elit ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Mauris fermentum, neque a eleifend molestie, mauris eros convallis libero, sit amet mollis orci urna in velit. Integer ac est dui. Nunc ac suscipit lorem. Nunc nec erat sed nibh adipiscing posuere.\9\10Proin semper dui at turpis volutpat eget varius ante porta. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed congue justo tellus. Aenean eleifend, risus vel imperdiet hendrerit, massa erat convallis lacus, ac condimentum augue eros at massa. Nam libero felis, consequat sit amet suscipit ut, consequat sed nunc. Mauris in nulla tellus. Mauris vulputate velit in elit congue vehicula. Donec eget nibh quam. Curabitur quam nunc, tristique ac egestas nec, lobortis et metus. Aliquam lobortis malesuada erat, vitae pharetra nisi congue non. Mauris lacus turpis, vestibulum eu fermentum non, porttitor sed leo. Mauris egestas blandit sem non blandit. Nam laoreet orci vel metus varius luctus. Suspendisse fermentum, nisl sit amet fermentum porta, dolor eros rutrum mi, id aliquam nulla orci at lorem. Aliquam erat volutpat. Nullam tristique elementum purus eget euismod. Sed lectus purus, mattis eu fermentum sed, laoreet in metus. Maecenas volutpat sagittis eros eu laoreet. ",11 textLong = "The Project Gutenberg EBook of Faust, by Goethe\12\13This eBook is for the use of anyone anywhere at no cost and with\14almost no restrictions whatsoever. You may copy it, give it away or\15re-use it under the terms of the Project Gutenberg License included\16with this eBook or online at www.gutenberg.net\17\18\19Title: Faust\20\21Author: Goethe\22\23Release Date: December 25, 2004 [EBook #14460]\24\25Language: English\26\27Character set encoding: ISO-8859-1\28\29*** START OF THIS PROJECT GUTENBERG EBOOK FAUST ***\30\31\32\33\34Produced by Juliet Sutherland, Charles Bidwell and the PG Online\35Distributed Proofreading Team\36\37\38\39\40\41\42FAUST\43\44\45A TRAGEDY\46\47TRANSLATED FROM THE GERMAN\48\49OF\50\51GOETHE\52\53\54WITH NOTES\55\56BY\57\58CHARLES T BROOKS\59\60\61SEVENTH EDITION.\62\63BOSTON\64TICKNOR AND FIELDS\65\66MDCCCLXVIII.\67\68\69\70Entered according to Act of Congress, in the year 1856,\71by CHARLES T. BROOKS,\72In the Clerk's Office of the District Court\73of the District of Rhode Island.\74\75UNIVERSITY PRESS:\76WELCH, BIGELOW, AND COMPANY,\77CAMBRIDGE.\78\79\80\81\82TRANSLATOR'S PREFACE.\83\84\85Perhaps some apology ought to be given to English scholars, that is, those\86who do not know German, (to those, at least, who do not know what sort of\87a thing Faust is in the original,) for offering another translation to the\88public, of a poem which has been already translated, not only in a literal\89prose form, but also, twenty or thirty times, in metre, and sometimes with\90great spirit, beauty, and power.\91\92The author of the present version, then, has no knowledge that a rendering\93of this wonderful poem into the exact and ever-changing metre of the\94original has, until now, been so much as attempted. To name only one\95defect, the very best versions which he has seen neglect to follow the\96exquisite artist in the evidently planned and orderly intermixing of\97_male_ and _female_ rhymes, _i.e._ rhymes which fall on the last syllable\98and those which fall on the last but one. Now, every careful student of\99the versification of Faust must feel and see that Goethe did not\100intersperse the one kind of rhyme with the other, at random, as those\101translators do; who, also, give the female rhyme (on which the vivacity of\102dialogue and description often so much depends,) in so small a proportion.\103\104A similar criticism might be made of their liberty in neglecting Goethe's\105method of alternating different measures with each other.\106\107It seems as if, in respect to metre, at least, they had asked themselves,\108how would Goethe have written or shaped this in English, had that been his\109native language, instead of seeking _con amore_ (and _con fidelità_) as\110they should have done, to reproduce, both in spirit and in form, the\111movement, so free and yet orderly, of the singularly endowed and\112accomplished poet whom they undertook to represent.\113\114As to the objections which Hayward and some of his reviewers have\115instituted in advance against the possibility of a good and faithful\116metrical translation of a poem like Faust, they seem to the present\117translator full of paradox and sophistry. For instance, take this\118assertion of one of the reviewers: \"The sacred and mysterious union of\119thought with verse, twin-born and immortally wedded from the moment of\120their common birth, can never be understood by those who desire verse\121translations of good poetry.\" If the last part of this statement had read\122\"by those who can be contented with _prose_ translations of good poetry,\"\123the position would have been nearer the truth. This much we might well\124admit, that, if the alternative were either to have a poem like Faust in a\125metre different and glaringly different from the original, or to have it\126in simple and strong prose, then the latter alternative would be the one\127every tasteful and feeling scholar would prefer; but surely to every one\128who can read the original or wants to know how this great song _sung\129itself_ (as Carlyle says) out of Goethe's soul, a mere prose rendering\130must be, comparatively, a _corpus mortuum._\131\132The translator most heartily dissents from Hayward's assertion that a\133translator of Faust \"must sacrifice either metre or meaning.\" At least he\134flatters himself that he has made, in the main, (not a compromise between\135meaning and melody, though in certain instances he may have fallen into\136that, but) a combination of the meaning with the melody, which latter is\137so important, so vital a part of the lyric poem's meaning, in any worthy\138sense. \"No poetic translation,\" says Hayward's reviewer, already quoted,\139\"can give the rhythm and rhyme of the original; it can only substitute the\140rhythm and rhyme of the translator.\" One might just as well say \"no\141_prose_ translation can give the _sense and spirit_ of the original; it\142can only substitute the _sense and spirit of the words and phrases of the\143translator's language_;\" and then, these two assertions balancing each\144other, there will remain in the metrical translator's favor, that he may\145come as near to giving both the letter and the spirit, as the effects of\146the Babel dispersion will allow.\147\148As to the original creation, which he has attempted here to reproduce, the\149translator might say something, but prefers leaving his readers to the\150poet himself, as revealed in the poem, and to the various commentaries of\151which we have some accounts, at least, in English. A French translator of\152the poem speaks in his introduction as follows: \"This Faust, conceived by\153him in his youth, completed in ripe age, the idea of which he carried with\154him through all the commotions of his life, as Camoens bore his poem with\155him through the waves, this Faust contains him entire. The thirst for\156knowledge and the martyrdom of doubt, had they not tormented his early\157years? Whence came to him the thought of taking refuge in a supernatural\158realm, of appealing to invisible powers, which plunged him, for a\159considerable time, into the dreams of Illuminati and made him even invent\160a religion? This irony of Mephistopheles, who carries on so audacious a\161game with the weakness and the desires of man, is it not the mocking,\162scornful side of the poet's spirit, a leaning to sullenness, which can be\163traced even into the earliest years of his life, a bitter leaven thrown\164into a strong soul forever by early satiety? The character of Faust\165especially, the man whose burning, untiring heart can neither enjoy\166fortune nor do without it, who gives himself unconditionally and watches\167himself with mistrust, who unites the enthusiasm of passion and the\168dejectedness of despair, is not this an eloquent opening up of the most\169secret and tumultuous part of the poet's soul? And now, to complete the\170image of his inner life, he has added the transcendingly sweet person of\171Margaret, an exalted reminiscence of a young girl, by whom, at the age of\172fourteen, he thought himself beloved, whose image ever floated round him,\173and has contributed some traits to each of his heroines. This heavenly\174surrender of a simple, good, and tender heart contrasts wonderfully with\175the sensual and gloomy passion of the lover, who, in the midst of his\176love-dreams, is persecuted by the phantoms of his imagination and by the\177nightmares of thought, with those sorrows of a soul, which is crushed, but\178not extinguished, which is tormented by the invincible want of happiness\179and the bitter feeling, how hard a thing it is to receive or to bestow.\"\180\181\182\183\184DEDICATION.[1]\185\186Once more ye waver dreamily before me,\187Forms that so early cheered my troubled eyes!\188To hold you fast doth still my heart implore me?\189Still bid me clutch the charm that lures and flies?\190Ye crowd around! come, then, hold empire o'er me,\191As from the mist and haze of thought ye rise;\192The magic atmosphere, your train enwreathing,\193Through my thrilled bosom youthful bliss is breathing.\194\195Ye bring with you the forms of hours Elysian,\196And shades of dear ones rise to meet my gaze;\197First Love and Friendship steal upon my vision\198Like an old tale of legendary days;\199Sorrow renewed, in mournful repetition,\200Runs through life's devious, labyrinthine ways;\201And, sighing, names the good (by Fortune cheated\202Of blissful hours!) who have before me fleeted.\203\204These later songs of mine, alas! will never\205Sound in their ears to whom the first were sung!\206Scattered like dust, the friendly throng forever!\207Mute the first echo that so grateful rung!\208To the strange crowd I sing, whose very favor\209Like chilling sadness on my heart is flung;\210And all that kindled at those earlier numbers\211Roams the wide earth or in its bosom slumbers.\212\213And now I feel a long-unwonted yearning\214For that calm, pensive spirit-realm, to-day;\215Like an Aeolian lyre, (the breeze returning,)\216Floats in uncertain tones my lisping lay;\217Strange awe comes o'er me, tear on tear falls burning,\218The rigid heart to milder mood gives way!\219What I possess I see afar off lying,\220And what I lost is real and undying.\221\222\223\224\225PRELUDE\226\227IN THE THEATRE.\228\229\230 Manager. Dramatic Poet. Merry Person.\231\232_Manager_. You who in trouble and distress\233Have both held fast your old allegiance,\234What think ye? here in German regions\235Our enterprise may hope success?\236To please the crowd my purpose has been steady,\237Because they live and let one live at least.\238The posts are set, the boards are laid already,\239And every one is looking for a feast.\240They sit, with lifted brows, composed looks wearing,\241Expecting something that shall set them staring.\242I know the public palate, that's confest;\243Yet never pined so for a sound suggestion;\244True, they are not accustomed to the best,\245But they have read a dreadful deal, past question.\246How shall we work to make all fresh and new,\247Acceptable and profitable, too?\248For sure I love to see the torrent boiling,\249When towards our booth they crowd to find a place,\250Now rolling on a space and then recoiling,\251Then squeezing through the narrow door of grace:\252Long before dark each one his hard-fought station\253In sight of the box-office window takes,\254And as, round bakers' doors men crowd to escape starvation,\255For tickets here they almost break their necks.\256This wonder, on so mixed a mass, the Poet\257Alone can work; to-day, my friend, O, show it!\258\259_Poet_. Oh speak not to me of that motley ocean,\260Whose roar and greed the shuddering spirit chill!\261Hide from my sight that billowy commotion\262That draws us down the whirlpool 'gainst our will.\263No, lead me to that nook of calm devotion,\264Where blooms pure joy upon the Muses' hill;\265Where love and friendship aye create and cherish,\266With hand divine, heart-joys that never perish.\267Ah! what, from feeling's deepest fountain springing,\268Scarce from the stammering lips had faintly passed,\269Now, hopeful, venturing forth, now shyly clinging,\270To the wild moment's cry a prey is cast.\271Oft when for years the brain had heard it ringing\272It comes in full and rounded shape at last.\273What shines, is born but for the moment's pleasure;\274The genuine leaves posterity a treasure.\275\276_Merry Person_. Posterity! I'm sick of hearing of it;\277Supposing I the future age would profit,\278Who then would furnish ours with fun?\279For it must have it, ripe and mellow;\280The presence of a fine young fellow,\281Is cheering, too, methinks, to any one.\282Whoso can pleasantly communicate,\283Will not make war with popular caprices,\284For, as the circle waxes great,\285The power his word shall wield increases.\286Come, then, and let us now a model see,\287Let Phantasy with all her various choir,\288Sense, reason, passion, sensibility,\289But, mark me, folly too! the scene inspire.\290\291_Manager_. But the great point is action! Every one\292Comes as spectator, and the show's the fun.\293Let but the plot be spun off fast and thickly,\294So that the crowd shall gape in broad surprise,\295Then have you made a wide impression quickly,\296You are the man they'll idolize.\297The mass can only be impressed by masses;\298Then each at last picks out his proper part.\299Give much, and then to each one something passes,\300And each one leaves the house with happy heart.\301Have you a piece, give it at once in pieces!\302Such a ragout your fame increases;\303It costs as little pains to play as to invent.\304But what is gained, if you a whole present?\305Your public picks it presently to pieces.\306\307_Poet_. You do not feel how mean a trade like that must be!\308In the true Artist's eyes how false and hollow!\309Our genteel botchers, well I see,\310Have given the maxims that you follow.\311\312_Manager_. Such charges pass me like the idle wind;\313A man who has right work in mind\314Must choose the instruments most fitting.\315Consider what soft wood you have for splitting,\316And keep in view for whom you write!\317If this one from _ennui_ seeks flight,\318That other comes full from the groaning table,\319Or, the worst case of all to cite,\320From reading journals is for thought unable.\321Vacant and giddy, all agog for wonder,\322As to a masquerade they wing their way;\323The ladies give themselves and all their precious plunder\324And without wages help us play.\325On your poetic heights what dream comes o'er you?\326What glads a crowded house? Behold\327Your patrons in array before you!\328One half are raw, the other cold.\329One, after this play, hopes to play at cards,\330One a wild night to spend beside his doxy chooses,\331Poor fools, why court ye the regards,\332For such a set, of the chaste muses?\333I tell you, give them more and ever more and more,\334And then your mark you'll hardly stray from ever;\335To mystify be your endeavor,\336To satisfy is labor sore....\337What ails you? Are you pleased or pained? What notion----\338\339_Poet_. Go to, and find thyself another slave!\340What! and the lofty birthright Nature gave,\341The noblest talent Heaven to man has lent,\342Thou bid'st the Poet fling to folly's ocean!\343How does he stir each deep emotion?\344How does he conquer every element?\345But by the tide of song that from his bosom springs,\346And draws into his heart all living things?\347When Nature's hand, in endless iteration,\348The thread across the whizzing spindle flings,\349When the complex, monotonous creation\350Jangles with all its million strings:\351Who, then, the long, dull series animating,\352Breaks into rhythmic march the soulless round?\353And, to the law of All each member consecrating,\354Bids one majestic harmony resound?\355Who bids the tempest rage with passion's power?\356The earnest soul with evening-redness glow?\357Who scatters vernal bud and summer flower\358Along the path where loved ones go?\359Who weaves each green leaf in the wind that trembles\360To form the wreath that merit's brow shall crown?\361Who makes Olympus fast? the gods assembles?\362The power of manhood in the Poet shown.\363\364_Merry Person_. Come, then, put forth these noble powers,\365And, Poet, let thy path of flowers\366Follow a love-adventure's winding ways.\367One comes and sees by chance, one burns, one stays,\368And feels the gradual, sweet entangling!\369The pleasure grows, then comes a sudden jangling,\370Then rapture, then distress an arrow plants,\371And ere one dreams of it, lo! _there_ is a romance.\372Give us a drama in this fashion!\373Plunge into human life's full sea of passion!\374Each lives it, few its meaning ever guessed,\375Touch where you will, 'tis full of interest.\376Bright shadows fleeting o'er a mirror,\377A spark of truth and clouds of error,\378By means like these a drink is brewed\379To cheer and edify the multitude.\380The fairest flower of the youth sit listening\381Before your play, and wait the revelation;\382Each melancholy heart, with soft eyes glistening,\383Draws sad, sweet nourishment from your creation;\384This passion now, now that is stirred, by turns,\385And each one sees what in his bosom burns.\386Open alike, as yet, to weeping and to laughter,\387They still admire the flights, they still enjoy the show;\388Him who is formed, can nothing suit thereafter;\389The yet unformed with thanks will ever glow.\390\391_Poet_. Ay, give me back the joyous hours,\392When I myself was ripening, too,\393When song, the fount, flung up its showers\394Of beauty ever fresh and new.\395When a soft haze the world was veiling,\396Each bud a miracle bespoke,\397And from their stems a thousand flowers I broke,\398Their fragrance through the vales exhaling.\399I nothing and yet all possessed,\400Yearning for truth and in illusion blest.\401Give me the freedom of that hour,\402The tear of joy, the pleasing pain,\403Of hate and love the thrilling power,\404Oh, give me back my youth again!\405\406_Merry Person_. Youth, my good friend, thou needest certainly\407When ambushed foes are on thee springing,\408When loveliest maidens witchingly\409Their white arms round thy neck are flinging,\410When the far garland meets thy glance,\411High on the race-ground's goal suspended,\412When after many a mazy dance\413In drink and song the night is ended.\414But with a free and graceful soul\415To strike the old familiar lyre,\416And to a self-appointed goal\417Sweep lightly o'er the trembling wire,\418There lies, old gentlemen, to-day\419Your task; fear not, no vulgar error blinds us.\420Age does not make us childish, as they say,\421But we are still true children when it finds us.\422\423_Manager_. Come, words enough you two have bandied,\424Now let us see some deeds at last;\425While you toss compliments full-handed,\426The time for useful work flies fast.\427Why talk of being in the humor?\428Who hesitates will never be.\429If you are poets (so says rumor)\430Now then command your poetry.\431You know full well our need and pleasure,\432We want strong drink in brimming measure;\433Brew at it now without delay!\434To-morrow will not do what is not done to-day.\435Let not a day be lost in dallying,\436But seize the possibility\437Right by the forelock, courage rallying,\438And forth with fearless spirit sallying,--\439Once in the yoke and you are free.\440 Upon our German boards, you know it,\441What any one would try, he may;\442Then stint me not, I beg, to-day,\443In scenery or machinery, Poet.\444With great and lesser heavenly lights make free,\445Spend starlight just as you desire;\446No want of water, rocks or fire\447Or birds or beasts to you shall be.\448So, in this narrow wooden house's bound,\449Stride through the whole creation's round,\450And with considerate swiftness wander\451From heaven, through this world, to the world down yonder.\452\453\454\455\456 PROLOGUE\457\458\459 IN HEAVEN.\460\461\462[THE LORD. THE HEAVENLY HOSTS _afterward_ MEPHISTOPHELES.\463_The three archangels_, RAPHAEL, GABRIEL, _and_ MICHAEL, _come forward_.]\464\465_Raphael_. The sun, in ancient wise, is sounding,\466 With brother-spheres, in rival song;\467And, his appointed journey rounding,\468 With thunderous movement rolls along.\469His look, new strength to angels lending,\470 No creature fathom can for aye;\471The lofty works, past comprehending,\472 Stand lordly, as on time's first day.\473\474_Gabriel_. And swift, with wondrous swiftness fleeting,\475 The pomp of earth turns round and round,\476The glow of Eden alternating\477 With shuddering midnight's gloom profound;\478Up o'er the rocks the foaming ocean\479 Heaves from its old, primeval bed,\480And rocks and seas, with endless motion,\481 On in the spheral sweep are sped.\482\483_Michael_. And tempests roar, glad warfare waging,\484 From sea to land, from land to sea,\485And bind round all, amidst their raging,\486 A chain of giant energy.\487There, lurid desolation, blazing,\488 Foreruns the volleyed thunder's way:\489Yet, Lord, thy messengers[2] are praising\490 The mild procession of thy day.\491\492_All Three_. The sight new strength to angels lendeth,\493 For none thy being fathom may,\494The works, no angel comprehendeth,\495 Stand lordly as on time's first day.\496\497_Mephistopheles_. Since, Lord, thou drawest near us once again,\498And how we do, dost graciously inquire,\499And to be pleased to see me once didst deign,\500I too among thy household venture nigher.\501Pardon, high words I cannot labor after,\502Though the whole court should look on me with scorn;\503My pathos certainly would stir thy laughter,\504Hadst thou not laughter long since quite forsworn.\505Of sun and worlds I've nought to tell worth mention,\506How men torment themselves takes my attention.\507The little God o' the world jogs on the same old way\508And is as singular as on the world's first day.\509A pity 'tis thou shouldst have given\510The fool, to make him worse, a gleam of light from heaven;\511He calls it reason, using it\512To be more beast than ever beast was yet.\513He seems to me, (your grace the word will pardon,)\514Like a long-legg'd grasshopper in the garden,\515Forever on the wing, and hops and sings\516The same old song, as in the grass he springs;\517Would he but stay there! no; he needs must muddle\518His prying nose in every puddle.\519\520_The Lord_. Hast nothing for our edification?\521Still thy old work of accusation?\522Will things on earth be never right for thee?\523\524_Mephistopheles_. No, Lord! I find them still as bad as bad can be.\525Poor souls! their miseries seem so much to please 'em,\526I scarce can find it in my heart to tease 'em.\527\528_The Lord_. Knowest thou Faust?\529\530_Mephistopheles_. The Doctor?\531\532_The Lord_. Ay, my servant!\533\534_Mephistopheles_. He!\535Forsooth! he serves you in a famous fashion;\536No earthly meat or drink can feed his passion;\537Its grasping greed no space can measure;\538Half-conscious and half-crazed, he finds no rest;\539The fairest stars of heaven must swell his treasure.\540Each highest joy of earth must yield its zest,\541Not all the world--the boundless azure--\542Can fill the void within his craving breast.\543\544_The Lord_. He serves me somewhat darkly, now, I grant,\545Yet will he soon attain the light of reason.\546Sees not the gardener, in the green young plant,\547That bloom and fruit shall deck its coming season?\548\549_Mephistopheles_. What will you bet? You'll surely lose your wager!\550If you will give me leave henceforth,\551To lead him softly on, like an old stager.\552\553_The Lord_. So long as he shall live on earth,\554Do with him all that you desire.\555Man errs and staggers from his birth.\556\557_Mephistopheles_. Thank you; I never did aspire\558To have with dead folk much transaction.\559In full fresh cheeks I take the greatest satisfaction.\560A corpse will never find me in the house;\561I love to play as puss does with the mouse.\562\563_The Lord_. All right, I give thee full permission!\564Draw down this spirit from its source,\565And, canst thou catch him, to perdition\566Carry him with thee in thy course,\567But stand abashed, if thou must needs confess,\568That a good man, though passion blur his vision,\569Has of the right way still a consciousness.\570\571_Mephistopheles_. Good! but I'll make it a short story.\572About my wager I'm by no means sorry.\573And if I gain my end with glory\574Allow me to exult from a full breast.\575Dust shall he eat and that with zest,\576Like my old aunt, the snake, whose fame is hoary.\577\578_The Lord_. Well, go and come, and make thy trial;\579The like of thee I never yet did hate.\580Of all the spirits of denial\581The scamp is he I best can tolerate.\582Man is too prone, at best, to seek the way that's easy,\583He soon grows fond of unconditioned rest;\584And therefore such a comrade suits him best,\585Who spurs and works, true devil, always busy.\586But you, true sons of God, in growing measure,\587Enjoy rich beauty's living stores of pleasure!\588The Word[3] divine that lives and works for aye,\589Fold you in boundless love's embrace alluring,\590And what in floating vision glides away,\591That seize ye and make fast with thoughts enduring.\592\593[_Heaven closes, the archangels disperse._]\594\595_Mephistopheles. [Alone.]_ I like at times to exchange with him a word,\596And take care not to break with him. 'Tis civil\597In the old fellow[4] and so great a Lord\598To talk so kindly with the very devil.\599\600\601\602\603 FAUST.\604\605\606 _Night. In a narrow high-arched Gothic room_,\607 FAUST _sitting uneasy at his desk_.\608\609_Faust_. Have now, alas! quite studied through\610Philosophy and Medicine,\611And Law, and ah! Theology, too,\612With hot desire the truth to win!\613And here, at last, I stand, poor fool!\614As wise as when I entered school;\615Am called Magister, Doctor, indeed,--\616Ten livelong years cease not to lead\617Backward and forward, to and fro,\618My scholars by the nose--and lo!\619Just nothing, I see, is the sum of our learning,\620To the very core of my heart 'tis burning.\621'Tis true I'm more clever than all the foplings,\622Doctors, Magisters, Authors, and Popelings;\623Am plagued by no scruple, nor doubt, nor cavil,\624Nor lingering fear of hell or devil--\625What then? all pleasure is fled forever;\626To know one thing I vainly endeavor,\627There's nothing wherein one fellow-creature\628Could be mended or bettered with me for a teacher.\629And then, too, nor goods nor gold have I,\630Nor fame nor worldly dignity,--\631A condition no dog could longer live in!\632And so to magic my soul I've given,\633If, haply, by spirits' mouth and might,\634Some mysteries may not be brought to light;\635That to teach, no longer may be my lot,\636With bitter sweat, what I need to be taught;\637That I may know what the world contains\638In its innermost heart and finer veins,\639See all its energies and seeds\640And deal no more in words but in deeds.\641 O full, round Moon, didst thou but thine\642For the last time on this woe of mine!\643Thou whom so many a midnight I\644Have watched, at this desk, come up the sky:\645O'er books and papers, a dreary pile,\646Then, mournful friend! uprose thy smile!\647Oh that I might on the mountain-height,\648Walk in the noon of thy blessed light,\649Round mountain-caverns with spirits hover,\650Float in thy gleamings the meadows over,\651And freed from the fumes of a lore-crammed brain,\652Bathe in thy dew and be well again!\653 Woe! and these walls still prison me?\654Dull, dismal hole! my curse on thee!\655Where heaven's own light, with its blessed beams,\656Through painted panes all sickly gleams!\657Hemmed in by these old book-piles tall,\658Which, gnawed by worms and deep in must,\659Rise to the roof against a wall\660Of smoke-stained paper, thick with dust;\661'Mid glasses, boxes, where eye can see,\662Filled with old, obsolete instruments,\663Stuffed with old heirlooms of implements--\664That is thy world! There's a world for thee!\665 And still dost ask what stifles so\666The fluttering heart within thy breast?\667By what inexplicable woe\668The springs of life are all oppressed?\669Instead of living nature, where\670God made and planted men, his sons,\671Through smoke and mould, around thee stare\672Grim skeletons and dead men's bones.\673 Up! Fly! Far out into the land!\674And this mysterious volume, see!\675By Nostradamus's[5] own hand,\676Is it not guide enough for thee?\677Then shalt thou thread the starry skies,\678And, taught by nature in her walks,\679The spirit's might shall o'er thee rise,\680As ghost to ghost familiar talks.\681Vain hope that mere dry sense should here\682Explain the holy signs to thee.\683I feel you, spirits, hovering near;\684Oh, if you hear me, answer me!\685 [_He opens the book and beholds the sign of the Macrocosm.[_6]]\686Ha! as I gaze, what ecstasy is this,\687In one full tide through all my senses flowing!\688I feel a new-born life, a holy bliss\689Through nerves and veins mysteriously glowing.\690Was it a God who wrote each sign?\691Which, all my inner tumult stilling,\692And this poor heart with rapture filling,\693Reveals to me, by force divine,\694Great Nature's energies around and through me thrilling?\695Am I a God? It grows so bright to me!\696Each character on which my eye reposes\697Nature in act before my soul discloses.\698The sage's word was truth, at last I see:\699\"The spirit-world, unbarred, is waiting;\700Thy sense is locked, thy heart is dead!\701Up, scholar, bathe, unhesitating,\702The earthly breast in morning-red!\"\703 [_He contemplates the sign._]\704How all one whole harmonious weaves,\705Each in the other works and lives!\706See heavenly powers ascending and descending,\707The golden buckets, one long line, extending!\708See them with bliss-exhaling pinions winging\709Their way from heaven through earth--their singing\710Harmonious through the universe is ringing!\711 Majestic show! but ah! a show alone!\712Nature! where find I thee, immense, unknown?\713Where you, ye breasts? Ye founts all life sustaining,\714On which hang heaven and earth, and where\715Men's withered hearts their waste repair--\716Ye gush, ye nurse, and I must sit complaining?\717 [_He opens reluctantly the book and sees the sign of the earth-spirit._]\718How differently works on me this sign!\719Thou, spirit of the earth, art to me nearer;\720I feel my powers already higher, clearer,\721I glow already as with new-pressed wine,\722I feel the mood to brave life's ceaseless clashing,\723To bear its frowning woes, its raptures flashing,\724To mingle in the tempest's dashing,\725And not to tremble in the shipwreck's crashing;\726Clouds gather o'er my head--\727Them moon conceals her light--\728The lamp goes out!\729It smokes!--Red rays are darting, quivering\730Around my head--comes down\731A horror from the vaulted roof\732And seizes me!\733Spirit that I invoked, thou near me art,\734Unveil thyself!\735Ha! what a tearing in my heart!\736Upheaved like an ocean\737My senses toss with strange emotion!\738I feel my heart to thee entirely given!\739Thou must! and though the price were life--were heaven!\740 [_He seizes the book and pronounces mysteriously the sign of the spirit.\741 A ruddy flame darts out, the spirit appears in the flame._]\742\743_Spirit_. Who calls upon me?\744\745_Faust. [Turning away.]_ Horrid sight!\746\747_Spirit_. Long have I felt the mighty action,\748Upon my sphere, of thy attraction,\749And now--\750\751_Faust_. Away, intolerable sprite!\752\753_Spirit_. Thou breath'st a panting supplication\754To hear my voice, my face to see;\755Thy mighty prayer prevails on me,\756I come!--what miserable agitation\757Seizes this demigod! Where is the cry of thought?\758Where is the breast? that in itself a world begot,\759And bore and cherished, that with joy did tremble\760And fondly dream us spirits to resemble.\761Where art thou, Faust? whose voice rang through my ear,\762Whose mighty yearning drew me from my sphere?\763Is this thing thou? that, blasted by my breath,\764Through all life's windings shuddereth,\765A shrinking, cringing, writhing worm!\766\767_Faust_. Thee, flame-born creature, shall I fear?\768'Tis I, 'tis Faust, behold thy peer!\769\770_Spirit_. In life's tide currents, in action's storm,\771Up and down, like a wave,\772Like the wind I sweep!\773Cradle and grave--\774A limitless deep---\775An endless weaving\776To and fro,\777A restless heaving\778Of life and glow,--\779So shape I, on Destiny's thundering loom,\780The Godhead's live garment, eternal in bloom.\781\782_Faust_. Spirit that sweep'st the world from end to end,\783How near, this hour, I feel myself to thee!\784\785_Spirit_. Thou'rt like the spirit thou canst comprehend,\786Not me! [_Vanishes._]\787\788_Faust_. [_Collapsing_.] Not thee?\789 Whom then?\790 I, image of the Godhead,\791 And no peer for thee!\792 [_A knocking_.]\793O Death! I know it!--'tis my Famulus--\794Good-bye, ye dreams of bliss Elysian!\795Shame! that so many a glowing vision\796This dried-up sneak must scatter thus!\797\798 [WAGNER, _in sleeping-gown and night-cap, a lamp in his hand._\799 FAUST _turns round with an annoyed look_.]\800\801_Wagner_. Excuse me! you're engaged in declamation;\802'Twas a Greek tragedy no doubt you read?\803I in this art should like initiation,\804For nowadays it stands one well instead.\805I've often heard them boast, a preacher\806Might profit with a player for his teacher.\807\808_Faust_. Yes, when the preacher is a player, granted:\809As often happens in our modern ways.\810\811_Wagner_. Ah! when one with such love of study's haunted,\812And scarcely sees the world on holidays,\813And takes a spy-glass, as it were, to read it,\814How can one by persuasion hope to lead it?\815\816_Faust_. What you don't feel, you'll never catch by hunting,\817It must gush out spontaneous from the soul,\818And with a fresh delight enchanting\819The hearts of all that hear control.\820Sit there forever! Thaw your glue-pot,--\821Blow up your ash-heap to a flame, and brew,\822With a dull fire, in your stew-pot,\823Of other men's leavings a ragout!\824Children and apes will gaze delighted,\825If their critiques can pleasure impart;\826But never a heart will be ignited,\827Comes not the spark from the speaker's heart.\828\829_Wagner_. Delivery makes the orator's success;\830There I'm still far behindhand, I confess.\831\832_Faust_. Seek honest gains, without pretence!\833Be not a cymbal-tinkling fool!\834Sound understanding and good sense\835Speak out with little art or rule;\836And when you've something earnest to utter,\837Why hunt for words in such a flutter?\838Yes, your discourses, that are so refined'\839In which humanity's poor shreds you frizzle,\840Are unrefreshing as the mist and wind\841That through the withered leaves of autumn whistle!\842\843_Wagner_. Ah God! well, art is long!\844And life is short and fleeting.\845What headaches have I felt and what heart-beating,\846When critical desire was strong.\847How hard it is the ways and means to master\848By which one gains each fountain-head!\849\850And ere one yet has half the journey sped,\851The poor fool dies--O sad disaster!\852\853_Faust_. Is parchment, then, the holy well-spring, thinkest,\854A draught from which thy thirst forever slakes?\855No quickening element thou drinkest,\856Till up from thine own soul the fountain breaks.\857\858_Wagner_. Excuse me! in these olden pages\859We catch the spirit of the by-gone ages,\860We see what wisest men before our day have thought,\861And to what glorious heights we their bequests have brought.\862\863_Faust_. O yes, we've reached the stars at last!\864My friend, it is to us,--the buried past,--\865A book with seven seals protected;\866Your spirit of the times is, then,\867At bottom, your own spirit, gentlemen,\868In which the times are seen reflected.\869And often such a mess that none can bear it;\870At the first sight of it they run away.\871A dust-bin and a lumber-garret,\872At most a mock-heroic play[8]\873With fine, pragmatic maxims teeming,\874The mouths of puppets well-beseeming!\875\876_Wagner_. But then the world! the heart and mind of man!\877To know of these who would not pay attention?\878\879_Faust_. To know them, yes, as weaklings can!\880Who dares the child's true name outright to mention?\881The few who any thing thereof have learned,\882Who out of their heart's fulness needs must gabble,\883And show their thoughts and feelings to the rabble,\884Have evermore been crucified and burned.\885I pray you, friend, 'tis wearing into night,\886Let us adjourn here, for the present.\887\888_Wagner_. I had been glad to stay till morning light,\889This learned talk with you has been so pleasant,\890But the first day of Easter comes to-morrow.\891And then an hour or two I'll borrow.\892With zeal have I applied myself to learning,\893True, I know much, yet to know all am burning.\894 [_Exit_.]\895\896_Faust_. [_Alone_.] See how in _his_ head only, hope still lingers,\897Who evermore to empty rubbish clings,\898With greedy hand grubs after precious things,\899And leaps for joy when some poor worm he fingers!\900 That such a human voice should dare intrude,\901Where all was full of ghostly tones and features!\902Yet ah! this once, my gratitude\903Is due to thee, most wretched of earth's creatures.\904Thou snatchedst me from the despairing state\905In which my senses, well nigh crazed, were sunken.\906The apparition was so giant-great,\907That to a very dwarf my soul had shrunken.\908 I, godlike, who in fancy saw but now\909Eternal truth's fair glass in wondrous nearness,\910Rejoiced in heavenly radiance and clearness,\911Leaving the earthly man below;\912I, more than cherub, whose free force\913Dreamed, through the veins of nature penetrating,\914To taste the life of Gods, like them creating,\915Behold me this presumption expiating!\916A word of thunder sweeps me from my course.\917 Myself with thee no longer dare I measure;\918Had I the power to draw thee down at pleasure;\919To hold thee here I still had not the force.\920Oh, in that blest, ecstatic hour,\921I felt myself so small, so great;\922Thou drovest me with cruel power\923Back upon man's uncertain fate\924What shall I do? what slum, thus lonely?\925That impulse must I, then, obey?\926Alas! our very deeds, and not our sufferings only,\927How do they hem and choke life's way!\928 To all the mind conceives of great and glorious\929A strange and baser mixture still adheres;\930Striving for earthly good are we victorious?\931A dream and cheat the better part appears.\932The feelings that could once such noble life inspire\933Are quenched and trampled out in passion's mire.\934 Where Fantasy, erewhile, with daring flight\935Out to the infinite her wings expanded,\936A little space can now suffice her quite,\937When hope on hope time's gulf has wrecked and stranded.\938Care builds her nest far down the heart's recesses,\939There broods o'er dark, untold distresses,\940Restless she sits, and scares thy joy and peace away;\941She puts on some new mask with each new day,\942Herself as house and home, as wife and child presenting,\943As fire and water, bane and blade;\944What never hits makes thee afraid,\945And what is never lost she keeps thee still lamenting.\946 Not like the Gods am I! Too deep that truth is thrust!\947But like the worm, that wriggles through the dust;\948Who, as along the dust for food he feels,\949Is crushed and buried by the traveller's heels.\950 Is it not dust that makes this lofty wall\951Groan with its hundred shelves and cases;\952The rubbish and the thousand trifles all\953That crowd these dark, moth-peopled places?\954Here shall my craving heart find rest?\955Must I perchance a thousand books turn over,\956To find that men are everywhere distrest,\957And here and there one happy one discover?\958Why grin'st thou down upon me, hollow skull?\959But that thy brain, like mine, once trembling, hoping,\960Sought the light day, yet ever sorrowful,\961Burned for the truth in vain, in twilight groping?\962Ye, instruments, of course, are mocking me;\963Its wheels, cogs, bands, and barrels each one praises.\964I waited at the door; you were the key;\965Your ward is nicely turned, and yet no bolt it raises.\966Unlifted in the broadest day,\967Doth Nature's veil from prying eyes defend her,\968And what (he chooses not before thee to display,\969Not all thy screws and levers can force her to surrender.\970Old trumpery! not that I e'er used thee, but\971Because my father used thee, hang'st thou o'er me,\972Old scroll! thou hast been stained with smoke and smut\973Since, on this desk, the lamp first dimly gleamed before me.\974Better have squandered, far, I now can clearly see,\975My little all, than melt beneath it, in this Tophet!\976That which thy fathers have bequeathed to thee,\977Earn and become possessor of it!\978What profits not a weary load will be;\979What it brings forth alone can yield the moment profit.\980 Why do I gaze as if a spell had bound me\981Up yonder? Is that flask a magnet to the eyes?\982What lovely light, so sudden, blooms around me?\983As when in nightly woods we hail the full-moon-rise.\984 I greet thee, rarest phial, precious potion!\985As now I take thee down with deep devotion,\986In thee I venerate man's wit and art.\987Quintessence of all soporific flowers,\988Extract of all the finest deadly powers,\989Thy favor to thy master now impart!\990I look on thee, the sight my pain appeases,\991I handle thee, the strife of longing ceases,\992The flood-tide of the spirit ebbs away.\993Far out to sea I'm drawn, sweet voices listening,\994The glassy waters at my feet are glistening,\995To new shores beckons me a new-born day.\996 A fiery chariot floats, on airy pinions,\997To where I sit! Willing, it beareth me,\998On a new path, through ether's blue dominions,\999To untried spheres of pure activity.\1000This lofty life, this bliss elysian,\1001Worm that thou waft erewhile, deservest thou?\1002Ay, on this earthly sun, this charming vision,\1003Turn thy back resolutely now!\1004Boldly draw near and rend the gates asunder,\1005By which each cowering mortal gladly steals.\1006Now is the time to show by deeds of wonder\1007That manly greatness not to godlike glory yields;\1008Before that gloomy pit to stand, unfearing,\1009Where Fantasy self-damned in its own torment lies,\1010Still onward to that pass-way steering,\1011Around whose narrow mouth hell-flames forever rise;\1012Calmly to dare the step, serene, unshrinking,\1013Though into nothingness the hour should see thee sinking.\1014 Now, then, come down from thy old case, I bid thee,\1015Where thou, forgotten, many a year hast hid thee,\1016Into thy master's hand, pure, crystal glass!\1017The joy-feasts of the fathers thou hast brightened,\1018The hearts of gravest guests were lightened,\1019When, pledged, from hand to hand they saw thee pass.\1020Thy sides, with many a curious type bedight,\1021Which each, as with one draught he quaffed the liquor\1022Must read in rhyme from off the wondrous beaker,\1023Remind me, ah! of many a youthful night.\1024I shall not hand thee now to any neighbor,\1025Not now to show my wit upon thy carvings labor;\1026Here is a juice of quick-intoxicating might.\1027The rich brown flood adown thy sides is streaming,\1028With my own choice ingredients teeming;\1029Be this last draught, as morning now is gleaming,\1030Drained as a lofty pledge to greet the festal light!\1031 [_He puts the goblet to his lips_.\1032\1033_Ringing of bells and choral song_.\1034\1035_Chorus of Angels_. Christ hath arisen!\1036 Joy to humanity!\1037 No more shall vanity,\1038 Death and inanity\1039 Hold thee in prison!\1040\1041_Faust_. What hum of music, what a radiant tone,\1042Thrills through me, from my lips the goblet stealing!\1043Ye murmuring bells, already make ye known\1044The Easter morn's first hour, with solemn pealing?\1045Sing you, ye choirs, e'en now, the glad, consoling song,\1046That once, from angel-lips, through gloom sepulchral rung,\1047A new immortal covenant sealing?\1048\1049_Chorus of Women_. Spices we carried,\1050 Laid them upon his breast;\1051 Tenderly buried\1052 Him whom we loved the best;\1053\1054 Cleanly to bind him\1055 Took we the fondest care,\1056 Ah! and we find him\1057 Now no more there.\1058\1059_Chorus of Angels_. Christ hath ascended!\1060 Reign in benignity!\1061 Pain and indignity,\1062 Scorn and malignity,\1063 _Their_ work have ended.\1064\1065_Faust_. Why seek ye me in dust, forlorn,\1066Ye heavenly tones, with soft enchanting?\1067Go, greet pure-hearted men this holy morn!\1068Your message well I hear, but faith to me is wanting;\1069Wonder, its dearest child, of Faith is born.\1070To yonder spheres I dare no more aspire,\1071Whence the sweet tidings downward float;\1072And yet, from childhood heard, the old, familiar note\1073Calls back e'en now to life my warm desire.\1074Ah! once how sweetly fell on me the kiss\1075Of heavenly love in the still Sabbath stealing!\1076Prophetically rang the bells with solemn pealing;\1077A prayer was then the ecstasy of bliss;\1078A blessed and mysterious yearning\1079Drew me to roam through meadows, woods, and skies;\1080And, midst a thousand tear-drops burning,\1081I felt a world within me rise\1082That strain, oh, how it speaks youth's gleesome plays and feelings,\1083Joys of spring-festivals long past;\1084Remembrance holds me now, with childhood's fond appealings,\1085Back from the fatal step, the last.\1086Sound on, ye heavenly strains, that bliss restore me!\1087Tears gush, once more the spell of earth is o'er me\1088\1089_Chorus of Disciples_. Has the grave's lowly one\1090 Risen victorious?\1091 Sits he, God's Holy One,\1092 High-throned and glorious?\1093 He, in this blest new birth,\1094 Rapture creative knows;[9]\1095 Ah! on the breast of earth\1096 Taste we still nature's woes.\1097 Left here to languish\1098 Lone in a world like this,\1099 Fills us with anguish\1100 Master, thy bliss!\1101\1102_Chorus of Angels_. Christ has arisen\1103 Out of corruption's gloom.\1104 Break from your prison,\1105 Burst every tomb!\1106 Livingly owning him,\1107 Lovingly throning him,\1108 Feasting fraternally,\1109 Praying diurnally,\1110 Bearing his messages,\1111 Sharing his promises,\1112 Find ye your master near,\1113 Find ye him here![10]\1114\1115\1116\1117\1118 BEFORE THE GATE.\1119\1120 _Pedestrians of all descriptions stroll forth_.\1121\1122_Mechanics' Apprentices_. Where are you going to carouse?\1123\1124_Others_. We're all going out to the Hunter's House.\1125\1126_The First_. We're going, ourselves, out to the Mill-House, brothers.\1127\1128_An Apprentice_. The Fountain-House I rather recommend.\1129\1130_Second_. 'Tis not a pleasant road, my friend.\1131\1132_The second group_. What will you do, then?\1133\1134_A Third_. I go with the others.\1135\1136_Fourth_. Come up to Burgdorf, there you're sure to find good cheer,\1137The handsomest of girls and best of beer,\1138And rows, too, of the very first water.\1139\1140_Fifth_. You monstrous madcap, does your skin\1141Itch for the third time to try that inn?\1142I've had enough for _my_ taste in that quarter.\1143\1144_Servant-girl_. No! I'm going back again to town for one.\1145\1146_Others_. Under those poplars we are sure to meet him.\1147\1148_First Girl_. But that for me is no great fun;\1149For you are always sure to get him,\1150He never dances with any but you.\1151Great good to me your luck will do!\1152\1153_Others_. He's not alone, I heard him say,\1154The curly-head would be with him to-day.\1155\1156_Scholar_. Stars! how the buxom wenches stride there!\1157Quick, brother! we must fasten alongside there.\1158Strong beer, good smart tobacco, and the waist\1159Of a right handsome gall, well rigg'd, now that's my taste.\1160\1161_Citizen's Daughter_. Do see those fine, young fellows yonder!\1162'Tis, I declare, a great disgrace;\1163When they might have the very best, I wonder,\1164After these galls they needs must race!\1165\1166_Second scholar_ [_to the first_].\1167Stop! not so fast! there come two more behind,\1168My eyes! but ain't they dressed up neatly?\1169One is my neighbor, or I'm blind;\1170I love the girl, she looks so sweetly.\1171Alone all quietly they go,\1172You'll find they'll take us, by and bye, in tow.\1173\1174_First_. No, brother! I don't like these starched up ways.\1175Make haste! before the game slips through our fingers.\1176The hand that swings the broom o' Saturdays\1177On Sundays round thy neck most sweetly lingers.\1178\1179_Citizen_. No, I don't like at all this new-made burgomaster!\1180His insolence grows daily ever faster.\1181No good from him the town will get!\1182Will things grow better with him? Never!\1183We're under more constraint than ever,\1184And pay more tax than ever yet.\1185\1186_Beggar_. [_Sings_.] Good gentlemen, and you, fair ladies,\1187 With such red cheeks and handsome dress,\1188 Think what my melancholy trade is,\1189 And see and pity my distress!\1190 Help the poor harper, sisters, brothers!\1191 Who loves to give, alone is gay.\1192 This day, a holiday to others,\1193 Make it for me a harvest day.\1194\1195_Another citizen_.\1196Sundays and holidays, I like, of all things, a good prattle\1197Of war and fighting, and the whole array,\1198When back in Turkey, far away,\1199The peoples give each other battle.\1200One stands before the window, drinks his glass,\1201And sees the ships with flags glide slowly down the river;\1202Comes home at night, when out of sight they pass,\1203And sings with joy, \"Oh, peace forever!\"\1204\1205_Third citizen_. So I say, neighbor! let them have their way,\1206Crack skulls and in their crazy riot\1207Turn all things upside down they may,\1208But leave us here in peace and quiet.\1209\1210_Old Woman_ [_to the citizen's daughter_].\1211Heyday, brave prinking this! the fine young blood!\1212Who is not smitten that has met you?--\1213But not so proud! All very good!\1214And what you want I'll promise soon to get you.\1215\1216_Citizen's Daughter_. Come, Agatha! I dread in public sight\1217To prattle with such hags; don't stay, O, Luddy!\1218'Tis true she showed me, on St. Andrew's night,\1219My future sweetheart in the body.\1220\1221_The other_. She showed me mine, too, in a glass,\1222Right soldierlike, with daring comrades round him.\1223I look all round, I study all that pass,\1224But to this hour I have not found him.\1225\1226_Soldiers_. Castles with lowering\1227 Bulwarks and towers,\1228 Maidens with towering\1229 Passions and powers,\1230 Both shall be ours!\1231 Daring the venture,\1232 Glorious the pay!\1233\1234 When the brass trumpet\1235 Summons us loudly,\1236 Joy-ward or death-ward,\1237 On we march proudly.\1238 That is a storming!\1239\1240 Life in its splendor!\1241 Castles and maidens\1242 Both must surrender.\1243 Daring the venture,\1244 Glorious the pay.\1245 There go the soldiers\1246 Marching away!\1247\1248\1249 FAUST _and_ WAGNER.\1250\1251_Faust_. Spring's warm look has unfettered the fountains,\1252Brooks go tinkling with silvery feet;\1253Hope's bright blossoms the valley greet;\1254Weakly and sickly up the rough mountains\1255Pale old Winter has made his retreat.\1256Thence he launches, in sheer despite,\1257Sleet and hail in impotent showers,\1258O'er the green lawn as he takes his flight;\1259But the sun will suffer no white,\1260Everywhere waking the formative powers,\1261Living colors he yearns to spread;\1262Yet, as he finds it too early for flowers,\1263Gayly dressed people he takes instead.\1264Look from this height whereon we find us\1265Back to the town we have left behind us,\1266Where from the dark and narrow door\1267Forth a motley multitude pour.\1268They sun themselves gladly and all are gay,\1269They celebrate Christ's resurrection to-day.\1270For have not they themselves arisen?\1271From smoky huts and hovels and stables,\1272From labor's bonds and traffic's prison,\1273From the confinement of roofs and gables,\1274From many a cramping street and alley,\1275From churches full of the old world's night,\1276All have come out to the day's broad light.\1277See, only see! how the masses sally\1278Streaming and swarming through gardens and fields\1279How the broad stream that bathes the valley\1280Is everywhere cut with pleasure boats' keels,\1281And that last skiff, so heavily laden,\1282Almost to sinking, puts off in the stream;\1283Ribbons and jewels of youngster and maiden\1284From the far paths of the mountain gleam.\1285How it hums o'er the fields and clangs from the steeple!\1286This is the real heaven of the people,\1287Both great and little are merry and gay,\1288I am a man, too, I can be, to-day.\1289\1290_Wagner_. With you, Sir Doctor, to go out walking\1291Is at all times honor and gain enough;\1292But to trust myself here alone would be shocking,\1293For I am a foe to all that is rough.\1294Fiddling and bowling and screams and laughter\1295To me are the hatefullest noises on earth;\1296They yell as if Satan himself were after,\1297And call it music and call it mirth.\1298\1299 [_Peasants (under the linden). Dance and song._]\1300\1301The shepherd prinked him for the dance,\1302With jacket gay and spangle's glance,\1303And all his finest quiddle.\1304And round the linden lass and lad\1305They wheeled and whirled and danced like mad.\1306Huzza! huzza!\1307Huzza! Ha, ha, ha!\1308And tweedle-dee went the fiddle.\1309\1310And in he bounded through the whirl,\1311And with his elbow punched a girl,\1312Heigh diddle, diddle!\1313The buxom wench she turned round quick,\1314\"Now that I call a scurvy trick!\"\1315Huzza! huzza!\1316Huzza! ha, ha, ha!\1317Tweedle-dee, tweedle-dee went the fiddle.\1318\1319And petticoats and coat-tails flew\1320As up and down they went, and through,\1321Across and down the middle.\1322They all grew red, they all grew warm,\1323And rested, panting, arm in arm,\1324Huzza! huzza!\1325Ta-ra-la!\1326Tweedle-dee went the fiddle!\1327\1328\"And don't be so familiar there!\1329How many a one, with speeches fair,\1330His trusting maid will diddle!\"\1331But still he flattered her aside--\1332And from the linden sounded wide:\1333Huzza! huzza!\1334Huzza! huzza! ha! ha! ha!\1335And tweedle-dee the fiddle.\1336\1337_Old Peasant._ Sir Doctor, this is kind of you,\1338That with us here you deign to talk,\1339And through the crowd of folk to-day\1340A man so highly larned, walk.\1341So take the fairest pitcher here,\1342Which we with freshest drink have filled,\1343I pledge it to you, praying aloud\1344That, while your thirst thereby is stilled,\1345So many days as the drops it contains\1346May fill out the life that to you remains.\1347\1348_Faust._ I take the quickening draught and call\1349For heaven's best blessing on one and all.\1350\1351 [_The people form a circle round him._]\1352\1353_Old Peasant._ Your presence with us, this glad day,\1354We take it very kind, indeed!\1355In truth we've found you long ere this\1356In evil days a friend in need!\1357Full many a one stands living here,\1358Whom, at death's door already laid,\1359Your father snatched from fever's rage,\1360When, by his skill, the plague he stayed.\1361You, a young man, we daily saw\1362Go with him to the pest-house then,\1363And many a corpse was carried forth,\1364But you came out alive again.\1365With a charmed life you passed before us,\1366Helped by the Helper watching o'er us.\1367\1368_All._ The well-tried man, and may he live,\1369Long years a helping hand to give!\1370\1371_Faust._ Bow down to Him on high who sends\1372His heavenly help and helping friends!\1373 [_He goes on with_ WAGNER.]\1374\1375_Wagner._ What feelings, O great man, thy heart must swell\1376Thus to receive a people's veneration!\1377O worthy all congratulation,\1378Whose gifts to such advantage tell.\1379The father to his son shows thee with exultation,\1380All run and crowd and ask, the circle closer draws,\1381The fiddle stops, the dancers pause,\1382Thou goest--the lines fall back for thee.\1383They fling their gay-decked caps on high;\1384A little more and they would bow the knee\1385As if the blessed Host came by.\1386\1387_Faust._ A few steps further on, until we reach that stone;\1388There will we rest us from our wandering.\1389How oft in prayer and penance there alone,\1390Fasting, I sate, on holy mysteries pondering.\1391There, rich in hope, in faith still firm,\1392I've wept, sighed, wrung my hands and striven\1393This plague's removal to extort (poor worm!)\1394From the almighty Lord of Heaven.\1395The crowd's applause has now a scornful tone;\1396O couldst thou hear my conscience tell its story,\1397How little either sire or son\1398Has done to merit such a glory!\1399My father was a worthy man, confused\1400And darkened with his narrow lucubrations,\1401Who with a whimsical, though well-meant patience,\1402On Nature's holy circles mused.\1403Shut up in his black laboratory,\1404Experimenting without end,\1405'Midst his adepts, till he grew hoary,\1406He sought the opposing powers to blend.\1407Thus, a red lion,[11] a bold suitor, married\1408The silver lily, in the lukewarm bath,\1409And, from one bride-bed to another harried,\1410The two were seen to fly before the flaming wrath.\1411If then, with colors gay and splendid,\1412The glass the youthful queen revealed,\1413Here was the physic, death the patients' sufferings ended,\1414And no one asked, who then was healed?\1415Thus, with electuaries so satanic,\1416Worse than the plague with all its panic,\1417We rioted through hill and vale;\1418Myself, with my own hands, the drug to thousands giving,\1419They passed away, and I am living\1420To hear men's thanks the murderers hail!\1421\1422_Wagner._ Forbear! far other name that service merits!\1423Can a brave man do more or less\1424Than with nice conscientiousness\1425To exercise the calling he inherits?\1426If thou, as youth, thy father honorest,\1427To learn from him thou wilt desire;\1428If thou, as man, men with new light hast blest,\1429Then may thy son to loftier heights aspire.\1430\1431_Faust._ O blest! who hopes to find repose,\1432Up from this mighty sea of error diving!\1433Man cannot use what he already knows,\1434To use the unknown ever striving.\1435But let not such dark thoughts a shadow throw\1436O'er the bright joy this hour inspires!\1437See how the setting sun, with ruddy glow,\1438The green-embosomed hamlet fires!\1439He sinks and fades, the day is lived and gone,\1440He hastens forth new scenes of life to waken.\1441O for a wing to lift and bear me on,\1442And on, to where his last rays beckon!\1443Then should I see the world's calm breast\1444In everlasting sunset glowing,\1445The summits all on fire, each valley steeped in rest,\1446The silver brook to golden rivers flowing.\1447No savage mountain climbing to the skies\1448Should stay the godlike course with wild abysses;\1449And now the sea, with sheltering, warm recesses\1450Spreads out before the astonished eyes.\1451At last it seems as if the God were sinking;\1452But a new impulse fires the mind,\1453Onward I speed, his endless glory drinking,\1454The day before me and the night behind,\1455The heavens above my head and under me the ocean.\1456A lovely dream,--meanwhile he's gone from sight.\1457Ah! sure, no earthly wing, in swiftest flight,\1458May with the spirit's wings hold equal motion.\1459Yet has each soul an inborn feeling\1460Impelling it to mount and soar away,\1461When, lost in heaven's blue depths, the lark is pealing\1462High overhead her airy lay;\1463When o'er the mountain pine's black shadow,\1464With outspread wing the eagle sweeps,\1465And, steering on o'er lake and meadow,\1466The crane his homeward journey keeps.\1467\1468_Wagner._ I've had myself full many a wayward hour,\1469But never yet felt such a passion's power.\1470One soon grows tired of field and wood and brook,\1471I envy not the fowl of heaven his pinions.\1472Far nobler joy to soar through thought's dominions\1473From page to page, from book to book!\1474Ah! winter nights, so dear to mind and soul!\1475Warm, blissful life through all the limbs is thrilling,\1476And when thy hands unfold a genuine ancient scroll,\1477It seems as if all heaven the room were filling.\1478\1479_Faust_. One passion only has thy heart possessed;\1480The other, friend, O, learn it never!\1481Two souls, alas! are lodged in my wild breast,\1482Which evermore opposing ways endeavor,\1483The one lives only on the joys of time,\1484Still to the world with clamp-like organs clinging;\1485The other leaves this earthly dust and slime,\1486To fields of sainted sires up-springing.\1487O, are there spirits in the air,\1488That empire hold 'twixt earth's and heaven's dominions,\1489Down from your realm of golden haze repair,\1490Waft me to new, rich life, upon your rosy pinions!\1491Ay! were a magic mantle only mine,\1492To soar o'er earth's wide wildernesses,\1493I would not sell it for the costliest dresses,\1494Not for a royal robe the gift resign.\1495\1496_Wagner_. O, call them not, the well known powers of air,\1497That swarm through all the middle kingdom, weaving\1498Their fairy webs, with many a fatal snare\1499The feeble race of men deceiving.\1500First, the sharp spirit-tooth, from out the North,\1501And arrowy tongues and fangs come thickly flying;\1502Then from the East they greedily dart forth,\1503Sucking thy lungs, thy life-juice drying;\1504If from the South they come with fever thirst,\1505Upon thy head noon's fiery splendors heaping;\1506The Westwind brings a swarm, refreshing first,\1507Then all thy world with thee in stupor steeping.\1508They listen gladly, aye on mischief bent,\1509Gladly draw near, each weak point to espy,\1510They make believe that they from heaven are sent,\1511Whispering like angels, while they lie.\1512But let us go! The earth looks gray, my friend,\1513The air grows cool, the mists ascend!\1514At night we learn our homes to prize.--\1515Why dost thou stop and stare with all thy eyes?\1516What can so chain thy sight there, in the gloaming?\1517\1518_Faust_. Seest thou that black dog through stalks and stubble roaming?\1519\1520_Wagner_. I saw him some time since, he seemed not strange to me.\1521\1522_Faust_. Look sharply! What dost take the beast to be?\1523\1524_Wagner_. For some poor poodle who has lost his master,\1525And, dog-like, scents him o'er the ground.\1526\1527_Faust_. Markst thou how, ever nearer, ever faster,\1528Towards us his spiral track wheels round and round?\1529And if my senses suffer no confusion,\1530Behind him trails a fiery glare.\1531\1532_Wagner_. 'Tis probably an optical illusion;\1533I still see only a black poodle there.\1534\1535_Faust_. He seems to me as he were tracing slyly\1536His magic rings our feet at last to snare.\1537\1538_Wagner_. To me he seems to dart around our steps so shyly,\1539As if he said: is one of them my master there?\1540\1541_Faust_. The circle narrows, he is near!\1542\1543_Wagner_. Thou seest! a dog we have, no spectre, here!\1544He growls and stops, crawls on his belly, too,\1545And wags his tail,--as all dogs do.\1546\1547_Faust_. Come here, sir! come, our comrade be!\1548\1549_Wagner_. He has a poodle's drollery.\1550Stand still, and he, too, waits to see;\1551Speak to him, and he jumps on thee;\1552Lose something, drop thy cane or sling it\1553Into the stream, he'll run and bring it.\1554\1555_Faust_. I think you're right; I trace no spirit here,\1556'Tis all the fruit of training, that is clear.\1557\1558_Wagner_. A well-trained dog is a great treasure,\1559Wise men in such will oft take pleasure.\1560And he deserves your favor and a collar,\1561He, of the students the accomplished scholar.\1562\1563 [_They go in through the town gate._]\1564\1565\1566\1567\1568 STUDY-CHAMBER.\1569\1570 _Enter_ FAUST _with the_ POODLE.\1571\1572\1573I leave behind me field and meadow\1574Veiled in the dusk of holy night,\1575Whose ominous and awful shadow\1576Awakes the better soul to light.\1577To sleep are lulled the wild desires,\1578The hand of passion lies at rest;\1579The love of man the bosom fires,\1580The love of God stirs up the breast.\1581\1582Be quiet, poodle! what worrisome fiend hath possest thee,\1583Nosing and snuffling so round the door?\1584Go behind the stove there and rest thee,\1585There's my best pillow--what wouldst thou more?\1586As, out on the mountain-paths, frisking and leaping,\1587Thou, to amuse us, hast done thy best,\1588So now in return lie still in my keeping,\1589A quiet, contented, and welcome guest.\1590\1591When, in our narrow chamber, nightly,\1592The friendly lamp begins to burn,\1593Then in the bosom thought beams brightly,\1594Homeward the heart will then return.\1595Reason once more bids passion ponder,\1596Hope blooms again and smiles on man;\1597Back to life's rills he yearns to wander,\1598Ah! to the source where life began.\1599\1600Stop growling, poodle! In the music Elysian\1601That laps my soul at this holy hour,\1602These bestial noises have jarring power.\1603We know that men will treat with derision\1604Whatever they cannot understand,\1605At goodness and truth and beauty's vision\1606Will shut their eyes and murmur and howl at it;\1607And must the dog, too, snarl and growl at it?\1608\1609But ah, with the best will, I feel already,\1610No peace will well up in me, clear and steady.\1611But why must hope so soon deceive us,\1612And the dried-up stream in fever leave us?\1613For in this I have had a full probation.\1614And yet for this want a supply is provided,\1615To a higher than earth the soul is guided,\1616We are ready and yearn for revelation:\1617And where are its light and warmth so blent\1618As here in the New Testament?\1619I feel, this moment, a mighty yearning\1620To expound for once the ground text of all,\1621The venerable original\1622Into my own loved German honestly turning.\1623 [_He opens the volume, and applies himself to the task_.]\1624\"In the beginning was the _Word_.\" I read.\1625But here I stick! Who helps me to proceed?\1626The _Word_--so high I cannot--dare not, rate it,\1627I must, then, otherwise translate it,\1628If by the spirit I am rightly taught.\1629It reads: \"In the beginning was the _thought_.\"\1630But study well this first line's lesson,\1631Nor let thy pen to error overhasten!\1632Is it the _thought_ does all from time's first hour?\1633\"In the beginning,\" read then, \"was the _power_.\"\1634Yet even while I write it down, my finger\1635Is checked, a voice forbids me there to linger.\1636The spirit helps! At once I dare to read\1637And write: \"In the beginning was the _deed_.\"\1638\1639If I with thee must share my chamber,\1640Poodle, now, remember,\1641No more howling,\1642No more growling!\1643I had as lief a bull should bellow,\1644As have for a chum such a noisy fellow.\1645Stop that yell, now,\1646One of us must quit this cell now!\1647'Tis hard to retract hospitality,\1648But the door is open, thy way is free.\1649But what ails the creature?\1650Is this in the course of nature?\1651Is it real? or one of Fancy's shows?\1652\1653How long and broad my poodle grows!\1654He rises from the ground;\1655That is no longer the form of a hound!\1656Heaven avert the curse from us!\1657He looks like a hippopotamus,\1658With his fiery eyes and the terrible white\1659Of his grinning teeth! oh what a fright\1660Have I brought with me into the house! Ah now,\1661No mystery art thou!\1662Methinks for such half hellish brood\1663The key of Solomon were good.\1664\1665_Spirits_ [_in the passage_]. Softly! a fellow is caught there!\1666 Keep back, all of you, follow him not there!\1667 Like the fox in the trap,\1668 Mourns the old hell-lynx his mishap.\1669 But give ye good heed!\1670 This way hover, that way hover,\1671 Over and over,\1672 And he shall right soon be freed.\1673 Help can you give him,\1674 O do not leave him!\1675 Many good turns he's done us,\1676 Many a fortune won us.\1677\1678_Faust_. First, to encounter the creature\1679By the spell of the Four, says the teacher:\1680 Salamander shall glisten,[12]\1681 Undina lapse lightly,\1682 Sylph vanish brightly,\1683 Kobold quick listen.\1684\1685He to whom Nature\1686Shows not, as teacher,\1687Every force\1688And secret source,\1689Over the spirits\1690No power inherits.\1691\1692 Vanish in glowing\1693 Flame, Salamander!\1694 Inward, spirally flowing,\1695 Gurgle, Undine!\1696 Gleam in meteoric splendor,\1697 Airy Queen!\1698 Thy homely help render,\1699 Incubus! Incubus!\1700 Forth and end the charm for us!\1701\1702No kingdom of Nature\1703Resides in the creature.\1704He lies there grinning--'tis clear, my charm\1705Has done the monster no mite of harm.\1706I'll try, for thy curing,\1707Stronger adjuring.\1708\1709 Art thou a jail-bird,\1710 A runaway hell-bird?\1711 This sign,[13] then--adore it!\1712 They tremble before it\1713 All through the dark dwelling.\1714\1715His hair is bristling--his body swelling.\1716\1717 Reprobate creature!\1718 Canst read his nature?\1719 The Uncreated,\1720 Ineffably Holy,\1721 With Deity mated,\1722 Sin's victim lowly?\1723\1724Driven behind the stove by my spells,\1725Like an elephant he swells;\1726He fills the whole room, so huge he's grown,\1727He waxes shadowy faster and faster.\1728Rise not up to the ceiling--down!\1729Lay thyself at the feet of thy master!\1730Thou seest, there's reason to dread my ire.\1731I'll scorch thee with the holy fire!\1732Wait not for the sight\1733Of the thrice-glowing light!\1734Wait not to feel the might\1735Of the potentest spell in all my treasure!\1736\1737\1738 MEPHISTOPHELES.\1739 [_As the mist sinks, steps forth from behind the stove,\1740 dressed as a travelling scholasticus_.]\1741Why all this noise? What is your worship's pleasure?\1742\1743_Faust_. This was the poodle's essence then!\1744A travelling clark? Ha! ha! The casus is too funny.\1745\1746_Mephistopheles_. I bow to the most learned among men!\1747'Faith you did sweat me without ceremony.\1748\1749_Faust_. What is thy name?\1750\1751_Mephistopheles_. The question seems too small\1752For one who holds the _word_ so very cheaply,\1753Who, far removed from shadows all,\1754For substances alone seeks deeply.\1755\1756_Faust_. With gentlemen like him in my presence,\1757The name is apt to express the essence,\1758Especially if, when you inquire,\1759You find it God of flies,[14] Destroyer, Slanderer, Liar.\1760Well now, who art thou then?\1761\1762_Mephistopheles_. A portion of that power,\1763Which wills the bad and works the good at every hour.\1764\1765_Faust_. Beneath thy riddle-word what meaning lies?\1766\1767_Mephistopheles_. I am the spirit that denies!\1768And justly so; for all that time creates,\1769He does well who annihilates!\1770Better, it ne'er had had beginning;\1771And so, then, all that you call sinning,\1772Destruction,--all you pronounce ill-meant,--\1773Is my original element.\1774\1775_Faust_. Thou call'st thyself a part, yet lookst complete to me.\1776\1777_Mephistopheles_. I speak the modest truth to thee.\1778A world of folly in one little soul,\1779_Man_ loves to think himself a whole;\1780Part of the part am I, which once was all, the Gloom\1781That brought forth Light itself from out her mighty womb,\1782The upstart proud, that now with mother Night\1783Disputes her ancient rank and space and right,\1784Yet never shall prevail, since, do whate'er he will,\1785He cleaves, a slave, to bodies still;\1786From bodies flows, makes bodies fair to sight;\1787A body in his course can check him,\1788His doom, I therefore hope, will soon o'ertake him,\1789With bodies merged in nothingness and night.\1790\1791_Faust_. Ah, now I see thy high vocation!\1792In gross thou canst not harm creation,\1793And so in small hast now begun.\1794\1795_Mephistopheles_. And, truth to tell, e'en here, not much have done.\1796That which at nothing the gauntlet has hurled,\1797This, what's its name? this clumsy world,\1798So far as I have undertaken,\1799I have to own, remains unshaken\1800By wave, storm, earthquake, fiery brand.\1801Calm, after all, remain both sea and land.\1802And the damn'd living fluff, of man and beast the brood,\1803It laughs to scorn my utmost power.\1804I've buried myriads by the hour,\1805And still there circulates each hour a new, fresh blood.\1806It were enough to drive one to distraction!\1807Earth, water, air, in constant action,\1808Through moist and dry, through warm and cold,\1809Going forth in endless germination!\1810Had I not claimed of fire a reservation,\1811Not one thing I alone should hold.\1812\1813_Faust_. Thus, with the ever-working power\1814Of good dost thou in strife persist,\1815And in vain malice, to this hour,\1816Clenchest thy cold and devilish fist!\1817Go try some other occupation,\1818Singular son of Chaos, thou!\1819\1820_Mephistopheles_. We'll give the thing consideration,\1821When next we meet again! But now\1822Might I for once, with leave retire?\1823\1824_Faust_. Why thou shouldst ask I do not see.\1825Now that I know thee, when desire\1826Shall prompt thee, freely visit me.\1827Window and door give free admission.\1828At least there's left the chimney flue.\1829\1830_Mephistopheles_. Let me confess there's one small prohibition\1831\1832Lies on thy threshold, 'gainst my walking through,\1833The wizard-foot--[15]\1834\1835_Faust_. Does that delay thee?\1836The Pentagram disturbs thee? Now,\1837Come tell me, son of hell, I pray thee,\1838If that spell-binds thee, then how enteredst thou?\1839_Thou_ shouldst proceed more circumspectly!\1840\1841_Mephistopheles_. Mark well! the figure is not drawn correctly;\1842One of the angles, 'tis the outer one,\1843Is somewhat open, dost perceive it?\1844\1845_Faust_. That was a lucky hit, believe it!\1846And I have caught thee then? Well done!\1847'Twas wholly chance--I'm quite astounded!\1848\1849_Mephistopheles_. The _poodle_ took no heed,\1850as through the door he bounded;\1851The case looks differently now;\1852The _devil_ can leave the house no-how.\1853\1854_Faust_. The window offers free emission.\1855\1856_Mephistopheles_. Devils and ghosts are bound by this condition:\1857\1858The way they entered in, they must come out. Allow\1859In the first clause we're free, yet not so in the second.\1860\1861_Faust_. In hell itself, then, laws are reckoned?\1862Now that I like; so then, one may, in fact,\1863Conclude a binding compact with you gentry?\1864\1865_Mephistopheles_. Whatever promise on our books finds entry,\1866We strictly carry into act.\1867But hereby hangs a grave condition,\1868Of this we'll talk when next we meet;\1869But for the present I entreat\1870Most urgently your kind dismission.\1871\1872_Faust_. Do stay but just one moment longer, then,\1873Tell me good news and I'll release thee.\1874\1875_Mephistopheles_. Let me go now! I'll soon come back again,\1876Then may'st thou ask whate'er shall please thee.\1877\1878_Faust_. I laid no snare for thee, old chap!\1879Thou shouldst have watched and saved thy bacon.\1880Who has the devil in his trap\1881Must hold him fast, next time he'll not so soon be taken.\1882\1883_Mephistopheles_. Well, if it please thee, I'm content to stay\1884For company, on one condition,\1885That I, for thy amusement, may\1886To exercise my arts have free permission.\1887\1888_Faust_. I gladly grant it, if they be\1889Not disagreeable to me.\1890\1891_Mephistopheles_. Thy senses, friend, in this one hour\1892Shall grasp the world with clearer power\1893Than in a year's monotony.\1894The songs the tender spirits sing thee,\1895The lovely images they bring thee\1896Are not an idle magic play.\1897Thou shalt enjoy the daintiest savor,\1898Then feast thy taste on richest flavor,\1899Then thy charmed heart shall melt away.\1900Come, all are here, and all have been\1901Well trained and practised, now begin!\1902\1903_Spirits_. Vanish, ye gloomy\1904 Vaulted abysses!\1905 Tenderer, clearer,\1906 Friendlier, nearer,\1907 Ether, look through!\1908 O that the darkling\1909 Cloud-piles were riven!\1910 Starlight is sparkling,\1911 Purer is heaven,\1912 Holier sunshine\1913 Softens the blue.\1914 Graces, adorning\1915 Sons of the morning--\1916 Shadowy wavings--\1917 Float along over;\1918 Yearnings and cravings\1919 After them hover.\1920 Garments ethereal,\1921 Tresses aerial,\1922 Float o'er the flowers,\1923 Float o'er the bowers,\1924 Where, with deep feeling,\1925 Thoughtful and tender,\1926 Lovers, embracing,\1927 Life-vows are sealing.\1928 Bowers on bowers!\1929 Graceful and slender\1930 Vines interlacing!\1931 Purple and blushing,\1932 Under the crushing\1933 Wine-presses gushing,\1934 Grape-blood, o'erflowing,\1935 Down over gleaming\1936 Precious stones streaming,\1937 Leaves the bright glowing\1938 Tops of the mountains,\1939 Leaves the red fountains,\1940 Widening and rushing,\1941 Till it encloses\1942 Green hills all flushing,\1943 Laden with roses.\1944 Happy ones, swarming,\1945 Ply their swift pinions,\1946 Glide through the charming\1947 Airy dominions,\1948 Sunward still fleering,\1949 Onward, where peering\1950 Far o'er the ocean,\1951 Islets are dancing\1952 With an entrancing,\1953 Magical motion;\1954 Hear them, in chorus,\1955 Singing high o'er us;\1956 Over the meadows\1957 Flit the bright shadows;\1958 Glad eyes are glancing,\1959 Tiny feet dancing.\1960 Up the high ridges\1961 Some of them clamber,\1962 Others are skimming\1963 Sky-lakes of amber,\1964 Others are swimming\1965 Over the ocean;--\1966 All are in motion,\1967 Life-ward all yearning,\1968 Longingly turning\1969 To the far-burning\1970 Star-light of bliss.\1971\1972_Mephistopheles_. He sleeps! Ye airy, tender youths, your numbers\1973Have sung him into sweetest slumbers!\1974You put me greatly in your debt by this.\1975Thou art not yet the man that shall hold fast the devil!\1976Still cheat his senses with your magic revel,\1977Drown him in dreams of endless youth;\1978But this charm-mountain on the sill to level,\1979I need, O rat, thy pointed tooth!\1980Nor need I conjure long, they're near me,\1981E'en now comes scampering one, who presently will hear me.\1982\1983The sovereign lord of rats and mice,\1984Of flies and frogs and bugs and lice,\1985Commands thee to come forth this hour,\1986And gnaw this threshold with great power,\1987As he with oil the same shall smear--\1988Ha! with a skip e'en now thou'rt here!\1989But brisk to work! The point by which I'm cowered,\1990Is on the ledge, the farthest forward.\1991Yet one more bite, the deed is done.--\1992Now, Faust, until we meet again, dream on!\1993\1994_Faust_. [_Waking_.] Again has witchcraft triumphed o'er me?\1995Was it a ghostly show, so soon withdrawn?\1996I dream, the devil stands himself before me--wake, to find a poodle gone!\1997\1998\1999\2000\2001 STUDY-CHAMBER.\2002\2003 FAUST. MEPHISTOPHELES.\2004\2005\2006_Faust_. A knock? Walk in! Who comes again to tease me?\2007\2008_Mephistopheles_. 'Tis I.\2009\2010_Faust_. Come in!\2011\2012_Mephistopheles_. Must say it thrice, to please me.\2013\2014_Faust_. Come in then!\2015\2016_Mephistopheles_. That I like to hear.\2017We shall, I hope, bear with each other;\2018For to dispel thy crotchets, brother,\2019As a young lord, I now appear,\2020In scarlet dress, trimmed with gold lacing,\2021A stiff silk cloak with stylish facing,\2022A tall cock's feather in my hat,\2023A long, sharp rapier to defend me,\2024And I advise thee, short and flat,\2025In the same costume to attend me;\2026If thou wouldst, unembarrassed, see\2027What sort of thing this life may be.\2028\2029_Faust_. In every dress I well may feel the sore\2030Of this low earth-life's melancholy.\2031I am too old to live for folly,\2032Too young, to wish for nothing more.\2033Am I content with all creation?\2034Renounce! renounce! Renunciation--\2035Such is the everlasting song\2036That in the ears of all men rings,\2037Which every hour, our whole life long,\2038With brazen accents hoarsely sings.\2039With terror I behold each morning's light,\2040With bitter tears my eyes are filling,\2041To see the day that shall not in its flight\2042Fulfil for me one wish, not one, but killing\2043Every presentiment of zest\2044With wayward skepticism, chases\2045The fair creations from my breast\2046With all life's thousand cold grimaces.\2047And when at night I stretch me on my bed\2048And darkness spreads its shadow o'er me;\2049No rest comes then anigh my weary head,\2050Wild dreams and spectres dance before me.\2051The God who dwells within my soul\2052Can heave its depths at any hour;\2053Who holds o'er all my faculties control\2054Has o'er the outer world no power;\2055Existence lies a load upon my breast,\2056Life is a curse and death a long'd-for rest.\2057\2058_Mephistopheles_. And yet death never proves a wholly welcome guest.\2059\2060_Faust_. O blest! for whom, when victory's joy fire blazes,\2061Death round his brow the bloody laurel windeth,\2062Whom, weary with the dance's mazes,\2063He on a maiden's bosom findeth.\2064O that, beneath the exalted spirit's power,\2065I had expired, in rapture sinking!\2066\2067_Mephistopheles_. And yet I knew one, in a midnight hour,\2068Who a brown liquid shrank from drinking.\2069\2070_Faust_. Eaves-dropping seems a favorite game with thee.\2071\2072_Mephistopheles_. Omniscient am I not; yet much is known to me.\2073\2074_Faust_. Since that sweet tone, with fond appealing,\2075Drew me from witchcraft's horrid maze,\2076And woke the lingering childlike feeling\2077With harmonies of happier days;\2078My curse on all the mock-creations\2079That weave their spell around the soul,\2080And bind it with their incantations\2081And orgies to this wretched hole!\2082Accursed be the high opinion\2083Hugged by the self-exalting mind!\2084Accursed all the dream-dominion\2085That makes the dazzled senses blind!\2086Curs'd be each vision that befools us,\2087Of fame, outlasting earthly life!\2088Curs'd all that, as possession, rules us,\2089As house and barn, as child and wife!\2090Accurs'd be mammon, when with treasure\2091He fires our hearts for deeds of might,\2092When, for a dream of idle pleasure,\2093He makes our pillow smooth and light!\2094Curs'd be the grape-vine's balsam-juices!\2095On love's high grace my curses fall!\2096On faith! On hope that man seduces,\2097On patience last, not least, of all!\2098\2099_Choir of spirits_. [_Invisible_.] Woe! Woe!\2100 Thou hast ground it to dust,\2101 The beautiful world,\2102 With mighty fist;\2103 To ruins 'tis hurled;\2104 A demi-god's blow hath done it!\2105 A moment we look upon it,\2106 Then carry (sad duty!)\2107 The fragments over into nothingness,\2108 With tears unavailing\2109 Bewailing\2110 All the departed beauty.\2111 Lordlier\2112 Than all sons of men,\2113 Proudlier\2114 Build it again,\2115 Build it up in thy breast anew!\2116 A fresh career pursue,\2117 Before thee\2118 A clearer view,\2119 And, from the Empyréan,\2120 A new-born Paean\2121 Shall greet thee, too!\2122\2123_Mephistopheles_. Be pleased to admire\2124 My juvenile choir!\2125 Hear how they counsel in manly measure\2126 Action and pleasure!\2127 Out into life,\2128 Its joy and strife,\2129 Away from this lonely hole,\2130 Where senses and soul\2131 Rot in stagnation,\2132 Calls thee their high invitation.\2133\2134Give over toying with thy sorrow\2135Which like a vulture feeds upon thy heart;\2136Thou shalt, in the worst company, to-morrow\2137Feel that with men a man thou art.\2138Yet I do not exactly intend\2139Among the canaille to plant thee.\2140I'm none of your magnates, I grant thee;\2141Yet if thou art willing, my friend,\2142Through life to jog on beside me,\2143Thy pleasure in all things shall guide me,\2144To thee will I bind me,\2145A friend thou shalt find me,\2146And, e'en to the grave,\2147Shalt make me thy servant, make me thy slave!\2148\2149_Faust_. And in return what service shall I render?\2150\2151_Mephistopheles_. There's ample grace--no hurry, not the least.\2152\2153_Faust_. No, no, the devil is an egotist,\2154And does not easily \"for God's sake\" tender\2155That which a neighbor may assist.\2156Speak plainly the conditions, come!\2157'Tis dangerous taking such a servant home.\2158\2159_Mephistopheles_. I to thy service _here_ agree to bind me,\2160To run and never rest at call of thee;\2161When _over yonder_ thou shalt find me,\2162Then thou shalt do as much for me.\2163\2164_Faust_. I care not much what's over yonder:\2165When thou hast knocked this world asunder,\2166Come if it will the other may!\2167Up from this earth my pleasures all are streaming,\2168Down on my woes this earthly sun is beaming;\2169Let me but end this fit of dreaming,\2170Then come what will, I've nought to say.\2171I'll hear no more of barren wonder\2172If in that world they hate and love,\2173And whether in that future yonder\2174There's a Below and an Above.\2175\2176_Mephistopheles._ In such a mood thou well mayst venture.\2177Bind thyself to me, and by this indenture\2178Thou shalt enjoy with relish keen\2179Fruits of my arts that man had never seen.\2180\2181_Faust_. And what hast thou to give, poor devil?\2182Was e'er a human mind, upon its lofty level,\2183Conceived of by the like of thee?\2184Yet hast thou food that brings satiety,\2185Not satisfaction; gold that reftlessly,\2186Like quicksilver, melts down within\2187The hands; a game in which men never win;\2188A maid that, hanging on my breast,\2189Ogles a neighbor with her wanton glances;\2190Of fame the glorious godlike zest,\2191That like a short-lived meteor dances--\2192Show me the fruit that, ere it's plucked, will rot,\2193And trees from which new green is daily peeping!\2194\2195_Mephistopheles_. Such a requirement scares me not;\2196Such treasures have I in my keeping.\2197Yet shall there also come a time, good friend,\2198When we may feast on good things at our leisure.\2199\2200_Faust_. If e'er I lie content upon a lounge of pleasure--\2201Then let there be of me an end!\2202When thou with flattery canst cajole me,\2203Till I self-satisfied shall be,\2204When thou with pleasure canst befool me,\2205Be that the last of days for me!\2206I lay the wager!\2207\2208_Mephistopheles_. Done!\2209\2210_Faust_. And heartily!\2211Whenever to the passing hour\2212I cry: O stay! thou art so fair!\2213To chain me down I give thee power\2214To the black bottom of despair!\2215Then let my knell no longer linger,\2216Then from my service thou art free,\2217Fall from the clock the index-finger,\2218Be time all over, then, for me!\2219\2220_Mephistopheles_. Think well, for we shall hold you to the letter.\2221\2222_Faust_. Full right to that just now I gave;\2223I spoke not as an idle braggart better.\2224Henceforward I remain a slave,\2225What care I who puts on the setter?\2226\2227_Mephistopheles_. I shall this very day, at Doctor's-feast,[16]\2228My bounden service duly pay thee.\2229But one thing!--For insurance' sake, I pray thee,\2230Grant me a line or two, at least.\2231\2232_Faust_. Pedant! will writing gain thy faith, alone?\2233In all thy life, no man, nor man's word hast thou known?\2234Is't not enough that I the fatal word\2235That passes on my future days have spoken?\2236The world-stream raves and rushes (hast not heard?)\2237And shall a promise hold, unbroken?\2238Yet this delusion haunts the human breast,\2239Who from his soul its roots would sever?\2240Thrice happy in whose heart pure truth finds rest.\2241No sacrifice shall he repent of ever!\2242But from a formal, written, sealed attest,\2243As from a spectre, all men shrink forever.\2244The word and spirit die together,\2245Killed by the sight of wax and leather.\2246What wilt thou, evil sprite, from me?\2247Brass, marble, parchment, paper, shall it be?\2248Shall I subscribe with pencil, pen or graver?\2249Among them all thy choice is free.\2250\2251_Mephistopheles_. This rhetoric of thine to me\2252Hath a somewhat bombastic savor.\2253Any small scrap of paper's good.\2254Thy signature will need a single drop of blood.[17]\2255\2256_Faust_. If this will satisfy thy mood,\2257I will consent thy whim to favor.\2258\2259_Mephistopheles._ Quite a peculiar juice is blood.\2260\2261_Faust_. Fear not that I shall break this bond; O, never!\2262My promise, rightly understood,\2263Fulfils my nature's whole endeavor.\2264I've puffed myself too high, I see;\2265To _thy_ rank only I belong.\2266The Lord of Spirits scorneth me,\2267Nature, shut up, resents the wrong.\2268The thread of thought is snapt asunder,\2269All science to me is a stupid blunder.\2270Let us in sensuality's deep\2271Quench the passions within us blazing!\2272And, the veil of sorcery raising,\2273Wake each miracle from its long sleep!\2274Plunge we into the billowy dance,\2275The rush and roll of time and chance!\2276Then may pleasure and distress,\2277Disappointment and success,\2278Follow each other as fast as they will;\2279Man's restless activity flourishes still.\2280\2281_Mephistopheles_. No bound or goal is set to you;\2282Where'er you like to wander sipping,\2283And catch a tit-bit in your skipping,\2284Eschew all coyness, just fall to,\2285And may you find a good digestion!\2286\2287_Faust_. Now, once for all, pleasure is not the question.\2288I'm sworn to passion's whirl, the agony of bliss,\2289The lover's hate, the sweets of bitterness.\2290My heart, no more by pride of science driven,\2291Shall open wide to let each sorrow enter,\2292And all the good that to man's race is given,\2293I will enjoy it to my being's centre,\2294Through life's whole range, upward and downward sweeping,\2295Their weal and woe upon my bosom heaping,\2296Thus in my single self their selves all comprehending\2297And with them in a common shipwreck ending.\2298\2299_Mephistopheles_. O trust me, who since first I fell from heaven,\2300Have chewed this tough meat many a thousand year,\2301No man digests the ancient leaven,\2302No mortal, from the cradle to the bier.\2303Trust one of _us_--the _whole_ creation\2304To God alone belongs by right;\2305_He_ has in endless day his habitation,\2306_Us_ He hath made for utter night,\2307_You_ for alternate dark and light.\2308\2309_Faust_. But then I _will!\2310\2311_Mephistopheles_. Now that's worth hearing!\2312But one thing haunts me, the old song,\2313That time is short and art is long.\2314You need some slight advice, I'm fearing.\2315Take to you one of the poet-feather,\2316Let the gentleman's thought, far-sweeping,\2317Bring all the noblest traits together,\2318On your one crown their honors heaping,\2319The lion's mood\2320The stag's rapidity,\2321The fiery blood of Italy,\2322The Northman's hardihood.\2323Bid him teach thee the art of combining\2324Greatness of soul with fly designing,\2325And how, with warm and youthful passion,\2326To fall in love by plan and fashion.\2327Should like, myself, to come across 'm,\2328Would name him Mr. Microcosm.\2329\2330_Faust_. What am I then? if that for which my heart\2331Yearns with invincible endeavor,\2332The crown of man, must hang unreached forever?\2333\2334_Mephistopheles_. Thou art at last--just what thou art.\2335Pile perukes on thy head whose curls cannot be counted,\2336On yard-high buskins let thy feet be mounted,\2337Still thou art only what thou art.\2338\2339_Faust_. Yes, I have vainly, let me not deny it,\2340Of human learning ransacked all the stores,\2341And when, at last, I set me down in quiet,\2342There gushes up within no new-born force;\2343I am not by a hair's-breadth higher,\2344Am to the Infinite no nigher.\2345\2346_Mephistopheles_. My worthy sir, you see the matter\2347As people generally see;\2348But we must learn to take things better,\2349Before life pleasures wholly flee.\2350The deuce! thy head and all that's in it,\2351Hands, feet and ------ are thine;\2352What I enjoy with zest each minute,\2353Is surely not the less mine?\2354If I've six horses in my span,\2355Is it not mine, their every power?\2356I fly along as an undoubted man,\2357On four and twenty legs the road I scour.\2358Cheer up, then! let all thinking be,\2359And out into the world with me!\2360I tell thee, friend, a speculating churl\2361Is like a beast, some evil spirit chases\2362Along a barren heath in one perpetual whirl,\2363While round about lie fair, green pasturing places.\2364\2365_Faust_. But how shall we begin?\2366\2367_Mephistopheles_. We sally forth e'en now.\2368What martyrdom endurest thou!\2369What kind of life is this to be living,\2370Ennui to thyself and youngsters giving?\2371Let Neighbor Belly that way go!\2372To stay here threshing straw why car'st thou?\2373The best that thou canst think and know\2374To tell the boys not for the whole world dar'st thou.\2375E'en now I hear one in the entry.\2376\2377_Faust_. I have no heart the youth to see.\2378\2379_Mephistopheles_. The poor boy waits there like a sentry,\2380He shall not want a word from me.\2381Come, give me, now, thy robe and bonnet;\2382This mask will suit me charmingly.\2383 [_He puts them on_.]\2384Now for my wit--rely upon it!\2385'Twill take but fifteen minutes, I am sure.\2386Meanwhile prepare thyself to make the pleasant tour!\2387\2388 [_Exit_ FAUST.]\2389\2390_Mephistopheles [in_ FAUST'S _long gown_].\2391Only despise all human wit and lore,\2392The highest flights that thought can soar--\2393Let but the lying spirit blind thee,\2394And with his spells of witchcraft bind thee,\2395Into my snare the victim creeps.--\2396To him has destiny a spirit given,\2397That unrestrainedly still onward sweeps,\2398To scale the skies long since hath striven,\2399And all earth's pleasures overleaps.\2400He shall through life's wild scenes be driven,\2401And through its flat unmeaningness,\2402I'll make him writhe and stare and stiffen,\2403And midst all sensual excess,\2404His fevered lips, with thirst all parched and riven,\2405Insatiably shall haunt refreshment's brink;\2406And had he not, himself, his soul to Satan given,\2407Still must he to perdition sink!\2408\2409 [_Enter_ A SCHOLAR.]\2410\2411_Scholar_. I have but lately left my home,\2412And with profound submission come,\2413To hold with one some conversation\2414Whom all men name with veneration.\2415\2416_Mephistopheles._ Your courtesy greatly flatters me\2417A man like many another you see.\2418Have you made any applications elsewhere?\2419\2420_Scholar_. Let me, I pray, your teachings share!\2421With all good dispositions I come,\2422A fresh young blood and money some;\2423My mother would hardly hear of my going;\2424But I long to learn here something worth knowing.\2425\2426_Mephistopheles_. You've come to the very place for it, then.\2427\2428_Scholar_. Sincerely, could wish I were off again:\2429My soul already has grown quite weary\2430Of walls and halls, so dark and dreary,\2431The narrowness oppresses me.\2432One sees no green thing, not a tree.\2433On the lecture-seats, I know not what ails me,\2434Sight, hearing, thinking, every thing fails me.\2435\2436_Mephistopheles_. 'Tis all in use, we daily see.\2437The child takes not the mother's breast\2438In the first instance willingly,\2439But soon it feeds itself with zest.\2440So you at wisdom's breast your pleasure\2441Will daily find in growing measure.\2442\2443_Scholar_. I'll hang upon her neck, a raptured wooer,\2444But only tell me, who shall lead me to her?\2445\2446_Mephistopheles_. Ere you go further, give your views\2447As to which faculty you choose?\2448\2449_Scholar_. To be right learn'd I've long desired,\2450And of the natural world aspired\2451To have a perfect comprehension\2452In this and in the heavenly sphere.\2453\2454_Mephistopheles_. I see you're on the right track here;\2455But you'll have to give undivided attention.\2456\2457_Scholar_. My heart and soul in the work'll be found;\2458Only, of course, it would give me pleasure,\2459When summer holidays come round,\2460To have for amusement a little leisure.\2461\2462_Mephistopheles_. Use well the precious time, it flips away so,\2463Yet method gains you time, if I may say so.\2464I counsel you therefore, my worthy friend,\2465The logical leisures first to attend.\2466Then is your mind well trained and cased\2467In Spanish boots,[18] all snugly laced,\2468So that henceforth it can creep ahead\2469On the road of thought with a cautious tread.\2470And not at random shoot and strike,\2471Zig-zagging Jack-o'-lanthorn-like.\2472Then will you many a day be taught\2473That what you once to do had thought\2474Like eating and drinking, extempore,\2475Requires the rule of one, two, three.\2476It is, to be sure, with the fabric of thought,\2477As with the _chef d'uvre_ by weavers wrought,\2478Where a thousand threads one treadle plies,\2479Backward and forward the shuttles keep going,\2480Invisibly the threads keep flowing,\2481One stroke a thousand fastenings ties:\2482Comes the philosopher and cries:\2483I'll show you, it could not be otherwise:\2484The first being so, the second so,\2485The third and fourth must of course be so;\2486And were not the first and second, you see,\2487The third and fourth could never be.\2488The scholars everywhere call this clever,\2489But none have yet become weavers ever.\2490Whoever will know a live thing and expound it,\2491First kills out the spirit it had when he found it,\2492And then the parts are all in his hand,\2493Minus only the spiritual band!\2494Encheiresin naturæ's[19] the chemical name,\2495By which dunces themselves unwittingly shame.\2496\2497_Scholar_. Cannot entirely comprehend you.\2498\2499_Mephistopheles_. Better success will shortly attend you,\2500When you learn to analyze all creation\2501And give it a proper classification.\2502\2503_Scholar_. I feel as confused by all you've said,\2504As if 'twere a mill-wheel going round in my head!\2505\2506_Mephistopheles_. The next thing most important to mention,\2507Metaphysics will claim your attention!\2508There see that you can clearly explain\2509What fits not into the human brain:\2510For that which will not go into the head,\2511A pompous word will stand you in stead.\2512But, this half-year, at least, observe\2513From regularity never to swerve.\2514You'll have five lectures every day;\2515Be in at the stroke of the bell I pray!\2516And well prepared in every part;\2517Study each paragraph by heart,\2518So that you scarce may need to look\2519To see that he says no more than's in the book;\2520And when he dictates, be at your post,\2521As if you wrote for the Holy Ghost!\2522\2523_Scholar_. That caution is unnecessary!\2524I know it profits one to write,\2525For what one has in black and white,\2526He to his home can safely carry.\2527\2528_Mephistopheles_. But choose some faculty, I pray!\2529\2530_Scholar_. I feel a strong dislike to try the legal college.\2531\2532_Mephistopheles_. I cannot blame you much, I must acknowledge.\2533I know how this profession stands to-day.\2534Statutes and laws through all the ages\2535Like a transmitted malady you trace;\2536In every generation still it rages\2537And softly creeps from place to place.\2538Reason is nonsense, right an impudent suggestion;\2539Alas for thee, that thou a grandson art!\2540Of inborn law in which each man has part,\2541Of that, unfortunately, there's no question.\2542\2543_Scholar_. My loathing grows beneath your speech.\2544O happy he whom you shall teach!\2545To try theology I'm almost minded.\2546\2547_Mephistopheles_. I must not let you by zeal be blinded.\2548This is a science through whose field\2549Nine out of ten in the wrong road will blunder,\2550And in it so much poison lies concealed,\2551That mould you this mistake for physic, no great wonder.\2552Here also it were best, if only one you heard\2553And swore to that one master's word.\2554Upon the whole--words only heed you!\2555These through the temple door will lead you\2556Safe to the shrine of certainty.\2557\2558_Scholar_. Yet in the word a thought must surely be.\2559\2560_Mephistopheles_. All right! But one must not perplex himself about it;\2561For just where one must go without it,\2562The word comes in, a friend in need, to thee.\2563With words can one dispute most featly,\2564With words build up a system neatly,\2565In words thy faith may stand unshaken,\2566From words there can be no iota taken.\2567\2568_Scholar_. Forgive my keeping you with many questions,\2569Yet must I trouble you once more,\2570Will you not give me, on the score\2571Of medicine, some brief suggestions?\2572Three years are a short time, O God!\2573And then the field is quite too broad.\2574If one had only before his nose\2575Something else as a hint to follow!--\2576\2577_Mephistopheles_ [_aside_]. I'm heartily tired of this dry prose,\2578Must play the devil again out hollow.\2579 [_Aloud_.]\2580The healing art is quickly comprehended;\2581Through great and little world you look abroad,\2582And let it wag, when all is ended,\2583As pleases God.\2584Vain is it that your science sweeps the skies,\2585Each, after all, learns only what he can;\2586Who grasps the moment as it flies\2587He is the real man.\2588Your person somewhat takes the eye,\2589Boldness you'll find an easy science,\2590And if you on yourself rely,\2591Others on you will place reliance.\2592In the women's good graces seek first to be seated;\2593Their oh's and ah's, well known of old,\2594So thousand-fold,\2595Are all from a single point to be treated;\2596Be decently modest and then with ease\2597You may get the blind side of them when you please.\2598A title, first, their confidence must waken,\2599That _your_ art many another art transcends,\2600Then may you, lucky man, on all those trifles reckon\2601For which another years of groping spends:\2602Know how to press the little pulse that dances,\2603And fearlessly, with sly and fiery glances,\2604Clasp the dear creatures round the waist\2605To see how tightly they are laced.\2606\2607_Scholar_. This promises! One loves the How and Where to see!\2608\2609_Mephistopheles_. Gray, worthy friend, is all your theory\2610And green the golden tree of life.\2611\2612_Scholar_. I seem,\2613I swear to you, like one who walks in dream.\2614Might I another time, without encroaching,\2615Hear you the deepest things of wisdom broaching?\2616\2617_Mephistopheles_. So far as I have power, you may.\2618\2619_Scholar_. I cannot tear myself away,\2620Till I to you my album have presented.\2621Grant me one line and I'm contented!\2622\2623_Mephistopheles_. With pleasure.\2624 [_Writes and returns it_.]\2625\2626_Scholar [reads]._ Eritis sicut Deus, scientes bonum et malum.\2627 [_Shuts it reverently, and bows himself out_.]\2628\2629_Mephistopheles_.\2630Let but the brave old saw and my aunt, the serpent, guide thee,\2631And, with thy likeness to God, shall woe one day betide thee!\2632\2633_Faust [enters_]. Which way now shall we go?\2634\2635_Mephistopheles_. Which way it pleases thee.\2636The little world and then the great we see.\2637O with what gain, as well as pleasure,\2638Wilt thou the rollicking cursus measure!\2639\2640_Faust_. I fear the easy life and free\2641With my long beard will scarce agree.\2642'Tis vain for me to think of succeeding,\2643I never could learn what is called good-breeding.\2644In the presence of others I feel so small;\2645I never can be at my ease at all.\2646\2647_Mephistopheles_. Dear friend, vain trouble to yourself you're giving;\2648Whence once you trust yourself, you know the art of living.\2649\2650_Faust_. But how are we to start, I pray?\2651Where are thy servants, coach and horses?\2652\2653_Mephistopheles_. We spread the mantle, and away\2654It bears us on our airy courses.\2655But, on this bold excursion, thou\2656Must take no great portmanteau now.\2657A little oxygen, which I will soon make ready,\2658From earth uplifts us, quick and steady.\2659And if we're light, we'll soon surmount the sphere;\2660I give thee hearty joy in this thy new career.\2661\2662\2663\2664\2665 AUERBACH'S CELLAR IN LEIPSIC.[20]\2666\2667 _Carousal of Jolly Companions_.\2668\2669\2670_Frosch_.[21] Will nobody drink? Stop those grimaces!\2671I'll teach you how to be cutting your faces!\2672Laugh out! You're like wet straw to-day,\2673And blaze, at other times, like dry hay.\2674\2675_Brander_. 'Tis all your fault; no food for fun you bring,\2676Not a nonsensical nor nasty thing.\2677\2678_Frosch [dashes a glass of wine over his bead_]. There you have both!\2679\2680_Brander_. You hog twice o'er!\2681\2682_Frosch_. You wanted it, what would you more?\2683\2684_Siebel_ Out of the door with them that brawl!\2685Strike up a round; swill, shout there, one and all!\2686Wake up! Hurra!\2687\2688_Altmayer_. Woe's me, I'm lost! Bring cotton!\2689The rascal splits my ear-drum.\2690\2691_Siebel_. Only shout on!\2692When all the arches ring and yell,\2693Then does the base make felt its true ground-swell.\2694\2695_Frosch_. That's right, just throw him out, who undertakes to fret!\2696A! tara! lara da!\2697\2698_Altmayer_. A! tara! lara da!\2699\2700_Frosch_. Our whistles all are wet.\2701 [_Sings_.]\2702 The dear old holy Romish realm,\2703 What holds it still together?\2704\2705_Brander_. A sorry song! Fie! a political song!\2706A tiresome song! Thank God each morning therefor,\2707That you have not the Romish realm to care for!\2708At least I count it a great gain that He\2709Kaiser nor chancellor has made of me.\2710E'en we can't do without a head, however;\2711To choose a pope let us endeavour.\2712You know what qualification throws\2713The casting vote and the true man shows.\2714\2715_Frosch [sings_].\2716 Lady Nightingale, upward soar,\2717 Greet me my darling ten thousand times o'er.\2718\2719_Siebel_. No greetings to that girl! Who does so, I resent it!\2720\2721_Frosch_. A greeting and a kiss! And you will not prevent it!\2722 [_Sings.]_\2723 Draw the bolts! the night is clear.\2724 Draw the bolts! Love watches near.\2725 Close the bolts! the dawn is here.\2726\2727_Siebel_. Ay, sing away and praise and glorify your dear!\2728Soon I shall have my time for laughter.\2729The jade has jilted me, and will you too hereafter;\2730May Kobold, for a lover, be her luck!\2731At night may he upon the cross-way meet her;\2732Or, coming from the Blocksberg, some old buck\2733May, as he gallops by, a good-night bleat her!\2734A fellow fine of real flesh and blood\2735Is for the wench a deal too good.\2736She'll get from me but one love-token,\2737That is to have her window broken!\2738\2739_Brander [striking on the table_]. Attend! attend! To me give ear!\2740I know what's life, ye gents, confess it:\2741We've lovesick people sitting near,\2742And it is proper they should hear\2743A good-night strain as well as I can dress it.\2744Give heed! And hear a bran-new song!\2745Join in the chorus loud and strong!\2746 [_He sings_.]\2747 A rat in the cellar had built his nest,\2748 He daily grew sleeker and smoother,\2749 He lined his paunch from larder and chest,\2750 And was portly as Doctor Luther.\2751 The cook had set him poison one day;\2752 From that time forward he pined away\2753 As if he had love in his body.\2754\2755_Chorus [flouting_]. As if he had love in his body.\2756\2757_Brander_. He raced about with a terrible touse,\2758 From all the puddles went swilling,\2759 He gnawed and he scratched all over the house,\2760 His pain there was no stilling;\2761 He made full many a jump of distress,\2762 And soon the poor beast got enough, I guess,\2763 As if he had love in his body.\2764\2765_Chorus_. As if he had love in his body.\2766\2767_Brander_. With pain he ran, in open day,\2768 Right up into the kitchen;\2769 He fell on the hearth and there he lay\2770 Gasping and moaning and twitchin'.\2771 Then laughed the poisoner: \"He! he! he!\2772 He's piping on the last hole,\" said she,\2773 \"As if he had love in his body.\"\2774\2775_Chorus_. As if he had love in his body.\2776\2777_Siebel_. Just hear now how the ninnies giggle!\2778That's what I call a genuine art,\2779To make poor rats with poison wriggle!\2780\2781_Brander_. You take their case so much to heart?\2782\2783_Altmayer_. The bald pate and the butter-belly!\2784The sad tale makes him mild and tame;\2785He sees in the swollen rat, poor fellow!\2786His own true likeness set in a frame.\2787\2788\2789 FAUST _and_ MEPHISTOPHELES.\2790\2791_Mephistopheles_. Now, first of all, 'tis necessary\2792To show you people making merry,\2793That you may see how lightly life can run.\2794Each day to this small folk's a feast of fun;\2795Not over-witty, self-contented,\2796Still round and round in circle-dance they whirl,\2797As with their tails young kittens twirl.\2798If with no headache they're tormented,\2799Nor dunned by landlord for his pay,\2800They're careless, unconcerned, and gay.\2801\2802_Brander_. They're fresh from travel, one might know it,\2803Their air and manner plainly show it;\2804They came here not an hour ago.\2805\2806_Frosch_. Thou verily art right! My Leipsic well I know!\2807Paris in small it is, and cultivates its people.\2808\2809_Siebel_. What do the strangers seem to thee?\2810\2811_Frosch_. Just let me go! When wine our friendship mellows,\2812Easy as drawing a child's tooth 'twill be\2813To worm their secrets out of these two fellows.\2814They're of a noble house, I dare to swear,\2815They have a proud and discontented air.\2816\2817_Brander_. They're mountebanks, I'll bet a dollar!\2818\2819_Altmayer_. Perhaps.\2820\2821_Frosch_. I'll smoke them, mark you that!\2822\2823_Mephistopheles_ [_to Faust_]. These people never smell the old rat,\2824E'en when he has them by the collar.\2825\2826_Faust_. Fair greeting to you, sirs!\2827\2828_Siebel_. The same, and thanks to boot.\2829 [_In a low tone, faking a side look at MEPHISTOPHELES_.]\2830Why has the churl one halting foot?\2831\2832_Mephistopheles_. With your permission, shall we make one party?\2833Instead of a good drink, which get here no one can,\2834Good company must make us hearty.\2835\2836_Altmayer_. You seem a very fastidious man.\2837\2838_Frosch_. I think you spent some time at Rippach[22] lately?\2839You supped with Mister Hans not long since, I dare say?\2840\2841_Mephistopheles_. We passed him on the road today!\2842Fine man! it grieved us parting with him, greatly.\2843He'd much to say to us about his cousins,\2844And sent to each, through us, his compliments by dozens.\2845 [_He bows to_ FROSCH.]\2846\2847_Altmayer_ [_softly_]. You've got it there! he takes!\2848\2849_Siebel_. The chap don't want for wit!\2850\2851_Frosch_. I'll have him next time, wait a bit!\2852\2853_Mephistopheles_. If I mistook not, didn't we hear\2854Some well-trained voices chorus singing?\2855'Faith, music must sound finely here.\2856From all these echoing arches ringing!\2857\2858_Frosch_. You are perhaps a connoisseur?\2859\2860_Mephistopheles_. O no! my powers are small, I'm but an amateur.\2861\2862_Altmayer_. Give us a song!\2863\2864_Mephistopheles_. As many's you desire.\2865\2866_Siebel_. But let it be a bran-new strain!\2867\2868_Mephistopheles_. No fear of that! We've just come back from Spain,\2869The lovely land of wine and song and lyre.\2870 [_Sings_.]\2871 There was a king, right stately,\2872 Who had a great, big flea,--\2873\2874_Frosch_. Hear him! A flea! D'ye take there, boys? A flea!\2875I call that genteel company.\2876\2877_Mephistopheles_ [_resumes_]. There was a king, right stately,\2878 Who had a great, big flea,\2879 And loved him very greatly,\2880 As if his own son were he.\2881 He called the knight of stitches;\2882 The tailor came straightway:\2883 Ho! measure the youngster for breeches,\2884 And make him a coat to-day!\2885\2886_Brander_. But don't forget to charge the knight of stitches,\2887The measure carefully to take,\2888And, as he loves his precious neck,\2889To leave no wrinkles in the breeches.\2890\2891_Mephistopheles_. In silk and velvet splendid\2892 The creature now was drest,\2893 To his coat were ribbons appended,\2894 A cross was on his breast.\2895 He had a great star on his collar,\2896 Was a minister, in short;\2897 And his relatives, greater and smaller,\2898 Became great people at court.\2899\2900 The lords and ladies of honor\2901 Fared worse than if they were hung,\2902 The queen, she got them upon her,\2903 And all were bitten and stung,\2904 And did not dare to attack them,\2905 Nor scratch, but let them stick.\2906 We choke them and we crack them\2907 The moment we feel one prick.\2908\2909_Chorus_ [_loud_]. We choke 'em and we crack 'em\2910The moment we feel one prick.\2911\2912_Frosch_. Bravo! Bravo! That was fine!\2913\2914_Siebel_. So shall each flea his life resign!\2915\2916_Brander_. Point your fingers and nip them fine!\2917\2918_Altmayer_. Hurra for Liberty! Hurra for Wine!\2919\2920_Mephistopheles_. I'd pledge the goddess, too, to show how high I set her,\2921Right gladly, if your wines were just a trifle better.\2922\2923_Siebel_. Don't say that thing again, you fretter!\2924\2925_Mephistopheles_. Did I not fear the landlord to affront;\2926I'd show these worthy guests this minute\2927What kind of stuff our stock has in it.\2928\2929_Siebel_. Just bring it on! I'll bear the brunt.\2930\2931_Frosch_. Give us a brimming glass, our praise shall then be ample,\2932But don't dole out too small a sample;\2933For if I'm to judge and criticize,\2934I need a good mouthful to make me wise.\2935\2936_Altmayer_ [_softly_]. They're from the Rhine, as near as I can make it.\2937\2938_Mephistopheles_. Bring us a gimlet here!\2939\2940_Brander_. What shall be done with that?\2941You've not the casks before the door, I take it?\2942\2943_Altmayer_. The landlord's tool-chest there is easily got at.\2944\2945_Mephistopheles_ [_takes the gimlet_] (_to Frosch_).\2946What will you have? It costs but speaking.\2947\2948_Frosch_. How do you mean? Have you so many kinds?\2949\2950_Mephistopheles_. Enough to suit all sorts of minds.\2951\2952_Altmayer_. Aha! old sot, your lips already licking!\2953\2954_Frosch_. Well, then! if I must choose, let Rhine-wine fill my beaker,\2955Our fatherland supplies the noblest liquor.\2956\2957 MEPHISTOPHELES\2958 [_boring a hole in the rim of the table near the place\2959 where_ FROSCH _sits_].\2960Get us a little wax right off to make the stoppers!\2961\2962_Altmayer_. Ah, these are jugglers' tricks, and whappers!\2963\2964_Mephistopheles_ [_to Brander_]. And you?\2965\2966_Brander_. Champaigne's the wine for me,\2967But then right sparkling it must be!\2968\2969 [MEPHISTOPHELES _bores; meanwhile one of them has made\2970 the wax-stoppers and stopped the holes_.]\2971\2972_Brander_. Hankerings for foreign things will sometimes haunt you,\2973The good so far one often finds;\2974Your real German man can't bear the French, I grant you,\2975And yet will gladly drink their wines.\2976\2977_Siebel_ [_while Mephistopheles approaches his seat_].\2978I don't like sour, it sets my mouth awry,\2979Let mine have real sweetness in it!\2980\2981_Mephistopheles_ [_bores_]. Well, you shall have Tokay this minute.\2982\2983_Altmayer_. No, sirs, just look me in the eye!\2984I see through this, 'tis what the chaps call smoking.\2985\2986_Mephistopheles_. Come now! That would be serious joking,\2987To make so free with worthy men.\2988But quickly now! Speak out again!\2989With what description can I serve you?\2990\2991_Altmayer_. Wait not to ask; with any, then.\2992\2993 [_After all the holes are bored and stopped_.]\2994\2995_Mephistopheles_ [_with singular gestures_].\2996From the vine-stock grapes we pluck;\2997Horns grow on the buck;\2998Wine is juicy, the wooden table,\2999Like wooden vines, to give wine is able.\3000An eye for nature's depths receive!\3001Here is a miracle, only believe!\3002Now draw the plugs and drink your fill!\3003\3004 ALL\3005 [_drawing the stoppers, and catching each in his glass\3006 the wine he had desired_].\3007Sweet spring, that yields us what we will!\3008\3009_Mephistopheles_. Only be careful not a drop to spill!\3010 [_They drink repeatedly_.]\3011\3012_All_ [_sing_]. We're happy all as cannibals,\3013 Five hundred hogs together.\3014\3015_Mephistopheles_. Look at them now, they're happy as can be!\3016\3017_Faust_. To go would suit my inclination.\3018\3019_Mephistopheles_. But first give heed, their bestiality\3020Will make a glorious demonstration.\3021\3022 SIEBEL\3023 [_drinks carelessly; the wine is spilt upon the ground\3024 and turns to flame_].\3025Help! fire! Ho! Help! The flames of hell!\3026\3027_Mephistopheles [_conjuring the flame_].\3028Peace, friendly element, be still!\3029 [_To the Toper_.]\3030This time 'twas but a drop of fire from purgatory.\3031\3032_Siebel_. What does this mean? Wait there, or you'll be sorry!\3033It seems you do not know us well.\3034\3035_Frosch_. Not twice, in this way, will it do to joke us!\3036\3037_Altmayer_. I vote, we give him leave himself here _scarce_ to make.\3038\3039_Siebel_. What, sir! How dare you undertake\3040To carry on here your old hocus-pocus?\3041\3042_Mephistopheles_. Be still, old wine-cask!\3043\3044_Siebel_. Broomstick, you!\3045Insult to injury add? Confound you!\3046\3047_Brander_. Stop there! Or blows shall rain down round you!\3048\3049 ALTMAYER\3050 [_draws a stopper out of the table; fire flies at him_].\3051I burn! I burn!\3052\3053_Siebel_. Foul sorcery! Shame!\3054Lay on! the rascal is fair game!\3055\3056 [_They draw their knives and rush at_ MEPHISTOPHELES.]\3057\3058_Mephistopheles_ [_with a serious mien_].\3059Word and shape of air!\3060Change place, new meaning wear!\3061Be here--and there!\3062\3063 [_They stand astounded and look at each other_.]\3064\3065_Altmayer_. Where am I? What a charming land!\3066\3067_Frosch_. Vine hills! My eyes! Is't true?\3068\3069_Siebel_. And grapes, too, close at hand!\3070\3071_Brander_. Beneath this green see what a stem is growing!\3072See what a bunch of grapes is glowing!\3073 [_He seizes_ SIEBEL _by the nose. The rest do the same to each\3074 other and raise their knives._]\3075\3076_Mephistopheles_ [_as above_]. Loose, Error, from their eyes the band!\3077How Satan plays his tricks, you need not now be told of.\3078 [_He vanishes with_ FAUST, _the companions start back from each\3079 other_.]\3080\3081_Siebel_. What ails me?\3082\3083_Altmayer_. How?\3084\3085_Frosch_. Was that thy nose, friend, I had hold of?\3086\3087_Brander_ [_to Siebel_]. And I have thine, too, in my hand!\3088\3089_Altmayer_. O what a shock! through all my limbs 'tis crawling!\3090Get me a chair, be quick, I'm falling!\3091\3092_Frosch_. No, say what was the real case?\3093\3094_Siebel_. O show me where the churl is hiding!\3095Alive he shall not leave the place!\3096\3097_Altmayer_. Out through the cellar-door I saw him riding--\3098Upon a cask--he went full chase.--\3099Heavy as lead my feet are growing.\3100\3101 [_Turning towards the table_.]\3102\3103My! If the wine should yet be flowing.\3104\3105_Siebel_. 'Twas all deception and moonshine.\3106\3107_Frosch_. Yet I was sure I did drink wine.\3108\3109_Brander_. But how about the bunches, brother?\3110\3111_Altmayer_. After such miracles, I'll doubt no other!\3112\3113\3114\3115\3116 WITCHES' KITCHEN.\3117\3118 [_On a low hearth stands a great kettle over the fire. In the smoke,\3119which rises from it, are seen various forms. A female monkey[28] sits by\3120the kettle and skims it, and takes care that it does not run over. The\3121male monkey with the young ones sits close by, warming himself. Walls and\3122ceiling are adorned 'with the most singular witch-household stuff_.]\3123\3124\3125 FAUST. MEPHISTOPHELES.\3126\3127_Faust_. Would that this vile witch-business were well over!\3128Dost promise me I shall recover\3129In this hodge-podge of craziness?\3130From an old hag do I advice require?\3131And will this filthy cooked-up mess\3132My youth by thirty years bring nigher?\3133Woe's me, if that's the best you know!\3134Already hope is from my bosom banished.\3135Has not a noble mind found long ago\3136Some balsam to restore a youth that's vanished?\3137\3138_Mephistopheles_. My friend, again thou speakest a wise thought!\3139I know a natural way to make thee young,--none apter!\3140But in another book it must be sought,\3141And is a quite peculiar chapter.\3142\3143_Faust_. I beg to know it.\3144\3145_Mephistopheles_. Well! here's one that needs no pay,\3146No help of physic, nor enchanting.\3147Out to the fields without delay,\3148And take to hacking, digging, planting;\3149Run the same round from day to day,\3150A treadmill-life, contented, leading,\3151With simple fare both mind and body feeding,\3152Live with the beast as beast, nor count it robbery\3153Shouldst thou manure, thyself, the field thou reapest;\3154Follow this course and, trust to me,\3155For eighty years thy youth thou keepest!\3156\3157_Faust_. I am not used to that, I ne'er could bring me to it,\3158To wield the spade, I could not do it.\3159The narrow life befits me not at all.\3160\3161_Mephistopheles_. So must we on the witch, then, call.\3162\3163_Faust_. But why just that old hag? Canst thou\3164Not brew thyself the needful liquor?\3165\3166_Mephistopheles_. That were a pretty pastime now\3167I'd build about a thousand bridges quicker.\3168Science and art alone won't do,\3169The work will call for patience, too;\3170Costs a still spirit years of occupation:\3171Time, only, strengthens the fine fermentation.\3172To tell each thing that forms a part\3173Would sound to thee like wildest fable!\3174The devil indeed has taught the art;\3175To make it not the devil is able.\3176 [_Espying the animals_.]\3177See, what a genteel breed we here parade!\3178This is the house-boy! that's the maid!\3179 [_To the animals_.]\3180Where's the old lady gone a mousing?\3181\3182_The animals_. Carousing;\3183Out she went\3184By the chimney-vent!\3185\3186_Mephistopheles_. How long does she spend in gadding and storming?\3187\3188_The animals_. While we are giving our paws a warming.\3189\3190_Mephistopheles_ [_to Faust_]. How do you find the dainty creatures?\3191\3192_Faust_. Disgusting as I ever chanced to see!\3193\3194_Mephistopheles_. No! a discourse like this to me,\3195I own, is one of life's most pleasant features;\3196 [_To the animals_.]\3197Say, cursed dolls, that sweat, there, toiling!\3198What are you twirling with the spoon?\3199\3200_Animals_. A common beggar-soup we're boiling.\3201\3202_Mephistopheles_. You'll have a run of custom soon.\3203\3204 THE HE-MONKEY\3205 [_Comes along and fawns on_ MEPHISTOPHELES].\3206 O fling up the dice,\3207 Make me rich in a trice,\3208 Turn fortune's wheel over!\3209 My lot is right bad,\3210 If money I had,\3211 My wits would recover.\3212\3213_Mephistopheles_. The monkey'd be as merry as a cricket,\3214Would somebody give him a lottery-ticket!\3215\3216 [_Meanwhile the young monkeys have been playing with a great\3217 ball, which they roll backward and forward_.]\3218\3219_The monkey_. 'The world's the ball;\3220 See't rise and fall,\3221 Its roll you follow;\3222 Like glass it rings:\3223 Both, brittle things!\3224 Within 'tis hollow.\3225 There it shines clear,\3226 And brighter here,--\3227 I live--by 'Pollo!--\3228 Dear son, I pray,\3229 Keep hands away!\3230 _Thou_ shalt fall so!\3231 'Tis made of clay,\3232 Pots are, also.\3233\3234_Mephistopheles_. What means the sieve?\3235\3236_The monkey [takes it down_]. Wert thou a thief,\3237 'Twould show the thief and shame him.\3238 [_Runs to his mate and makes her look through_.]\3239 Look through the sieve!\3240 Discern'st thou the thief,\3241 And darest not name him?\3242\3243_Mephistopheles [approaching the fire_]. And what's this pot?\3244\3245_The monkeys_. The dunce! I'll be shot!\3246 He knows not the pot,\3247 He knows not the kettle!\3248\3249_Mephistopheles_. Impertinence! Hush!\3250\3251_The monkey_. Here, take you the brush,\3252 And sit on the settle!\3253 [_He forces_ MEPHISTOPHELES _to sit down_.]\3254\3255 FAUST\3256 [_who all this time has been standing before a looking-glass,\3257 now approaching and now receding from it_].\3258\3259What do I see? What heavenly face\3260Doth, in this magic glass, enchant me!\3261O love, in mercy, now, thy swiftest pinions grant me!\3262And bear me to her field of space!\3263Ah, if I seek to approach what doth so haunt me,\3264If from this spot I dare to stir,\3265Dimly as through a mist I gaze on her!--\3266The loveliest vision of a woman!\3267Such lovely woman can there be?\3268Must I in these reposing limbs naught human.\3269But of all heavens the finest essence see?\3270Was such a thing on earth seen ever?\3271\3272_Mephistopheles_. Why, when you see a God six days in hard work spend,\3273And then cry bravo at the end,\3274Of course you look for something clever.\3275Look now thy fill; I have for thee\3276Just such a jewel, and will lead thee to her;\3277And happy, whose good fortune it shall be,\3278To bear her home, a prospered wooer!\3279\3280[FAUST _keeps on looking into the mirror_. MEPHISTOPHELES\3281_stretching himself out on the settle and playing with the brush,\3282continues speaking_.]\3283Here sit I like a king upon his throne,\3284The sceptre in my hand,--I want the crown alone.\3285\3286 THE ANIMALS\3287 [_who up to this time have been going through all sorts of queer antics\3288 with each other, bring_ MEPHISTOPHELES _a crown with a loud cry_].\3289 O do be so good,--\3290 With sweat and with blood,\3291 To take it and lime it;\3292 [_They go about clumsily with the crown and break it into two pieces,\3293 with which they jump round_.]\3294 'Tis done now! We're free!\3295 We speak and we see,\3296 We hear and we rhyme it;\3297\3298_Faust [facing the mirror_]. Woe's me! I've almost lost my wits.\3299\3300_Mephistopheles [pointing to the animals_].\3301My head, too, I confess, is very near to spinning.\3302\3303_The animals_. And then if it hits\3304 And every thing fits,\3305 We've thoughts for our winning.\3306\3307_Faust [as before_]. Up to my heart the flame is flying!\3308Let us begone--there's danger near!\3309\3310_Mephistopheles [in the former position_].\3311Well, this, at least, there's no denying,\3312That we have undissembled poets here.\3313\3314[The kettle, which the she-monkey has hitherto left unmatched, begins to\3315run over; a great flame breaks out, which roars up the chimney. The_ WITCH\3316_comes riding down through the flame with a terrible outcry_.]\3317\3318_Witch_. Ow! Ow! Ow! Ow!\3319 The damned beast! The cursed sow!\3320 Neglected the kettle, scorched the Frau!\3321 The cursed crew!\3322 [_Seeing_ FAUST _and_ MEPHISTOPHELES.]\3323 And who are you?\3324 And what d'ye do?\3325 And what d'ye want?\3326 And who sneaked in?\3327 The fire-plague grim\3328 Shall light on him\3329 In every limb!\3330\3331 [_She makes a dive at the kettle with the skimmer and spatters flames\3332 at _FAUST, MEPHISTOPHELES_, and the creatures. These last whimper_.]\3333\3334 MEPHISTOPHELES\3335 [_inverting the brush which he holds in his hand, and striking\3336 among the glasses and pots_].\3337\3338 In two! In two!\3339 There lies the brew!\3340 There lies the glass!\3341 This joke must pass;\3342 For time-beat, ass!\3343 To thy melody, 'twill do.\3344 [_While the_ WITCH _starts back full of wrath and horror.]\3345Skeleton! Scarcecrow! Spectre! Know'st thou me,\3346Thy lord and master? What prevents my dashing\3347Right in among thy cursed company,\3348Thyself and all thy monkey spirits smashing?\3349Has the red waistcoat thy respect no more?\3350Has the cock's-feather, too, escaped attention?\3351Hast never seen this face before?\3352My name, perchance, wouldst have me mention?\3353\3354_The witch_. Pardon the rudeness, sir, in me!\3355But sure no cloven foot I see.\3356Nor find I your two ravens either.\3357\3358_Mephistopheles_. I'll let thee off for this once so;\3359For a long while has passed, full well I know,\3360Since the last time we met together.\3361The culture, too, which licks the world to shape,\3362The devil himself cannot escape;\3363The phantom of the North men's thoughts have left behind them,\3364Horns, tail, and claws, where now d'ye find them?\3365And for the foot, with which dispense I nowise can,\3366'Twould with good circles hurt my standing;\3367And so I've worn, some years, like many a fine young man,\3368False calves to make me more commanding.\3369\3370_The witch [dancing_]. O I shall lose my wits, I fear,\3371Do I, again, see Squire Satan here!\3372\3373_Mephistopheles_. Woman, the name offends my ear!\3374\3375_The witch_. Why so? What has it done to you?\3376\3377_Mephistopheles_. It has long since to fable-books been banished;\3378But men are none the better for it; true,\3379The wicked _one_, but not the wicked _ones_, has vanished.\3380Herr Baron callst thou me, then all is right and good;\3381I am a cavalier, like others. Doubt me?\3382Doubt for a moment of my noble blood?\3383See here the family arms I bear about me!\3384 [_He makes an indecent gesture.]\3385\3386The witch [laughs immoderately_]. Ha! ha! full well I know you, sir!\3387You are the same old rogue you always were!\3388\3389_Mephistopheles [to Faust_]. I pray you, carefully attend,\3390This is the way to deal with witches, friend.\3391\3392_The witch_. Now, gentles, what shall I produce?\3393\3394_Mephistopheles_. A right good glassful of the well-known juice!\3395And pray you, let it be the oldest;\3396Age makes it doubly strong for use.\3397\3398_The witch_. Right gladly! Here I have a bottle,\3399From which, at times, I wet my throttle;\3400Which now, not in the slightest, stinks;\3401A glass to you I don't mind giving;\3402 [_Softly_.]\3403But if this man, without preparing, drinks,\3404He has not, well you know, another hour for living.\3405\3406_Mephistopheles_.\3407'Tis a good friend of mine, whom it shall straight cheer up;\3408Thy kitchen's best to give him don't delay thee.\3409Thy ring--thy spell, now, quick, I pray thee,\3410And give him then a good full cup.\3411\3412[_The_ WITCH, _with strange gestures, draws a circle, and places singular\3413things in it; mean-while the glasses begin to ring, the kettle to sound\3414and make music. Finally, she brings a great book and places the monkeys in\3415the circle, whom she uses as a reading-desk and to hold the torches. She\3416beckons_ FAUST _to come to her_.]\3417\3418_Faust [to Mephistopheles_].\3419Hold! what will come of this? These creatures,\3420These frantic gestures and distorted features,\3421And all the crazy, juggling fluff,\3422I've known and loathed it long enough!\3423\3424_Mephistopheles_. Pugh! that is only done to smoke us;\3425Don't be so serious, my man!\3426She must, as Doctor, play her hocus-pocus\3427To make the dose work better, that's the plan.\3428 [_He constrains_ FAUST _to step into the circle_.]\3429\3430 THE WITCH\3431 [_beginning with great emphasis to declaim out of the book_]\3432\3433 Remember then!\3434 Of One make Ten,\3435 The Two let be,\3436 Make even Three,\3437 There's wealth for thee.\3438 The Four pass o'er!\3439 Of Five and Six,\3440 (The witch so speaks,)\3441 Make Seven and Eight,\3442 The thing is straight:\3443 And Nine is One\3444 And Ten is none--\3445 This is the witch's one-time-one![24]\3446\3447_Faust_. The old hag talks like one delirious.\3448\3449_Mephistopheles_. There's much more still, no less mysterious,\3450I know it well, the whole book sounds just so!\3451I've lost full many a year in poring o'er it,\3452For perfect contradiction, you must know,\3453A mystery stands, and fools and wise men bow before it,\3454The art is old and new, my son.\3455Men, in all times, by craft and terror,\3456With One and Three, and Three and One,\3457For truth have propagated error.\3458They've gone on gabbling so a thousand years;\3459Who on the fools would waste a minute?\3460Man generally thinks, if words he only hears,\3461Articulated noise must have some meaning in it.\3462\3463_The witch [goes on_]. Deep wisdom's power\3464 Has, to this hour,\3465 From all the world been hidden!\3466 Whoso thinks not,\3467 To him 'tis brought,\3468 To him it comes unbidden.\3469\3470_Faust_. What nonsense is she talking here?\3471My heart is on the point of cracking.\3472In one great choir I seem to hear\3473A hundred thousand ninnies clacking.\3474\3475_Mephistopheles_. Enough, enough, rare Sibyl, sing us\3476These runes no more, thy beverage bring us,\3477And quickly fill the goblet to the brim;\3478This drink may by my friend be safely taken:\3479Full many grades the man can reckon,\3480Many good swigs have entered him.\3481\3482 [_The_ WITCH, _with many ceremonies, pours the drink into a cup;\3483 as she puts it to_ FAUST'S _lips, there rises a light flame_.]\3484\3485_Mephistopheles_. Down with it! Gulp it down! 'Twill prove\3486All that thy heart's wild wants desire.\3487Thou, with the devil, hand and glove,[25]\3488And yet wilt be afraid of fire?\3489\3490 [_The_ WITCH _breaks the circle_; FAUST _steps out_.]\3491\3492_Mephistopheles_. Now briskly forth! No rest for thee!\3493\3494_The witch_. Much comfort may the drink afford you!\3495\3496_Mephistopheles [to the witch_]. And any favor you may ask of me,\3497I'll gladly on Walpurgis' night accord you.\3498\3499_The witch_. Here is a song, which if you sometimes sing,\3500'Twill stir up in your heart a special fire.\3501\3502_Mephistopheles [to Faust_]. Only make haste; and even shouldst thou tire,\3503Still follow me; one must perspire,\3504That it may set his nerves all quivering.\3505I'll teach thee by and bye to prize a noble leisure,\3506And soon, too, shalt thou feel with hearty pleasure,\3507How busy Cupid stirs, and shakes his nimble wing.\3508\3509_Faust_. But first one look in yonder glass, I pray thee!\3510Such beauty I no more may find!\3511\3512_Mephistopheles_. Nay! in the flesh thine eyes shall soon display thee\3513The model of all woman-kind.\3514 [_Softly_.]\3515Soon will, when once this drink shall heat thee,\3516In every girl a Helen meet thee!\3517\3518\3519\3520\3521 A STREET.\3522\3523 FAUST. MARGARET [_passing over_].\3524\3525_Faust_. My fair young lady, will it offend her\3526If I offer my arm and escort to lend her?\3527\3528_Margaret_. Am neither lady, nor yet am fair!\3529Can find my way home without any one's care.\3530 [_Disengages herself and exit_.]\3531\3532_Faust_. By heavens, but then the child _is_ fair!\3533I've never seen the like, I swear.\3534So modest is she and so pure,\3535And somewhat saucy, too, to be sure.\3536The light of the cheek, the lip's red bloom,\3537I shall never forget to the day of doom!\3538How me cast down her lovely eyes,\3539Deep in my soul imprinted lies;\3540How she spoke up, so curt and tart,\3541Ah, that went right to my ravished heart!\3542 [_Enter_ MEPHISTOPHELES.]\3543\3544_Faust_. Hark, thou shalt find me a way to address her!\3545\3546_Mephistopheles_. Which one?\3547\3548_Faust_. She just went by.\3549\3550_Mephistopheles_. What! She?\3551She came just now from her father confessor,\3552Who from all sins pronounced her free;\3553I stole behind her noiselessly,\3554'Tis an innocent thing, who, for nothing at all,\3555Must go to the confessional;\3556O'er such as she no power I hold!\3557\3558_Faust_. But then she's over fourteen years old.\3559\3560_Mephistopheles_. Thou speak'st exactly like Jack Rake,\3561Who every fair flower his own would make.\3562And thinks there can be no favor nor fame,\3563But one may straightway pluck the same.\3564But 'twill not always do, we see.\3565\3566_Faust_. My worthy Master Gravity,\3567Let not a word of the Law be spoken!\3568One thing be clearly understood,--\3569Unless I clasp the sweet, young blood\3570This night in my arms--then, well and good:\3571When midnight strikes, our bond is broken.\3572\3573_Mephistopheles_. Reflect on all that lies in the way!\3574I need a fortnight, at least, to a day,\3575For finding so much as a way to reach her.\3576\3577_Faust_. Had I seven hours, to call my own,\3578Without the devil's aid, alone\3579I'd snare with ease so young a creature.\3580\3581_Mephistopheles_. You talk quite Frenchman-like to-day;\3582But don't be vexed beyond all measure.\3583What boots it thus to snatch at pleasure?\3584'Tis not so great, by a long way,\3585As if you first, with tender twaddle,\3586And every sort of fiddle-faddle,\3587Your little doll should mould and knead,\3588As one in French romances may read.\3589\3590_Faust_. My appetite needs no such spur.\3591\3592_Mephistopheles_. Now, then, without a jest or slur,\3593I tell you, once for all, such speed\3594With the fair creature won't succeed.\3595Nothing will here by storm be taken;\3596We must perforce on intrigue reckon.\3597\3598_Faust_. Get me some trinket the angel has blest!\3599Lead me to her chamber of rest!\3600Get me a 'kerchief from her neck,\3601A garter get me for love's sweet sake!\3602\3603_Mephistopheles_. To prove to you my willingness\3604To aid and serve you in this distress;\3605You shall visit her chamber, by me attended,\3606Before the passing day is ended.\3607\3608_Faust_. And see her, too? and have her?\3609\3610_Mephistopheles_. Nay!\3611She will to a neighbor's have gone away.\3612Meanwhile alone by yourself you may,\3613There in her atmosphere, feast at leisure\3614And revel in dreams of future pleasure.\3615\3616_Faust_. Shall we start at once?\3617\3618_Mephistopheles_. 'Tis too early yet.\3619\3620_Faust_. Some present to take her for me you must get.\3621\3622 [_Exit_.]\3623\3624_Mephistopheles_. Presents already! Brave! He's on the right foundation!\3625Full many a noble place I know,\3626And treasure buried long ago;\3627Must make a bit of exploration.\3628\3629 [_Exit_.]\3630\3631\3632\3633\3634 EVENING.\3635\3636 _A little cleanly Chamber_.\3637\3638MARGARET [_braiding and tying up her hair_.]\3639I'd give a penny just to say\3640What gentleman that was to-day!\3641How very gallant he seemed to be,\3642He's of a noble family;\3643That I could read from his brow and bearing--\3644And he would not have otherwise been so daring.\3645 [_Exit_.]\3646\3647 FAUST. MEPHISTOPHELES.\3648\3649_Mephistopheles_. Come in, step softly, do not fear!\3650\3651_Faust [after a pause_]. Leave me alone, I prithee, here!\3652\3653_Mephistopheles [peering round_]. Not every maiden keeps so neat.\3654 [_Exit_.]\3655\3656_Faust [gazing round_]. Welcome this hallowed still retreat!\3657Where twilight weaves its magic glow.\3658Seize on my heart, love-longing, sad and sweet,\3659That on the dew of hope dost feed thy woe!\3660How breathes around the sense of stillness,\3661Of quiet, order, and content!\3662In all this poverty what fulness!\3663What blessedness within this prison pent!\3664 [_He throws himself into a leathern chair by the bed_.]\3665Take me, too! as thou hast, in years long flown,\3666In joy and grief, so many a generation!\3667Ah me! how oft, on this ancestral throne,\3668Have troops of children climbed with exultation!\3669Perhaps, when Christmas brought the Holy Guest,\3670My love has here, in grateful veneration\3671The grandsire's withered hand with child-lips prest.\3672I feel, O maiden, circling me,\3673Thy spirit of grace and fulness hover,\3674Which daily like a mother teaches thee\3675The table-cloth to spread in snowy purity,\3676And even, with crinkled sand the floor to cover.\3677Dear, godlike hand! a touch of thine\3678Makes this low house a heavenly kingdom slime!\3679And here!\3680 [_He lifts a bed-curtain_.]\3681What blissful awe my heart thrills through!\3682Here for long hours could I linger.\3683Here, Nature! in light dreams, thy airy finger\3684The inborn angel's features drew!\3685Here lay the child, when life's fresh heavings\3686Its tender bosom first made warm,\3687And here with pure, mysterious weavings\3688The spirit wrought its godlike form!\3689 And thou! What brought thee here? what power\3690Stirs in my deepest soul this hour?\3691What wouldst thou here? What makes thy heart so sore?\3692Unhappy Faust! I know thee thus no more.\3693 Breathe I a magic atmosphere?\3694The will to enjoy how strong I felt it,--\3695And in a dream of love am now all melted!\3696Are we the sport of every puff of air?\3697 And if she suddenly should enter now,\3698How would she thy presumptuous folly humble!\3699Big John-o'dreams! ah, how wouldst thou\3700Sink at her feet, collapse and crumble!\3701\3702_Mephistopheles_. Quick, now! She comes! I'm looking at her.\3703\3704_Faust_. Away! Away! O cruel fate!\3705\3706_Mephistopheles_. Here is a box of moderate weight;\3707I got it somewhere else--no matter!\3708Just shut it up, here, in the press,\3709I swear to you, 'twill turn her senses;\3710I meant the trifles, I confess,\3711To scale another fair one's fences.\3712True, child is child and play is play.\3713\3714_Faust_. Shall I? I know not.\3715\3716_Mephistopheles_. Why delay?\3717You mean perhaps to keep the bauble?\3718If so, I counsel you to spare\3719From idle passion hours so fair,\3720And me, henceforth, all further trouble.\3721I hope you are not avaricious!\3722I rub my hands, I scratch my head--\3723 [_He places the casket in the press and locks it up again_.]\3724 (Quick! Time we sped!)--\3725That the dear creature may be led\3726And moulded by your will and wishes;\3727And you stand here as glum,\3728As one at the door of the auditorium,\3729As if before your eyes you saw\3730In bodily shape, with breathless awe,\3731Metaphysics and physics, grim and gray!\3732Away!\3733 [_Exit_.]\3734\3735_Margaret [with a lamp_]. It seems so close, so sultry here.\3736 [_She opens the window_.]\3737Yet it isn't so very warm out there,\3738I feel--I know not how--oh dear!\3739I wish my mother 'ld come home, I declare!\3740I feel a shudder all over me crawl--\3741I'm a silly, timid thing, that's all!\3742 [_She begins to sing, while undressing_.]\3743 There was a king in Thulè,\3744 To whom, when near her grave,\3745 The mistress he loved so truly\3746 A golden goblet gave.\3747\3748 He cherished it as a lover,\3749 He drained it, every bout;\3750 His eyes with tears ran over,\3751 As oft as he drank thereout.\3752\3753 And when he found himself dying,\3754 His towns and cities he told;\3755 Naught else to his heir denying\3756 Save only the goblet of gold.\3757\3758 His knights he straightway gathers\3759 And in the midst sate he,\3760 In the banquet hall of the fathers\3761 In the castle over the sea.\3762\3763 There stood th' old knight of liquor,\3764 And drank the last life-glow,\3765 Then flung the holy beaker\3766 Into the flood below.\3767\3768 He saw it plunging, drinking\3769 And sinking in the roar,\3770 His eyes in death were sinking,\3771 He never drank one drop more.\3772 [_She opens the press, to put away her clothes,\3773 and discovers the casket_.]\3774\3775How in the world came this fine casket here?\3776I locked the press, I'm very clear.\3777I wonder what's inside! Dear me! it's very queer!\3778Perhaps 'twas brought here as a pawn,\3779In place of something mother lent.\3780Here is a little key hung on,\3781A single peep I shan't repent!\3782What's here? Good gracious! only see!\3783I never saw the like in my born days!\3784On some chief festival such finery\3785Might on some noble lady blaze.\3786How would this chain become my neck!\3787Whose may this splendor be, so lonely?\3788 [_She arrays herself in it, and steps before the glass_.]\3789Could I but claim the ear-rings only!\3790A different figure one would make.\3791What's beauty worth to thee, young blood!\3792May all be very well and good;\3793What then? 'Tis half for pity's sake\3794They praise your pretty features.\3795Each burns for gold,\3796All turns on gold,--\3797Alas for us! poor creatures!\3798\3799\3800\3801\3802 PROMENADE.\3803\3804\3805 FAUST [_going up and down in thought_.] MEPHISTOPHELES _to him_.\3806\3807_Mephistopheles_. By all that ever was jilted! By all the infernal fires!\3808I wish I knew something worse, to curse as my heart desires!\3809\3810_Faust_. What griping pain has hold of thee?\3811Such grins ne'er saw I in the worst stage-ranter!\3812\3813_Mephistopheles_. Oh, to the devil I'd give myself instanter,\3814If I were not already he!\3815\3816_Faust_. Some pin's loose in your head, old fellow!\3817That fits you, like a madman thus to bellow!\3818\3819_Mephistopheles_. Just think, the pretty toy we got for Peg,\3820A priest has hooked, the cursed plague I--\3821The thing came under the eye of the mother,\3822And caused her a dreadful internal pother:\3823The woman's scent is fine and strong;\3824Snuffles over her prayer-book all day long,\3825And knows, by the smell of an article, plain,\3826Whether the thing is holy or profane;\3827And as to the box she was soon aware\3828There could not be much blessing there.\3829\"My child,\" she cried, \"unrighteous gains\3830Ensnare the soul, dry up the veins.\3831We'll consecrate it to God's mother,\3832She'll give us some heavenly manna or other!\"\3833Little Margaret made a wry face; \"I see\3834'Tis, after all, a gift horse,\" said she;\3835\"And sure, no godless one is he\3836Who brought it here so handsomely.\"\3837The mother sent for a priest (they're cunning);\3838Who scarce had found what game was running,\3839When he rolled his greedy eyes like a lizard,\3840And, \"all is rightly disposed,\" said he,\3841\"Who conquers wins, for a certainty.\3842The church has of old a famous gizzard,\3843She calls it little whole lands to devour,\3844Yet never a surfeit got to this hour;\3845The church alone, dear ladies; _sans_ question,\3846Can give unrighteous gains digestion.\"\3847\3848_Faust_. That is a general pratice, too,\3849Common alike with king and Jew.\3850\3851_Mephistopheles_. Then pocketed bracelets and chains and rings\3852As if they were mushrooms or some such things,\3853With no more thanks, (the greedy-guts!)\3854Than if it had been a basket of nuts,\3855Promised them all sorts of heavenly pay--\3856And greatly edified were they.\3857\3858_Faust_. And Margery?\3859\3860_Mephistopheles_. Sits there in distress,\3861And what to do she cannot guess,\3862The jewels her daily and nightly thought,\3863And he still more by whom they were brought.\3864\3865_Faust._ My heart is troubled for my pet.\3866Get her at once another set!\3867The first were no great things in their way.\3868\3869_Mephistopheles._ O yes, my gentleman finds all child's play!\3870\3871_Faust._ And what I wish, that mind and do!\3872Stick closely to her neighbor, too.\3873Don't be a devil soft as pap,\3874And fetch me some new jewels, old chap!\3875\3876_Mephistopheles._ Yes, gracious Sir, I will with pleasure.\3877 [_Exit_ FAUST.]\3878Such love-sick fools will puff away\3879Sun, moon, and stars, and all in the azure,\3880To please a maiden's whimsies, any day.\3881 [_Exit._]\3882\3883\3884\3885\3886 THE NEIGHBOR'S HOUSE.\3887\3888\3889 MARTHA [_alone]._\3890My dear good man--whom God forgive!\3891He has not treated me well, as I live!\3892Right off into the world he's gone\3893And left me on the straw alone.\3894I never did vex him, I say it sincerely,\3895I always loved him, God knows how dearly.\3896 [_She weeps_.]\3897Perhaps he's dead!--O cruel fate!--\3898If I only had a certificate!\3899\3900 _Enter_ MARGARET.\3901Dame Martha!\3902\3903_Martha_. What now, Margery?\3904\3905_Margaret_. I scarce can keep my knees from sinking!\3906Within my press, again, not thinking,\3907I find a box of ebony,\3908With things--can't tell how grand they are,--\3909More splendid than the first by far.\3910\3911_Martha_. You must not tell it to your mother,\3912She'd serve it as she did the other.\3913\3914_Margaret_. Ah, only look! Behold and see!\3915\3916_Martha [puts them on her_]. Fortunate thing! I envy thee!\3917\3918_Margaret._ Alas, in the street or at church I never\3919Could be seen on any account whatever.\3920\3921_Martha._ Come here as often as you've leisure,\3922And prink yourself quite privately;\3923Before the looking-glass walk up and down at pleasure,\3924Fine times for both us 'twill be;\3925Then, on occasions, say at some great feast,\3926Can show them to the world, one at a time, at least.\3927A chain, and then an ear-pearl comes to view;\3928Your mother may not see, we'll make some pretext, too.\3929\3930_Margaret._ Who could have brought both caskets in succession?\3931There's something here for just suspicion!\3932 [_A knock._ ]\3933Ah, God! If that's my mother--then!\3934\3935_Martha_ [_peeping through the blind_].\3936'Tis a strange gentleman--come in!\3937\3938 [_Enter_ MEPHISTOPHELES.]\3939Must, ladies, on your kindness reckon\3940To excuse the freedom I have taken;\3941 [_Steps back with profound respect at seeing_ MARGARET.]\3942I would for Dame Martha Schwerdtlein inquire!\3943\3944_Martha._ I'm she, what, sir, is your desire?\3945\3946_Mephistopheles_ [_aside to her_]. I know your face, for now 'twill do;\3947A distinguished lady is visiting you.\3948For a call so abrupt be pardon meted,\3949This afternoon it shall be repeated.\3950\3951_Martha [aloud]._ For all the world, think, child! my sakes!\3952The gentleman you for a lady takes.\3953\3954_Margaret_. Ah, God! I am a poor young blood;\3955The gentleman is quite too good;\3956The jewels and trinkets are none of my own.\3957\3958_Mephistopheles_. Ah, 'tis not the jewels and trinkets alone;\3959Her look is so piercing, so _distinguè_!\3960How glad I am to be suffered to stay.\3961\3962_Martha_. What bring you, sir? I long to hear--\3963\3964_Mephistopheles_. Would I'd a happier tale for your ear!\3965I hope you'll forgive me this one for repeating:\3966Your husband is dead and sends you a greeting.\3967\3968_Martha_. Is dead? the faithful heart! Woe! Woe!\3969My husband dead! I, too, shall go!\3970\3971_Margaret_. Ah, dearest Dame, despair not thou!\3972\3973_Mephistopheles_ Then, hear the mournful story now!\3974\3975_Margaret_. Ah, keep me free from love forever,\3976I should never survive such a loss, no, never!\3977\3978_Mephistopheles_. Joy and woe, woe and joy, must have each other.\3979\3980_Martha_. Describe his closing hours to me!\3981\3982_Mephistopheles_. In Padua lies our departed brother,\3983In the churchyard of St. Anthony,\3984In a cool and quiet bed lies sleeping,\3985In a sacred spot's eternal keeping.\3986\3987_Martha_. And this was all you had to bring me?\3988\3989_Mephistopheles_. All but one weighty, grave request!\3990\"Bid her, when I am dead, three hundred masses sing me!\"\3991With this I have made a clean pocket and breast.\3992\3993_Martha_. What! not a medal, pin nor stone?\3994Such as, for memory's sake, no journeyman will lack,\3995Saved in the bottom of his sack,\3996And sooner would hunger, be a pauper--\3997\3998_Mephistopheles_. Madam, your case is hard, I own!\3999But blame him not, he squandered ne'er a copper.\4000He too bewailed his faults with penance sore,\4001Ay, and his wretched luck bemoaned a great deal more.\4002\4003_Margaret_. Alas! that mortals so unhappy prove!\4004I surely will for him pray many a requiem duly.\4005\4006_Mephistopheles_. You're worthy of a spouse this moment; truly\4007You are a child a man might love.\4008\4009_Margaret_. It's not yet time for that, ah no!\4010\4011_Mephistopheles_. If not a husband, say, meanwhile a beau.\4012It is a choice and heavenly blessing,\4013Such a dear thing to one's bosom pressing.\4014\4015_Margaret_. With us the custom is not so.\4016\4017_Mephistopheles_. Custom or not! It happens, though.\4018\4019_Martha_. Tell on!\4020\4021_Mephistopheles_. I slood beside his bed, as he lay dying,\4022Better than dung it was somewhat,--\4023Half-rotten straw; but then, he died as Christian ought,\4024And found an unpaid score, on Heaven's account-book lying.\4025\"How must I hate myself,\" he cried, \"inhuman!\4026So to forsake my business and my woman!\4027Oh! the remembrance murders me!\4028Would she might still forgive me this side heaven!\"\4029\4030_Martha_ [_weeping_]. The dear good man! he has been long forgiven.\4031\4032_Mephistopheles_. \"But God knows, I was less to blame than she.\"\4033\4034_Martha_. A lie! And at death's door! abominable!\4035\4036_Mephistopheles_. If I to judge of men half-way am able,\4037He surely fibbed while passing hence.\4038\"Ways to kill time, (he said)--be sure, I did not need them;\4039First to get children--and then bread to feed them,\4040And bread, too, in the widest sense,\4041And even to eat my bit in peace could not be thought on.\"\4042\4043_Martha_. Has he all faithfulness, all love, so far forgotten,\4044The drudgery by day and night!\4045\4046_Mephistopheles_. Not so, he thought of you with all his might.\4047He said: \"When I from Malta went away,\4048For wife and children my warm prayers ascended;\4049And Heaven so far our cause befriended,\4050Our ship a Turkish cruiser took one day,\4051Which for the mighty Sultan bore a treasure.\4052Then valor got its well-earned pay,\4053And I too, who received but my just measure,\4054A goodly portion bore away.\"\4055\4056_Martha_. How? Where? And he has left it somewhere buried?\4057\4058_Mephistopheles_. Who knows which way by the four winds 'twas carried?\4059He chanced to take a pretty damsel's eye,\4060As, a strange sailor, he through Naples jaunted;\4061All that she did for him so tenderly,\4062E'en to his blessed end the poor man haunted.\4063\4064_Martha_. The scamp! his children thus to plunder!\4065And could not all his troubles sore\4066Arrest his vile career, I wonder?\4067\4068_Mephistopheles_. But mark! his death wipes off the score.\4069Were I in your place now, good lady;\4070One year I'd mourn him piously\4071And look about, meanwhiles, for a new flame already.\4072\4073_Martha_. Ah, God! another such as he\4074I may not find with ease on this side heaven!\4075Few such kind fools as this dear spouse of mine.\4076Only to roving he was too much given,\4077And foreign women and foreign wine,\4078And that accursed game of dice.\4079\4080_Mephistopheles_. Mere trifles these; you need not heed 'em,\4081If he, on his part, not o'er-nice,\4082Winked at, in you, an occasional freedom.\4083I swear, on that condition, too,\4084I would, myself, 'change rings with you!\4085\4086_Martha_. The gentleman is pleased to jest now!\4087\4088_Mephistopheles [aside_]. I see it's now high time I stirred!\4089She'd take the very devil at his word.\4090 [_To_ MARGERY.]\4091How is it with your heart, my best, now?\4092\4093_Margaret_. What means the gentleman?\4094\4095_Mephistopheles. [aside_]. Thou innocent young heart!\4096 [_Aloud_.]\4097Ladies, farewell!\4098\4099_Margaret_. Farewell!\4100\4101_Martha_. But quick, before we part!--\4102I'd like some witness, vouching truly\4103Where, how and when my love died and was buried duly.\4104I've always paid to order great attention,\4105Would of his death read some newspaper mention.\4106\4107_Mephistopheles_. Ay, my dear lady, in the mouths of two\4108Good witnesses each word is true;\4109I've a friend, a fine fellow, who, when you desire,\4110Will render on oath what you require.\4111I'll bring him here.\4112\4113_Martha_. O pray, sir, do!\4114\4115_Mephistopheles_. And this young lady 'll be there too?\4116Fine boy! has travelled everywhere,\4117And all politeness to the fair.\4118\4119_Margaret_. Before him shame my face must cover.\4120\4121_Mephistopheles_. Before no king the wide world over!\4122\4123_Martha_. Behind the house, in my garden, at leisure,\4124We'll wait this eve the gentlemen's pleasure.\4125\4126\4127\4128\4129 STREET.\4130\4131 FAUST. MEPHISTOPHELES.\4132\4133_Faust_. How now? What progress? Will 't come right?\4134\4135_Mephistopheles_. Ha, bravo? So you're all on fire?\4136Full soon you'll see whom you desire.\4137In neighbor Martha's grounds we are to meet tonight.\4138That woman's one of nature's picking\4139For pandering and gipsy-tricking!\4140\4141_Faust_. So far, so good!\4142\4143_Mephistopheles_. But one thing we must do.\4144\4145_Faust_. Well, one good turn deserves another, true.\4146\4147_Mephistopheles_. We simply make a solemn deposition\4148That her lord's bones are laid in good condition\4149In holy ground at Padua, hid from view.\4150\4151_Faust_. That's wise! But then we first must make the journey thither?\4152\4153_Mephistopheles. Sancta simplicitas_! no need of such to-do;\4154Just swear, and ask not why or whether.\4155\4156_Faust_. If that's the best you have, the plan's not worth a feather.\4157\4158_Mephistopheles_. O holy man! now that's just you!\4159In all thy life hast never, to this hour,\4160To give false witness taken pains?\4161Have you of God, the world, and all that it contains,\4162Of man, and all that stirs within his heart and brains,\4163Not given definitions with great power,\4164Unscrupulous breast, unblushing brow?\4165And if you search the matter clearly,\4166Knew you as much thereof, to speak sincerely,\4167As of Herr Schwerdtlein's death? Confess it now!\4168\4169_Faust_. Thou always wast a sophist and a liar.\4170\4171_Mephistopheles_. Ay, if one did not look a little nigher.\4172For will you not, in honor, to-morrow\4173Befool poor Margery to her sorrow,\4174And all the oaths of true love borrow?\4175\4176_Faust_. And from the heart, too.\4177\4178_Mephistopheles_. Well and fair!\4179Then there'll be talk of truth unending,\4180Of love o'ermastering, all transcending--\4181Will every word be heart-born there?\4182\4183_Faust_. Enough! It will!--If, for the passion\4184That fills and thrills my being's frame,\4185I find no name, no fit expression,\4186Then, through the world, with all my senses, ranging,\4187Seek what most strongly speaks the unchanging.\4188And call this glow, within me burning,\4189Infinite--endless--endless yearning,\4190Is that a devilish lying game?\4191\4192_Mephistopheles_. I'm right, nathless!\4193\4194_Faust_. Now, hark to me--\4195This once, I pray, and spare my lungs, old fellow--\4196Whoever _will_ be right, and has a tongue to bellow,\4197Is sure to be.\4198But come, enough of swaggering, let's be quit,\4199For thou art right, because I must submit.\4200\4201\4202\4203\4204 GARDEN.\4205\4206 MARGARET _on_ FAUST'S _arm_. MARTHA _with_ MEPHISTOPHELES.\4207 [_Promenading up and down_.]\4208\4209_Margaret_. The gentleman but makes me more confused\4210\4211With all his condescending goodness.\4212Men who have travelled wide are used\4213To bear with much from dread of rudeness;\4214I know too well, a man of so much mind\4215In my poor talk can little pleasure find.\4216\4217_Faust_. One look from thee, one word, delights me more\4218Than this world's wisdom o'er and o'er.\4219 [_Kisses her hand_.]\4220\4221_Margaret_. Don't take that trouble, sir! How could you bear to kiss it?\4222A hand so ugly, coarse, and rough!\4223How much I've had to do! must I confess it--\4224Mother is more than close enough.\4225 [_They pass on_.]\4226\4227_Martha_. And you, sir, are you always travelling so?\4228\4229_Mephistopheles_. Alas, that business forces us to do it!\4230With what regret from many a place we go,\4231Though tenderest bonds may bind us to it!\4232\4233_Martha_. 'Twill do in youth's tumultuous maze\4234To wander round the world, a careless rover;\4235But soon will come the evil days,\4236And then, a lone dry stick, on the grave's brink to hover,\4237For that nobody ever prays.\4238\4239_Mephistopheles_. The distant prospect shakes my reason.\4240\4241_Martha_. Then, worthy sir, bethink yourself in season.\4242 [_They pass on_.]\4243\4244_Margaret_. Yes, out of sight and out of mind!\4245Politeness you find no hard matter;\4246But you have friends in plenty, better\4247Than I, more sensible, more refined.\4248\4249_Faust_. Dear girl, what one calls sensible on earth,\4250Is often vanity and nonsense.\4251\4252_Margaret_. How?\4253\4254_Faust_. Ah, that the pure and simple never know\4255Aught of themselves and all their holy worth!\4256That meekness, lowliness, the highest measure\4257Of gifts by nature lavished, full and free--\4258\4259_Margaret_. One little moment, only, think of me,\4260I shall to think of you have ample time and leisure.\4261\4262_Faust_. You're, may be, much alone?\4263\4264_Margaret_. Our household is but small, I own,\4265And yet needs care, if truth were known.\4266We have no maid; so I attend to cooking, sweeping,\4267Knit, sew, do every thing, in fact;\4268And mother, in all branches of housekeeping,\4269Is so exact!\4270Not that she need be tied so very closely down;\4271We might stand higher than some others, rather;\4272A nice estate was left us by my father,\4273A house and garden not far out of town.\4274Yet, after all, my life runs pretty quiet;\4275My brother is a soldier,\4276My little sister's dead;\4277With the dear child indeed a wearing life I led;\4278And yet with all its plagues again would gladly try it,\4279The child was such a pet.\4280\4281_Faust_. An angel, if like thee!\4282\4283_Margaret_. I reared her and she heartily loved me.\4284She and my father never saw each other,\4285He died before her birth, and mother\4286Was given up, so low she lay,\4287But me, by slow degrees, recovered, day by day.\4288Of course she now, long time so feeble,\4289To nurse the poor little worm was unable,\4290And so I reared it all alone,\4291With milk and water; 'twas my own.\4292Upon my bosom all day long\4293It smiled and sprawled and so grew strong.\4294\4295_Faust_. Ah! thou hast truly known joy's fairest flower.\4296\4297_Margaret_. But no less truly many a heavy hour.\4298The wee thing's cradle stood at night\4299Close to my bed; did the least thing awake her,\4300My sleep took flight;\4301'Twas now to nurse her, now in bed to take her,\4302Then, if she was not still, to rise,\4303Walk up and down the room, and dance away her cries,\4304And at the wash-tub stand, when morning streaked the skies;\4305Then came the marketing and kitchen-tending,\4306Day in, day out, work never-ending.\4307One cannot always, sir, good temper keep;\4308But then it sweetens food and sweetens sleep.\4309 [_They pass on_.]\4310\4311_Martha_. But the poor women suffer, you must own:\4312A bachelor is hard of reformation.\4313\4314_Mephistopheles_. Madam, it rests with such as you, alone,\4315To help me mend my situation.\4316\4317_Martha_. Speak plainly, sir, has none your fancy taken?\4318Has none made out a tender flame to waken?\4319\4320_Mephistopheles_. The proverb says: A man's own hearth,\4321And a brave wife, all gold and pearls are worth.\4322\4323_Martha_. I mean, has ne'er your heart been smitten slightly?\4324\4325_Mephistopheles_. I have, on every hand, been entertained politely.\4326\4327_Martha_. Have you not felt, I mean, a serious intention?\4328\4329_Mephistopheles_.\4330Jesting with women, that's a thing one ne'er should mention.\4331\4332_Martha_. Ah, you misunderstand!\4333\4334_Mephistopheles_. It grieves me that I should!\4335But this I understand--that you are good.\4336 [_They pass on_.]\4337\4338_Faust_. So then, my little angel recognized me,\4339As I came through the garden gate?\4340\4341_Margaret_. Did not my downcast eyes show you surprised me?\4342\4343_Faust_. And thou forgav'st that liberty, of late?\4344That impudence of mine, so daring,\4345As thou wast home from church repairing?\4346\4347_Margaret_. I was confused, the like was new to me;\4348No one could say a word to my dishonor.\4349Ah, thought I, has he, haply, in thy manner\4350Seen any boldness--impropriety?\4351It seemed as if the feeling seized him,\4352That he might treat this girl just as it pleased him.\4353Let me confess! I knew not from what cause,\4354Some flight relentings here began to threaten danger;\4355I know, right angry with myself I was,\4356That I could not be angrier with the stranger.\4357\4358_Faust_. Sweet darling!\4359\4360_Margaret_. Let me once!\4361\4362 [_She plucks a china-aster and picks off the leaves one after another_.]\4363\4364_Faust_. What's that for? A bouquet?\4365\4366_Margaret_. No, just for sport.\4367\4368_Faust_. How?\4369\4370_Margaret_. Go! you'll laugh at me; away!\4371 [_She picks and murmurs to herself_.]\4372\4373_Faust_. What murmurest thou?\4374\4375_Margaret [half aloud_]. He loves me--loves me not.\4376\4377_Faust_. Sweet face! from heaven that look was caught!\4378\4379_Margaret [goes on_]. Loves me--not--loves me--not--\4380 [_picking off the last leaf with tender joy_]\4381He loves me!\4382\4383_Faust_. Yes, my child! And be this floral word\4384An oracle to thee. He loves thee!\4385Knowest thou all it mean? He loves thee!\4386 [_Clasping both her hands_.]\4387\4388_Margaret_. What thrill is this!\4389\4390_Faust_. O, shudder not! This look of mine.\4391This pressure of the hand shall tell thee\4392What cannot be expressed:\4393Give thyself up at once and feel a rapture,\4394An ecstasy never to end!\4395Never!--It's end were nothing but blank despair.\4396No, unending! unending!\4397\4398 [MARGARET _presses his hands, extricates herself, and runs away.\4399 He stands a moment in thought, then follows her_].\4400\4401_Martha [coming_]. The night falls fast.\4402\4403_Mephistopheles_. Ay, and we must away.\4404\4405_Martha_. If it were not for one vexation,\4406I would insist upon your longer stay.\4407Nobody seems to have no occupation,\4408No care nor labor,\4409Except to play the spy upon his neighbor;\4410And one becomes town-talk, do whatsoe'er they may.\4411But where's our pair of doves?\4412\4413_Mephistopheles_. Flown up the alley yonder.\4414Light summer-birds!\4415\4416_Martha_. He seems attached to her.\4417\4418_Mephistopheles_. No wonder.\4419And she to him. So goes the world, they say.\4420\4421\4422\4423\4424 A SUMMER-HOUSE.\4425\4426 MARGARET [_darts in, hides behind the door, presses the tip of\4427 her finger to her lips, and peeps through the crack_].\4428\4429_Margaret_. He comes!\4430\4431 _Enter_ FAUST.\4432\4433_Faust_. Ah rogue, how sly thou art!\4434I've caught thee!\4435 [_Kisses her_.]\4436\4437_Margaret [embracing him and returning the kiss_].\4438Dear good man! I love thee from my heart!\4439\4440 [MEPHISTOPHELES _knocks_.]\4441\4442_Faust [stamping_]. Who's there?\4443\4444_Mephistopheles_. A friend!\4445\4446_Faust_. A beast!\4447\4448_Mephistopheles_. Time flies, I don't offend you?\4449\4450_Martha [entering_]. Yes, sir, 'tis growing late.\4451\4452_Faust_. May I not now attend you?\4453\4454_Margaret_. Mother would--Fare thee well!\4455\4456_Faust_. And must I leave thee then? Farewell!\4457\4458_Martha_. Adé!\4459\4460_Margaret_. Till, soon, we meet again!\4461\4462 [_Exeunt_ FAUST _and_ MEPHISTOPHELES.]\4463\4464_Margaret_. Good heavens! what such a man's one brain\4465Can in itself alone contain!\4466I blush my rudeness to confess,\4467And answer all he says with yes.\4468Am a poor, ignorant child, don't see\4469What he can possibly find in me.\4470\4471 [_Exit_.]\4472\4473\4474\4475\4476 WOODS AND CAVERN.\4477\4478_Faust_ [_alone_]. Spirit sublime, thou gav'st me, gav'st me all\4479For which I prayed. Thou didst not lift in vain\4480Thy face upon me in a flame of fire.\4481Gav'st me majestic nature for a realm,\4482The power to feel, enjoy her. Not alone\4483A freezing, formal visit didst thou grant;\4484Deep down into her breast invitedst me\4485To look, as if she were a bosom-friend.\4486The series of animated things\4487Thou bidst pass by me, teaching me to know\4488My brothers in the waters, woods, and air.\4489And when the storm-swept forest creaks and groans,\4490The giant pine-tree crashes, rending off\4491The neighboring boughs and limbs, and with deep roar\4492The thundering mountain echoes to its fall,\4493To a safe cavern then thou leadest me,\4494Showst me myself; and my own bosom's deep\4495Mysterious wonders open on my view.\4496And when before my sight the moon comes up\4497With soft effulgence; from the walls of rock,\4498From the damp thicket, slowly float around\4499The silvery shadows of a world gone by,\4500And temper meditation's sterner joy.\4501 O! nothing perfect is vouchsafed to man:\4502I feel it now! Attendant on this bliss,\4503Which brings me ever nearer to the Gods,\4504Thou gav'st me the companion, whom I now\4505No more can spare, though cold and insolent;\4506He makes me hate, despise myself, and turns\4507Thy gifts to nothing with a word--a breath.\4508He kindles up a wild-fire in my breast,\4509Of restless longing for that lovely form.\4510Thus from desire I hurry to enjoyment,\4511And in enjoyment languish for desire.\4512\4513 _Enter_ MEPHISTOPHELES.\4514\4515_Mephistopheles_. Will not this life have tired you by and bye?\4516I wonder it so long delights you?\4517'Tis well enough for once the thing to try;\4518Then off to where a new invites you!\4519\4520_Faust_. Would thou hadst something else to do,\4521That thus to spoil my joy thou burnest.\4522\4523_Mephistopheles_. Well! well! I'll leave thee, gladly too!--\4524Thou dar'st not tell me that in earnest!\4525'Twere no great loss, a fellow such as you,\4526So crazy, snappish, and uncivil.\4527One has, all day, his hands full, and more too;\4528To worm out from him what he'd have one do,\4529Or not do, puzzles e'en the very devil.\4530\4531_Faust_. Now, that I like! That's just the tone!\4532Wants thanks for boring me till I'm half dead!\4533\4534_Mephistopheles_. Poor son of earth, if left alone,\4535What sort of life wouldst thou have led?\4536How oft, by methods all my own,\4537I've chased the cobweb fancies from thy head!\4538And but for me, to parts unknown\4539Thou from this earth hadst long since fled.\4540What dost thou here through cave and crevice groping?\4541Why like a hornèd owl sit moping?\4542And why from dripping stone, damp moss, and rotten wood\4543Here, like a toad, suck in thy food?\4544Delicious pastime! Ah, I see,\4545Somewhat of Doctor sticks to thee.\4546\4547_Faust_. What new life-power it gives me, canst thou guess--\4548This conversation with the wilderness?\4549Ay, couldst thou dream how sweet the employment,\4550Thou wouldst be devil enough to grudge me my enjoyment.\4551\4552_Mephistopheles_. Ay, joy from super-earthly fountains!\4553By night and day to lie upon the mountains,\4554To clasp in ecstasy both earth and heaven,\4555Swelled to a deity by fancy's leaven,\4556Pierce, like a nervous thrill, earth's very marrow,\4557Feel the whole six days' work for thee too narrow,\4558To enjoy, I know not what, in blest elation,\4559Then with thy lavish love o'erflow the whole creation.\4560Below thy sight the mortal cast,\4561And to the glorious vision give at last--\4562 [_with a gesture_]\4563I must not say what termination!\4564\4565_Faust_. Shame on thee!\4566\4567_Mephistopheles_. This displeases thee; well, surely,\4568Thou hast a right to say \"for shame\" demurely.\4569One must not mention that to chaste ears--never,\4570Which chaste hearts cannot do without, however.\4571And, in one word, I grudge you not the pleasure\4572Of lying to yourself in moderate measure;\4573But 'twill not hold out long, I know;\4574Already thou art fast recoiling,\4575And soon, at this rate, wilt be boiling\4576With madness or despair and woe.\4577Enough of this! Thy sweetheart sits there lonely,\4578And all to her is close and drear.\4579Her thoughts are on thy image only,\4580She holds thee, past all utterance, dear.\4581At first thy passion came bounding and rushing\4582Like a brooklet o'erflowing with melted snow and rain;\4583Into her heart thou hast poured it gushing:\4584And now thy brooklet's dry again.\4585Methinks, thy woodland throne resigning,\4586'Twould better suit so great a lord\4587The poor young monkey to reward\4588For all the love with which she's pining.\4589She finds the time dismally long;\4590Stands at the window, sees the clouds on high\4591Over the old town-wall go by.\4592\"Were I a little bird!\"[26] so runneth her song\4593All the day, half the night long.\4594At times she'll be laughing, seldom smile,\4595At times wept-out she'll seem,\4596Then again tranquil, you'd deem,--\4597Lovesick all the while.\4598\4599_Faust_. Viper! Viper!\4600\4601_Mephistopheles_ [_aside_]. Ay! and the prey grows riper!\4602\4603_Faust_. Reprobate! take thee far behind me!\4604No more that lovely woman name!\4605Bid not desire for her sweet person flame\4606Through each half-maddened sense, again to blind me!\4607\4608_Mephistopheles_. What then's to do? She fancies thou hast flown,\4609And more than half she's right, I own.\4610\4611_Faust_. I'm near her, and, though far away, my word,\4612I'd not forget her, lose her; never fear it!\4613I envy e'en the body of the Lord,\4614Oft as those precious lips of hers draw near it.\4615\4616_Mephistopheles_. No doubt; and oft my envious thought reposes\4617On the twin-pair that feed among the roses.\4618\4619_Faust_. Out, pimp!\4620\4621_Mephistopheles_. Well done! Your jeers I find fair game for laughter.\4622The God, who made both lad and lass,\4623Unwilling for a bungling hand to pass,\4624Made opportunity right after.\4625But come! fine cause for lamentation!\4626Her chamber is your destination,\4627And not the grave, I guess.\4628\4629_Faust_. What are the joys of heaven while her fond arms enfold me?\4630O let her kindling bosom hold me!\4631Feel I not always her distress?\4632The houseless am I not? the unbefriended?\4633The monster without aim or rest?\4634That, like a cataract, from rock to rock descended\4635To the abyss, with maddening greed possest:\4636She, on its brink, with childlike thoughts and lowly,--\4637Perched on the little Alpine field her cot,--\4638This narrow world, so still and holy\4639Ensphering, like a heaven, her lot.\4640And I, God's hatred daring,\4641Could not be content\4642The rocks all headlong bearing,\4643By me to ruins rent,--\4644Her, yea her peace, must I o'erwhelm and bury!\4645This victim, hell, to thee was necessary!\4646Help me, thou fiend, the pang soon ending!\4647What must be, let it quickly be!\4648And let her fate upon my head descending,\4649Crush, at one blow, both her and me.\4650\4651_Mephistopheles_. Ha! how it seethes again and glows!\4652Go in and comfort her, thou dunce!\4653Where such a dolt no outlet sees or knows,\4654He thinks he's reached the end at once.\4655None but the brave deserve the fair!\4656Thou _hast_ had devil enough to make a decent show of.\4657For all the world a devil in despair\4658Is just the insipidest thing I know of.\4659\4660\4661\4662\4663 MARGERY'S ROOM.\4664\4665 MARGERY [_at the spinning-wheel alone_].\4666 My heart is heavy,\4667 My peace is o'er;\4668 I never--ah! never--\4669 Shall find it more.\4670 While him I crave,\4671 Each place is the grave,\4672 The world is all\4673 Turned into gall.\4674 My wretched brain\4675 Has lost its wits,\4676 My wretched sense\4677 Is all in bits.\4678 My heart is heavy,\4679 My peace is o'er;\4680 I never--ah! never--\4681 Shall find it more.\4682 Him only to greet, I\4683 The street look down,\4684 Him only to meet, I\4685 Roam through town.\4686 His lofty step,\4687 His noble height,\4688 His smile of sweetness,\4689 His eye of might,\4690 His words of magic,\4691 Breathing bliss,\4692 His hand's warm pressure\4693 And ah! his kiss.\4694 My heart is heavy,\4695 My peace is o'er,\4696 I never--ah! never--\4697 Shall find it more.\4698 My bosom yearns\4699 To behold him again.\4700 Ah, could I find him\4701 That best of men!\4702 I'd tell him then\4703 How I did miss him,\4704 And kiss him\4705 As much as I could,\4706 Die on his kisses\4707 I surely should!\4708\4709\4710\4711\4712 MARTHA'S GARDEN.\4713\4714 MARGARET. FAUST.\4715\4716_Margaret_. Promise me, Henry.\4717\4718_Faust_. What I can.\4719\4720_Margaret_. How is it now with thy religion, say?\4721I know thou art a dear good man,\4722But fear thy thoughts do not run much that way.\4723\4724_Faust_. Leave that, my child! Enough, thou hast my heart;\4725For those I love with life I'd freely part;\4726I would not harm a soul, nor of its faith bereave it.\4727\4728_Margaret_. That's wrong, there's one true faith--one must believe it?\4729\4730_Faust_. Must one?\4731\4732_Margaret_. Ah, could I influence thee, dearest!\4733The holy sacraments thou scarce reverest.\4734\4735_Faust_. I honor them.\4736\4737_Margaret_. But yet without desire.\4738Of mass and confession both thou'st long begun to tire.\4739Believest thou in God?\4740\4741_Faust_. My. darling, who engages\4742To say, I do believe in God?\4743The question put to priests or sages:\4744Their answer seems as if it sought\4745To mock the asker.\4746\4747_Margaret_. Then believ'st thou not?\4748\4749_Faust_. Sweet face, do not misunderstand my thought!\4750Who dares express him?\4751And who confess him,\4752Saying, I do believe?\4753A man's heart bearing,\4754What man has the daring\4755To say: I acknowledge him not?\4756The All-enfolder,\4757The All-upholder,\4758Enfolds, upholds He not\4759Thee, me, Himself?\4760Upsprings not Heaven's blue arch high o'er thee?\4761Underneath thee does not earth stand fast?\4762See'st thou not, nightly climbing,\4763Tenderly glancing eternal stars?\4764Am I not gazing eye to eye on thee?\4765Through brain and bosom\4766Throngs not all life to thee,\4767Weaving in everlasting mystery\4768Obscurely, clearly, on all sides of thee?\4769Fill with it, to its utmost stretch, thy breast,\4770And in the consciousness when thou art wholly blest,\4771Then call it what thou wilt,\4772Joy! Heart! Love! God!\4773I have no name to give it!\4774All comes at last to feeling;\4775Name is but sound and smoke,\4776Beclouding Heaven's warm glow.\4777\4778_Margaret_. That is all fine and good, I know;\4779And just as the priest has often spoke,\4780Only with somewhat different phrases.\4781\4782_Faust_. All hearts, too, in all places,\4783Wherever Heaven pours down the day's broad blessing,\4784Each in its way the truth is confessing;\4785And why not I in mine, too?\4786\4787_Margaret_. Well, all have a way that they incline to,\4788But still there is something wrong with thee;\4789Thou hast no Christianity.\4790\4791_Faust_. Dear child!\4792\4793_Margaret_. It long has troubled me\4794That thou shouldst keep such company.\4795\4796_Faust_. How so?\4797\4798_Margaret_. The man whom thou for crony hast,\4799Is one whom I with all my soul detest.\4800Nothing in all my life has ever\4801Stirred up in my heart such a deep disfavor\4802As the ugly face that man has got.\4803\4804_Faust_. Sweet plaything; fear him not!\4805\4806_Margaret_. His presence stirs my blood, I own.\4807I can love almost all men I've ever known;\4808But much as thy presence with pleasure thrills me,\4809That man with a secret horror fills me.\4810And then for a knave I've suspected him long!\4811God pardon me, if I do him wrong!\4812\4813_Faust_. To make up a world such odd sticks are needed.\4814\4815_Margaret_. Shouldn't like to live in the house where he did!\4816Whenever I see him coming in,\4817He always wears such a mocking grin.\4818Half cold, half grim;\4819One sees, that naught has interest for him;\4820'Tis writ on his brow and can't be mistaken,\4821No soul in him can love awaken.\4822I feel in thy arms so happy, so free,\4823I yield myself up so blissfully,\4824He comes, and all in me is closed and frozen now.\4825\4826_Faust_. Ah, thou mistrustful angel, thou!\4827\4828_Margaret_. This weighs on me so sore,\4829That when we meet, and he is by me,\4830I feel, as if I loved thee now no more.\4831Nor could I ever pray, if he were nigh me,\4832That eats the very heart in me;\4833Henry, it must be so with thee.\4834\4835_Faust_. 'Tis an antipathy of thine!\4836\4837_Margaret_. Farewell!\4838\4839_Faust_. Ah, can I ne'er recline\4840One little hour upon thy bosom, pressing\4841My heart to thine and all my soul confessing?\4842\4843_Margaret_. Ah, if my chamber were alone,\4844This night the bolt should give thee free admission;\4845But mother wakes at every tone,\4846And if she had the least suspicion,\4847Heavens! I should die upon the spot!\4848\4849_Faust_. Thou angel, need of that there's not.\4850Here is a flask! Three drops alone\4851Mix with her drink, and nature\4852Into a deep and pleasant sleep is thrown.\4853\4854_Margaret_. Refuse thee, what can I, poor creature?\4855I hope, of course, it will not harm her!\4856\4857_Faust_. Would I advise it then, my charmer?\4858\4859_Margaret_. Best man, when thou dost look at me,\4860I know not what, moves me to do thy will;\4861I have already done so much for thee,\4862Scarce any thing seems left me to fulfil.\4863 [_Exit_.]\4864\4865 Enter_ MEPHISTOPHELES.\4866\4867_Mephtftopheles_. The monkey! is she gone?\4868\4869_Faust_. Hast played the spy again?\4870\4871_Mephistopheles_. I overheard it all quite fully.\4872The Doctor has been well catechized then?\4873Hope it will sit well on him truly.\4874The maidens won't rest till they know if the men\4875Believe as good old custom bids them do.\4876They think: if there he yields, he'll follow our will too.\4877\4878_Faust_. Monster, thou wilt not, canst not see,\4879How this true soul that loves so dearly,\4880Yet hugs, at every cost,\4881The faith which she\4882Counts Heaven itself, is horror-struck sincerely\4883To think of giving up her dearest man for lost.\4884\4885_Mephistopheles_. Thou supersensual, sensual wooer,\4886A girl by the nose is leading thee.\4887\4888_Faust_. Abortion vile of fire and sewer!\4889\4890_Mephistopheles_. In physiognomy, too, her skill is masterly.\4891When I am near she feels she knows not how,\4892My little mask some secret meaning shows;\4893She thinks, I'm certainly a genius, now,\4894Perhaps the very devil--who knows?\4895To-night then?--\4896\4897_Faust_. Well, what's that to you?\4898\4899_Mephistopheles_. I find my pleasure in it, too!\4900\4901\4902\4903\4904 AT THE WELL.\4905\4906 MARGERY _and_ LIZZY _with Pitchers.\4907\4908_Lizzy_. Hast heard no news of Barbara to-day?\4909\4910_Margery_. No, not a word. I've not been out much lately.\4911\4912_Lizzy_. It came to me through Sybill very straightly.\4913She's made a fool of herself at last, they say.\4914That comes of taking airs!\4915\4916_Margery_. What meanst thou?\4917\4918_Lizzy_. Pah!\4919She daily eats and drinks for two now.\4920\4921_Margery_. Ah!\4922\4923_Lizzy_. It serves the jade right for being so callow.\4924How long she's been hanging upon the fellow!\4925Such a promenading!\4926To fair and dance parading!\4927Everywhere as first she must shine,\4928He was treating her always with tarts and wine;\4929She began to think herself something fine,\4930And let her vanity so degrade her\4931That she even accepted the presents he made her.\4932There was hugging and smacking, and so it went on--\4933And lo! and behold! the flower is gone!\4934\4935_Margery_. Poor thing!\4936\4937_Lizzy_. Canst any pity for her feel!\4938When such as we spun at the wheel,\4939Our mothers kept us in-doors after dark;\4940While she stood cozy with her spark,\4941Or sate on the door-bench, or sauntered round,\4942And never an hour too long they found.\4943But now her pride may let itself down,\4944To do penance at church in the sinner's gown!\4945\4946_Margery_. He'll certainly take her for his wife.\4947\4948_Lizzy_. He'd be a fool! A spruce young blade\4949Has room enough to ply his trade.\4950Besides, he's gone.\4951\4952_Margery_. Now, that's not fair!\4953\4954_Lizzy_. If she gets him, her lot'll be hard to bear.\4955The boys will tear up her wreath, and what's more,\4956We'll strew chopped straw before her door.\4957\4958 [_Exit._]\4959\4960_Margery [going home]_. Time was when I, too, instead of bewailing,\4961Could boldly jeer at a poor girl's failing!\4962When my scorn could scarcely find expression\4963At hearing of another's transgression!\4964How black it seemed! though black as could be,\4965It never was black enough for me.\4966I blessed my soul, and felt so high,\4967And now, myself, in sin I lie!\4968Yet--all that led me to it, sure,\4969O God! it was so dear, so pure!\4970\4971\4972\4973\4974 DONJON.[27]\4975\4976 [_In a niche a devotional image of the Mater Dolorosa,\4977 before it pots of flowers._]\4978\4979MARGERY [_puts fresh flowers into the pots_].\4980 Ah, hear me,\4981 Draw kindly near me,\4982 Mother of sorrows, heal my woe!\4983\4984 Sword-pierced, and stricken\4985 With pangs that sicken,\4986 Thou seest thy son's last life-blood flow!\4987\4988 Thy look--thy sighing---\4989 To God are crying,\4990 Charged with a son's and mother's woe!\4991\4992 Sad mother!\4993 What other\4994 Knows the pangs that eat me to the bone?\4995 What within my poor heart burneth,\4996 How it trembleth, how it yearneth,\4997 Thou canst feel and thou alone!\4998\4999 Go where I will, I never\5000 Find peace or hope--forever\5001 Woe, woe and misery!\5002\5003 Alone, when all are sleeping,\5004 I'm weeping, weeping, weeping,\5005 My heart is crushed in me.\5006\5007 The pots before my window,\5008 In the early morning-hours,\5009 Alas, my tears bedewed them,\5010 As I plucked for thee these flowers,\5011\5012 When the bright sun good morrow\5013 In at my window said,\5014 Already, in my anguish,\5015 I sate there in my bed.\5016\5017 From shame and death redeem me, oh!\5018 Draw near me,\5019 And, pitying, hear me,\5020 Mother of sorrows, heal my woe!\5021\5022\5023\5024\5025 NIGHT.\5026\5027 _Street before_ MARGERY'S _Door._\5028\5029\5030 VALENTINE [_soldier,_ MARGERY'S _brother_].\5031\5032When at the mess I used to sit,\5033Where many a one will show his wit,\5034And heard my comrades one and all\5035The flower of the sex extol,\5036Drowning their praise with bumpers high,\5037Leaning upon my elbows, I\5038Would hear the braggadocios through,\5039And then, when it came my turn, too,\5040Would stroke my beard and, smiling, say,\5041A brimming bumper in my hand:\5042All very decent in their way!\5043But is there one, in all the land,\5044With my sweet Margy to compare,\5045A candle to hold to my sister fair?\5046Bravo! Kling! Klang! it echoed round!\5047One party cried: 'tis truth he speaks,\5048She is the jewel of the sex!\5049And the braggarts all in silence were bound.\5050And now!--one could pull out his hair with vexation,\5051And run up the walls for mortification!--\5052Every two-legged creature that goes in breeches\5053Can mock me with sneers and stinging speeches!\5054And I like a guilty debtor sitting,\5055For fear of each casual word am sweating!\5056And though I could smash them in my ire,\5057I dare not call a soul of them liar.\5058\5059What's that comes yonder, sneaking along?\5060There are two of them there, if I see not wrong.\5061Is't he, I'll give him a dose that'll cure him,\5062He'll not leave the spot alive, I assure him!\5063\5064\5065 FAUST. MEPHISTOPHELES.\5066\5067_Faust_. How from yon window of the sacristy\5068The ever-burning lamp sends up its glimmer,\5069And round the edge grows ever dimmer,\5070Till in the gloom its flickerings die!\5071So in my bosom all is nightlike.\5072\5073_Mephistopheles_. A starving tom-cat I feel quite like,\5074That o'er the fire ladders crawls\5075Then softly creeps, ground the walls.\5076My aim's quite virtuous ne'ertheless,\5077A bit of thievish lust, a bit of wantonness.\5078I feel it all my members haunting--\5079The glorious Walpurgis night.\5080One day--then comes the feast enchanting\5081That shall all pinings well requite.\5082\5083_Faust_. Meanwhile can that the casket be, I wonder,\5084I see behind rise glittering yonder.[28]\5085\5086_Mephistopheles_. Yes, and thou soon shalt have the pleasure\5087Of lifting out the precious treasure.\5088I lately 'neath the lid did squint,\5089Has piles of lion-dollars[29] in't.\5090\5091_Faust_. But not a jewel? Not a ring?\5092To deck my mistress not a trinket?\5093\5094_Mephistopheles_. I caught a glimpse of some such thing,\5095Sort of pearl bracelet I should think it.\5096\5097_Faust_. That's well! I always like to bear\5098Some present when I visit my fair.\5099\5100_Mephistopheles_. You should not murmur if your fate is,\5101To have a bit of pleasure gratis.\5102Now, as the stars fill heaven with their bright throng,\5103List a fine piece, artistic purely:\5104I sing her here a moral song,\5105To make a fool of her more surely.\5106 [_Sings to the guitar_.][30]\5107 What dost thou here,\5108 Katrina dear,\5109 At daybreak drear,\5110 Before thy lover's chamber?\5111 Give o'er, give o'er!\5112 The maid his door\5113 Lets in, no more\5114 Goes out a maid--remember!\5115\5116 Take heed! take heed!\5117 Once done, the deed\5118 Ye'll rue with speed--\5119 And then--good night--poor thing--a!\5120 Though ne'er so fair\5121 His speech, beware,\5122 Until you bear\5123 His ring upon your finger.\5124\5125_Valentine_ [_comes forward_].\5126Whom lur'ft thou here? what prey dost scent?\5127Rat-catching[81] offspring of perdition!\5128To hell goes first the instrument!\5129To hell then follows the musician!\5130\5131_Mephistopheles_. He 's broken the guitar! to music, then, good-bye, now.\5132\5133_Valentine_. A game of cracking skulls we'll try now!\5134\5135_Mephistopbeles_ [_to Faust_]. Never you flinch, Sir Doctor! Brisk!\5136Mind every word I say---be wary!\5137Stand close by me, out with your whisk!\5138Thrust home upon the churl! I'll parry.\5139\5140_Valentine_. Then parry that!\5141\5142_Mephistopheles_. Be sure. Why not?\5143\5144_Valentine_. And that!\5145\5146_Mephistopheles_. With ease!\5147\5148_Valentine_. The devil's aid he's got!\5149But what is this? My hand's already lame.\5150\5151_Mephistopheles_ [_to Faust_]. Thrust home!\5152\5153_Valentine_ [_falls_]. O woe!\5154\5155_Mephistopheles_. Now is the lubber tame!\5156But come! We must be off. I hear a clatter;\5157And cries of murder, too, that fast increase.\5158I'm an old hand to manage the police,\5159But then the penal court's another matter.\5160\5161_Martha_. Come out! Come out!\5162\5163_Margery_ [_at the window_]. Bring on a light!\5164\5165_Martha_ [_as above_]. They swear and scuffle, scream and fight.\5166\5167_People_. There's one, has got's death-blow!\5168\5169_Martha_ [_coming out_]. Where are the murderers, have they flown?\5170\5171_Margery_ [_coming out_]. Who's lying here?\5172\5173_People_. Thy mother's son.\5174\5175_Margery_. Almighty God! What woe!\5176\5177_Valentine_. I'm dying! that is quickly said,\5178And even quicklier done.\5179Women! Why howl, as if half-dead?\5180Come, hear me, every one!\5181 [_All gather round him_.]\5182My Margery, look! Young art thou still,\5183But managest thy matters ill,\5184Hast not learned out yet quite.\5185I say in confidence--think it o'er:\5186Thou art just once for all a whore;\5187Why, be one, then, outright.\5188\5189_Margery_. My brother! God! What words to me!\5190\5191_Valentine_. In this game let our Lord God be!\5192That which is done, alas! is done.\5193And every thing its course will run.\5194With one you secretly begin,\5195Presently more of them come in,\5196And when a dozen share in thee,\5197Thou art the whole town's property.\5198\5199When shame is born to this world of sorrow,\5200The birth is carefully hid from sight,\5201And the mysterious veil of night\5202To cover her head they borrow;\5203Yes, they would gladly stifle the wearer;\5204But as she grows and holds herself high,\5205She walks uncovered in day's broad eye,\5206Though she has not become a whit fairer.\5207The uglier her face to sight,\5208The more she courts the noonday light.\5209\5210Already I the time can see\5211When all good souls shall shrink from thee,\5212Thou prostitute, when thou go'st by them,\5213As if a tainted corpse were nigh them.\5214Thy heart within thy breast shall quake then,\5215When they look thee in the face.\5216Shalt wear no gold chain more on thy neck then!\5217Shalt stand no more in the holy place!\5218No pleasure in point-lace collars take then,\5219Nor for the dance thy person deck then!\5220But into some dark corner gliding,\5221'Mong beggars and cripples wilt be hiding;\5222And even should God thy sin forgive,\5223Wilt be curs'd on earth while thou shalt live!\5224\5225_Martha_. Your soul to the mercy of God surrender!\5226Will you add to your load the sin of slander?\5227\5228_Valentine_. Could I get at thy dried-up frame,\5229Vile bawd, so lost to all sense of shame!\5230Then might I hope, e'en this side Heaven,\5231Richly to find my sins forgiven.\5232\5233_Margery_. My brother! This is hell to me!\5234\5235_Valentine_. I tell thee, let these weak tears be!\5236When thy last hold of honor broke,\5237Thou gav'st my heart the heaviest stroke.\5238I'm going home now through the grave\5239To God, a soldier and a brave.\5240 [_Dies_.]\5241\5242\5243\5244\5245 CATHEDRAL.\5246\5247 _Service, Organ, and Singing._\5248\5249\5250 [MARGERY _amidst a crowd of people._ EVIL SPIRIT _behind_ MARGERY.]\5251\5252_Evil Spirit_. How different was it with thee, Margy,\5253When, innocent and artless,\5254Thou cam'st here to the altar,\5255From the well-thumbed little prayer-book,\5256Petitions lisping,\5257Half full of child's play,\5258Half full of Heaven!\5259Margy!\5260Where are thy thoughts?\5261What crime is buried\5262Deep within thy heart?\5263Prayest thou haply for thy mother, who\5264Slept over into long, long pain, on thy account?\5265Whose blood upon thy threshold lies?\5266--And stirs there not, already\5267Beneath thy heart a life\5268Tormenting itself and thee\5269With bodings of its coming hour?\5270\5271_Margery_. Woe! Woe!\5272Could I rid me of the thoughts,\5273Still through my brain backward and forward flitting,\5274Against my will!\5275\5276_Chorus_. Dies irae, dies illa\5277Solvet saeclum in favillâ.\5278\5279 [_Organ plays_.]\5280\5281_Evil Spirit_. Wrath smites thee!\5282Hark! the trumpet sounds!\5283The graves are trembling!\5284And thy heart,\5285Made o'er again\5286For fiery torments,\5287Waking from its ashes\5288Starts up!\5289\5290_Margery_. Would I were hence!\5291I feel as if the organ's peal\5292My breath were stifling,\5293The choral chant\5294My heart were melting.\5295\5296_Chorus_. Judex ergo cum sedebit,\5297Quidquid latet apparebit.\5298Nil inultum remanebit.\5299\5300_Margery_. How cramped it feels!\5301The walls and pillars\5302Imprison me!\5303And the arches\5304Crush me!--Air!\5305\5306_Evil Spirit_. What! hide thee! sin and shame\5307Will not be hidden!\5308Air? Light?\5309Woe's thee!\5310\5311_Chorus_. Quid sum miser tunc dicturus?\5312Quem patronum rogaturus?\5313Cum vix justus sit securus.\5314\5315_Evil Spirit_. They turn their faces,\5316The glorified, from thee.\5317To take thy hand, the pure ones\5318Shudder with horror.\5319Woe!\5320\5321_Chorus_. Quid sum miser tunc dicturus?\5322\5323_Margery_. Neighbor! your phial!--\5324 [_She swoons._]\5325\5326\5327\5328\5329 WALPURGIS NIGHT.[32]\5330\5331 _Harz Mountains._\5332\5333 _District of Schirke and Elend._\5334\5335\5336 FAUST. MEPHISTOPHELES.\5337\5338_Mephistopheles_. Wouldst thou not like a broomstick, now, to ride on?\5339At this rate we are, still, a long way off;\5340I'd rather have a good tough goat, by half,\5341Than the best legs a man e'er set his pride on.\5342\5343_Faust_. So long as I've a pair of good fresh legs to stride on,\5344Enough for me this knotty staff.\5345What use of shortening the way!\5346Following the valley's labyrinthine winding,\5347Then up this rock a pathway finding,\5348From which the spring leaps down in bubbling play,\5349That is what spices such a walk, I say!\5350Spring through the birch-tree's veins is flowing,\5351The very pine is feeling it;\5352Should not its influence set our limbs a-glowing?\5353\5354_Mephistopheles_. I do not feel it, not a bit!\5355My wintry blood runs very slowly;\5356I wish my path were filled with frost and snow.\5357The moon's imperfect disk, how melancholy\5358It rises there with red, belated glow,\5359And shines so badly, turn where'er one can turn,\5360At every step he hits a rock or tree!\5361With leave I'll beg a Jack-o'lantern!\5362I see one yonder burning merrily.\5363Heigh, there! my friend! May I thy aid desire?\5364Why waste at such a rate thy fire?\5365Come, light us up yon path, good fellow, pray!\5366\5367_Jack-o'lantern_. Out of respect, I hope I shall be able\5368To rein a nature quite unstable;\5369We usually take a zigzag way.\5370\5371_Mephistopheles_. Heigh! heigh! He thinks man's crooked course to travel.\5372Go straight ahead, or, by the devil,\5373I'll blow your flickering life out with a puff.\5374\5375_Jack-o'lantern_. You're master of the house, that's plain enough,\5376So I'll comply with your desire.\5377But see! The mountain's magic-mad to-night,\5378And if your guide's to be a Jack-o'lantern's light,\5379Strict rectitude you'll scarce require.\5380\5381FAUST, MEPHISTOPHELES, JACK-O'LANTERN, _in alternate song_.\5382\5383 Spheres of magic, dream, and vision,\5384 Now, it seems, are opening o'er us.\5385 For thy credit, use precision!\5386 Let the way be plain before us\5387 Through the lengthening desert regions.\5388\5389 See how trees on trees, in legions,\5390 Hurrying by us, change their places,\5391 And the bowing crags make faces,\5392 And the rocks, long noses showing,\5393 Hear them snoring, hear them blowing![33]\5394\5395 Down through stones, through mosses flowing,\5396 See the brook and brooklet springing.\5397 Hear I rustling? hear I singing?\5398 Love-plaints, sweet and melancholy,\5399 Voices of those days so holy?\5400 All our loving, longing, yearning?\5401 Echo, like a strain returning\5402 From the olden times, is ringing.\5403\5404 Uhu! Schuhu! Tu-whit! Tu-whit!\5405 Are the jay, and owl, and pewit\5406 All awake and loudly calling?\5407 What goes through the bushes yonder?\5408 Can it be the Salamander--\5409 Belly thick and legs a-sprawling?\5410 Roots and fibres, snake-like, crawling,\5411 Out from rocky, sandy places,\5412 Wheresoe'er we turn our faces,\5413 Stretch enormous fingers round us,\5414 Here to catch us, there confound us;\5415 Thick, black knars to life are starting,\5416 Polypusses'-feelers darting\5417 At the traveller. Field-mice, swarming,\5418 Thousand-colored armies forming,\5419 Scamper on through moss and heather!\5420 And the glow-worms, in the darkling,\5421 With their crowded escort sparkling,\5422 Would confound us altogether.\5423\5424 But to guess I'm vainly trying--\5425 Are we stopping? are we hieing?\5426 Round and round us all seems flying,\5427 Rocks and trees, that make grimaces,\5428 And the mist-lights of the places\5429 Ever swelling, multiplying.\5430\5431_Mephistopheles_. Here's my coat-tail--tightly thumb it!\5432We have reached a middle summit,\5433Whence one stares to see how shines\5434Mammon in the mountain-mines.\5435\5436_Faust_. How strangely through the dim recesses\5437A dreary dawning seems to glow!\5438And even down the deep abysses\5439Its melancholy quiverings throw!\5440Here smoke is boiling, mist exhaling;\5441Here from a vapory veil it gleams,\5442Then, a fine thread of light, goes trailing,\5443Then gushes up in fiery streams.\5444The valley, here, you see it follow,\5445One mighty flood, with hundred rills,\5446And here, pent up in some deep hollow,\5447It breaks on all sides down the hills.\5448Here, spark-showers, darting up before us,\5449Like golden sand-clouds rise and fall.\5450But yonder see how blazes o'er us,\5451All up and down, the rocky wall!\5452\5453_Mephistopheles_. Has not Sir Mammon gloriously lighted\5454His palace for this festive night?\5455Count thyself lucky for the sight:\5456I catch e'en now a glimpse of noisy guests invited.\5457\5458_Faust_. How the mad tempest[34] sweeps the air!\5459On cheek and neck the wind-gusts how they flout me.\5460\5461_Mephistopheles_. Must seize the rock's old ribs and hold on stoutly!\5462Else will they hurl thee down the dark abysses there.\5463A mist-rain thickens the gloom.\5464Hark, how the forests crash and boom!\5465Out fly the owls in dread and wonder;\5466Splitting their columns asunder,\5467Hear it, the evergreen palaces shaking!\5468Boughs are twisting and breaking!\5469Of stems what a grinding and moaning!\5470Of roots what a creaking and groaning!\5471In frightful confusion, headlong tumbling,\5472They fall, with a sound of thunder rumbling,\5473And, through the wreck-piled ravines and abysses,\5474The tempest howls and hisses.\5475Hearst thou voices high up o'er us?\5476Close around us--far before us?\5477Through the mountain, all along,\5478Swells a torrent of magic song.\5479\5480_Witches_ [_in chorus_]. The witches go to the Brocken's top,\5481 The stubble is yellow, and green the crop.\5482 They gather there at the well-known call,\5483 Sir Urian[85] sits at the head of all.\5484 Then on we go o'er stone and stock:\5485 The witch, she--and--the buck.\5486\5487_Voice_. Old Baubo comes along, I vow!\5488She rides upon a farrow-sow.\5489\5490_Chorus_. Then honor to whom honor's due!\5491 Ma'am Baubo ahead! and lead the crew!\5492 A good fat sow, and ma'am on her back,\5493 Then follow the witches all in a pack.\5494\5495_Voice_. Which way didst thou come?\5496\5497_Voice_. By the Ilsenstein!\5498Peeped into an owl's nest, mother of mine!\5499What a pair of eyes!\5500\5501_Voice_. To hell with your flurry!\5502Why ride in such hurry!\5503\5504_Voice_. The hag be confounded!\5505My skin flie has wounded!\5506\5507_Witches_ [_chorus]._ The way is broad, the way is long,\5508 What means this noisy, crazy throng?\5509 The broom it scratches, the fork it flicks,\5510 The child is stifled, the mother breaks.\5511\5512_Wizards_ [_semi-chorus_]. Like housed-up snails we're creeping on,\5513The women all ahead are gone.\5514When to the Bad One's house we go,\5515She gains a thousand steps, you know.\5516\5517_The other half_. We take it not precisely so;\5518What she in thousand steps can go,\5519Make all the haste she ever can,\5520'Tis done in just one leap by man.\5521\5522_Voice_ [_above_]. Come on, come on, from Felsensee!\5523\5524_Voices_ [_from below_]. We'd gladly join your airy way.\5525For wash and clean us as much as we will,\5526We always prove unfruitful still.\5527\5528_Both chorusses_. The wind is hushed, the star shoots by,\5529 The moon she hides her sickly eye.\5530 The whirling, whizzing magic-choir\5531 Darts forth ten thousand sparks of fire.\5532\5533_Voice_ [_from below_]. Ho, there! whoa, there!\5534\5535_Voice_ [_from above_]. Who calls from the rocky cleft below there?\5536\5537_Voice_ [_below_]. Take me too! take me too!\5538Three hundred years I've climbed to you,\5539Seeking in vain my mates to come at,\5540For I can never reach the summit.\5541\5542_Both chorusses_. Can ride the besom, the stick can ride,\5543 Can stride the pitchfork, the goat can stride;\5544 Who neither will ride to-night, nor can,\5545 Must be forever a ruined man.\5546\5547_Half-witch_ [_below_]. I hobble on--I'm out of wind--\5548And still they leave me far behind!\5549To find peace here in vain I come,\5550I get no more than I left at home.\5551\5552_Chorus of witches_. The witch's salve can never fail,\5553 A rag will answer for a sail,\5554 Any trough will do for a ship, that's tight;\5555 He'll never fly who flies not to-night.\5556\5557_Both chorusses_. And when the highest peak we round,\5558 Then lightly graze along the ground,\5559 And cover the heath, where eye can see,\5560 With the flower of witch-errantry.\5561 [_They alight_.]\5562\5563_Mephistopheles._ What squeezing and pushing, what rustling and hustling!\5564What hissing and twirling, what chattering and bustling!\5565How it shines and sparkles and burns and stinks!\5566A true witch-element, methinks!\5567Keep close! or we are parted in two winks.\5568Where art thou?\5569\5570_Faust_ [_in the distance_]. Here!\5571\5572_Mephistopheles_. What! carried off already?\5573Then I must use my house-right.--Steady!\5574Room! Squire Voland[36] comes. Sweet people, Clear the ground!\5575Here, Doctor, grasp my arm! and, at a single bound;\5576Let us escape, while yet 'tis easy;\5577E'en for the like of me they're far too crazy.\5578See! yonder, something shines with quite peculiar glare,\5579And draws me to those bushes mazy.\5580Come! come! and let us slip in there.\5581\5582_Faust_. All-contradicting sprite! To follow thee I'm fated.\5583But I must say, thy plan was very bright!\5584We seek the Brocken here, on the Walpurgis night,\5585Then hold ourselves, when here, completely isolated!\5586\5587_Mephistopheles_. What motley flames light up the heather!\5588A merry club is met together,\5589In a small group one's not alone.\5590\5591_Faust_. I'd rather be up there, I own!\5592See! curling smoke and flames right blue!\5593To see the Evil One they travel;\5594There many a riddle to unravel.\5595\5596_Mephistopheles_. And tie up many another, too.\5597Let the great world there rave and riot,\5598We here will house ourselves in quiet.\5599The saying has been long well known:\5600In the great world one makes a small one of his own.\5601I see young witches there quite naked all,\5602And old ones who, more prudent, cover.\5603For my sake some flight things look over;\5604The fun is great, the trouble small.\5605I hear them tuning instruments! Curs'd jangle!\5606Well! one must learn with such things not to wrangle.\5607Come on! Come on! For so it needs must be,\5608Thou shalt at once be introduced by me.\5609And I new thanks from thee be earning.\5610That is no scanty space; what sayst thou, friend?\5611Just take a look! thou scarce canst see the end.\5612There, in a row, a hundred fires are burning;\5613They dance, chat, cook, drink, love; where can be found\5614Any thing better, now, the wide world round?\5615\5616_Faust_. Wilt thou, as things are now in this condition,\5617Present thyself for devil, or magician?\5618\5619_Mephistopheles_. I've been much used, indeed, to going incognito;\5620\5621But then, on gala-day, one will his order show.\5622No garter makes my rank appear,\5623But then the cloven foot stands high in honor here.\5624Seest thou the snail? Look there! where she comes creeping yonder!\5625Had she already smelt the rat,\5626I should not very greatly wonder.\5627Disguise is useless now, depend on that.\5628Come, then! we will from fire to fire wander,\5629Thou shalt the wooer be and I the pander.\5630 [_To a party who sit round expiring embers_.]\5631Old gentlemen, you scarce can hear the fiddle!\5632You'd gain more praise from me, ensconced there in the middle,\5633'Mongst that young rousing, tousing set.\5634One can, at home, enough retirement get.\5635\5636_General_. Trust not the people's fickle favor!\5637However much thou mayst for them have done.\5638Nations, as well as women, ever,\5639Worship the rising, not the setting sun.\5640\5641_Minister_. From the right path we've drifted far away,\5642The good old past my heart engages;\5643Those were the real golden ages,\5644When such as we held all the sway.\5645\5646_Parvenu_. We were no simpletons, I trow,\5647And often did the thing we should not;\5648But all is turning topsy-turvy now,\5649And if we tried to stem the wave, we could not.\5650\5651_Author_. Who on the whole will read a work today,\5652Of moderate sense, with any pleasure?\5653And as regards the dear young people, they\5654Pert and precocious are beyond all measure.\5655\5656_Mephistopheles_ [_who all at once appears very old_].\5657The race is ripened for the judgment day:\5658So I, for the last time, climb the witch-mountain, thinking,\5659And, as my cask runs thick, I say,\5660The world, too, on its lees is sinking.\5661\5662_Witch-broker_. Good gentlemen, don't hurry by!\5663The opportunity's a rare one!\5664My stock is an uncommon fair one,\5665Please give it an attentive eye.\5666There's nothing in my shop, whatever,\5667But on the earth its mate is found;\5668That has not proved itself right clever\5669To deal mankind some fatal wound.\5670No dagger here, but blood has some time stained it;\5671No cup, that has not held some hot and poisonous juice,\5672And stung to death the throat that drained it;\5673No trinket, but did once a maid seduce;\5674No sword, but hath some tie of sacred honor riven,\5675Or haply from behind through foeman's neck been driven.\5676\5677_Mephistopheles_. You're quite behind the times, I tell you, Aunty!\5678By-gones be by-gones! done is done!\5679Get us up something new and jaunty!\5680For new things now the people run.\5681\5682_Faust_. To keep my wits I must endeavor!\5683Call this a fair! I swear, I never--!\5684\5685_Mephistopheles_. Upward the billowy mass is moving;\5686You're shoved along and think, meanwhile, you're shoving.\5687\5688_Faust_. What woman's that?\5689\5690_Mephistopheles_. Mark her attentively.\5691That's Lilith.[37]\5692\5693_Faust_. Who?\5694\5695_Mephistopbeles_. Adam's first wife is she.\5696Beware of her one charm, those lovely tresses,\5697In which she shines preeminently fair.\5698When those soft meshes once a young man snare,\5699How hard 'twill be to escape he little guesses.\5700\5701_Faust_. There sit an old one and a young together;\5702They've skipped it well along the heather!\5703\5704_Mephistopheles_. No rest from that till night is through.\5705Another dance is up; come on! let us fall to.\5706\5707_Faust_ [_dancing with the young one_]. A lovely dream once came to me;\5708In it I saw an apple-tree;\5709Two beauteous apples beckoned there,\5710I climbed to pluck the fruit so fair.\5711\5712_The Fair one_. Apples you greatly seem to prize,\5713And did so even in Paradise.\5714I feel myself delighted much\5715That in my garden I have such.\5716\5717_Mephistopheles_ [_with the old hag_]. A dismal dream once came to me;\5718In it I saw a cloven tree,\5719It had a ------ but still,\5720I looked on it with right good-will.\5721\5722_The Hog_. With best respect I here salute\5723The noble knight of the cloven foot!\5724Let him hold a ------ near,\5725If a ------ he does not fear.\5726\5727_Proctophantasmist_.[38] What's this ye undertake? Confounded crew!\5728Have we not giv'n you demonstration?\5729No spirit stands on legs in all creation,\5730And here you dance just as we mortals do!\5731\5732_The Fair one_ [_dancing_]. What does that fellow at our ball?\5733\5734_Faust_ [_dancing_]. Eh! he must have a hand in all.\5735What others dance that he appraises.\5736Unless each step he criticizes,\5737The step as good as no step he will call.\5738But when we move ahead, that plagues him more than all.\5739If in a circle you would still keep turning,\5740As he himself in his old mill goes round,\5741He would be sure to call that sound!\5742And most so, if you went by his superior learning.\5743\5744_Proctophantasmist_. What, and you still are here! Unheard off obstinates!\5745Begone! We've cleared it up! You shallow pates!\5746The devilish pack from rules deliverance boasts.\5747We've grown so wise, and Tegel[39] still sees ghosts.\5748How long I've toiled to sweep these cobwebs from the brain,\5749And yet--unheard of folly! all in vain.\5750\5751_The Fair one_. And yet on us the stupid bore still tries it!\5752\5753_Proctophantasmist_. I tell you spirits, to the face,\5754I give to spirit-tyranny no place,\5755My spirit cannot exercise it.\5756 [_They dance on_.]\5757I can't succeed to-day, I know it;\5758Still, there's the journey, which I like to make,\5759And hope, before the final step I take,\5760To rid the world of devil and of poet.\5761\5762_Mephistopheles_. You'll see him shortly sit into a puddle,\5763In that way his heart is reassured;\5764When on his rump the leeches well shall fuddle,\5765Of spirits and of spirit he'll be cured.\5766 [_To_ FAUST, _who has left the dance_.]\5767Why let the lovely girl slip through thy fingers,\5768Who to thy dance so sweetly sang?\5769\5770_Faust_. Ah, right amidst her singing, sprang\5771A wee red mouse from her mouth and made me cower.\5772\5773_Mephistopheles_. That's nothing wrong! You're in a dainty way;\5774Enough, the mouse at least wan't gray.\5775Who minds such thing in happy amorous hour?\5776\5777_Faust_. Then saw I--\5778\5779_Mephistopheles_. What?\5780\5781_Faust_. Mephisto, seest thou not\5782Yon pale, fair child afar, who stands so sad and lonely,\5783And moves so slowly from the spot,\5784Her feet seem locked, and she drags them only.\5785I must confess, she seems to me\5786To look like my own good Margery.\5787\5788_Mephistopheles_. Leave that alone! The sight no health can bring.\5789it is a magic shape, an idol, no live thing.\5790To meet it never can be good!\5791Its haggard look congeals a mortal's blood,\5792And almost turns him into stone;\5793The story of Medusa thou hast known.\5794\5795_Faust_. Yes, 'tis a dead one's eyes that stare upon me,\5796Eyes that no loving hand e'er closed;\5797That is the angel form of her who won me,\5798Tis the dear breast on which I once reposed.\5799\5800_Mephistopheles_. 'Tis sorcery all, thou fool, misled by passion's dreams!\5801For she to every one his own love seems.\5802\5803_Faust_. What bliss! what woe! Methinks I never\5804My sight from that sweet form can sever.\5805Seeft thou, not thicker than a knife-blade's back,\5806A small red ribbon, fitting sweetly\5807The lovely neck it clasps so neatly?\5808\5809_Mephistopheles_. I see the streak around her neck.\5810Her head beneath her arm, you'll next behold her;\5811Perseus has lopped it from her shoulder,--\5812But let thy crazy passion rest!\5813Come, climb with me yon hillock's breast,\5814Was e'er the Prater[40] merrier then?\5815And if no sorcerer's charm is o'er me,\5816That is a theatre before me.\5817What's doing there?\5818\5819_Servibilis_. They'll straight begin again.\5820A bran-new piece, the very last of seven;\5821To have so much, the fashion here thinks fit.\5822By Dilettantes it is given;\5823'Twas by a Dilettante writ.\5824Excuse me, sirs, I go to greet you;\5825I am the curtain-raising Dilettant.\5826\5827_Mephistopheles_. When I upon the Blocksberg meet you,\5828That I approve; for there's your place, I grant.\5829\5830\5831\5832\5833 WALPURGIS-NIGHT'S DREAM, OR OBERON AND TITANIA'S GOLDEN NUPTIALS.\5834\5835 _Intermezzo_.\5836\5837\5838_Theatre manager_. Here, for once, we rest, to-day,\5839Heirs of Mieding's[41] glory.\5840All the scenery we display--\5841Damp vale and mountain hoary!\5842\5843_Herald_. To make the wedding a golden one,\5844Must fifty years expire;\5845But when once the strife is done,\5846I prize the _gold_ the higher.\5847\5848_Oberon_. Spirits, if my good ye mean,\5849Now let all wrongs be righted;\5850For to-day your king and queen\5851Are once again united.\5852\5853_Puck_. Once let Puck coming whirling round,\5854And set his foot to whisking,\5855Hundreds with him throng the ground,\5856Frolicking and frisking.\5857\5858_Ariel_. Ariel awakes the song\5859With many a heavenly measure;\5860Fools not few he draws along,\5861But fair ones hear with pleasure.\5862\5863_Oberon_. Spouses who your feuds would smother,\5864Take from us a moral!\5865Two who wish to love each other,\5866Need only first to quarrel.\5867\5868_Titania_. If she pouts and he looks grim,\5869Take them both together,\5870To the north pole carry him,\5871And off with her to t'other.\5872\5873 _Orchestra Tutti_.\5874\5875_Fortissimo_. Fly-snouts and gnats'-noses, these,\5876And kin in all conditions,\5877Grass-hid crickets, frogs in trees,\5878We take for our musicians!\5879\5880_Solo_. See, the Bagpipe comes! fall back!\5881Soap-bubble's name he owneth.\5882How the _Schnecke-schnicke-schnack_\5883Through his snub-nose droneth!\5884_Spirit that is just shaping itself_. Spider-foot, toad's-belly, too,\5885Give the child, and winglet!\5886'Tis no animalcule, true,\5887But a poetic thinglet.\5888\5889_A pair of lovers_. Little step and lofty bound\5890Through honey-dew and flowers;\5891Well thou trippest o'er the ground,\5892But soarst not o'er the bowers.\5893\5894_Curious traveller_. This must be masquerade!\5895How odd!\5896My very eyes believe I?\5897Oberon, the beauteous God\5898Here, to-night perceive I!\5899\5900_Orthodox_. Neither claws, nor tail I see!\5901And yet, without a cavil,\5902Just as \"the Gods of Greece\"[42] were, he\5903Must also be a devil.\5904\5905_Northern artist_. What here I catch is, to be sure,\5906But sketchy recreation;\5907And yet for my Italian tour\5908'Tis timely preparation.\5909\5910_Purist_. Bad luck has brought me here, I see!\5911The rioting grows louder.\5912And of the whole witch company,\5913There are but two, wear powder.\5914\5915_Young witch_. Powder becomes, like petticoat,\5916Your little, gray old woman:\5917Naked I sit upon my goat,\5918And show the untrimmed human.\5919\5920_Matron_. To stand here jawing[43] with you, we\5921Too much good-breeding cherish;\5922But young and tender though you be,\5923I hope you'll rot and perish.\5924\5925_Leader of the music_. Fly-snouts and gnat-noses, please,\5926Swarm not so round the naked!\5927Grass-hid crickets, frogs in trees,\5928Keep time and don't forsake it!\5929\5930_Weathercock_ [_towards one side_]. Find better company, who can!\5931Here, brides attended duly!\5932There, bachelors, ranged man by man,\5933Most hopeful people truly!\5934\5935_Weathercock [towards the other side_].\5936And if the ground don't open straight,\5937The crazy crew to swallow,\5938You'll see me, at a furious rate,\5939Jump down to hell's black hollow.\5940\5941_Xenia[_44] We are here as insects, ah!\5942Small, sharp nippers wielding,\5943Satan, as our _cher papa_,\5944Worthy honor yielding.\5945\5946_Hennings_. See how naïvely, there, the throng\5947Among themselves are jesting,\5948You'll hear them, I've no doubt, ere long,\5949Their good kind hearts protesting.\5950\5951_Musagetes_. Apollo in this witches' group\5952Himself right gladly loses;\5953For truly I could lead this troop\5954Much easier than the muses.\5955\5956_Ci-devant genius of the age_. Right company will raise man up.\5957Come, grasp my skirt, Lord bless us!\5958The Blocksberg has a good broad top,\5959Like Germany's Parnassus.\5960\5961_Curious traveller_. Tell me who is that stiff man?\5962With what stiff step he travels!\5963He noses out whate'er he can.\5964\"He scents the Jesuit devils.\"\5965\5966_Crane_. In clear, and muddy water, too,\5967The long-billed gentleman fishes;\5968Our pious gentlemen we view\5969Fingering in devils' dishes.\5970\5971_Child of this world_. Yes, with the pious ones, 'tis clear,\5972\"All's grist that comes to their mill;\"\5973They build their tabernacles here,\5974On Blocksberg, as on Carmel.\5975\5976_Dancer_. Hark! a new choir salutes my ear!\5977I hear a distant drumming.\5978\"Be not disturbed! 'mong reeds you hear\5979The one-toned bitterns bumming.\"\5980\5981_Dancing-master._ How each his legs kicks up and flings,\5982Pulls foot as best he's able!\5983The clumsy hops, the crooked springs,\5984'Tis quite disreputable!\5985\5986_Fiddler_. The scurvy pack, they hate, 'tis clear,\5987Like cats and dogs, each other.\5988Like Orpheus' lute, the bagpipe here\5989Binds beast to beast as brother.\5990\5991_Dogmatist_. You'll not scream down my reason, though,\5992By criticism's cavils.\5993The devil's something, that I know,\5994Else how could there be devils?\5995\5996_Idealist_. Ah, phantasy, for once thy sway\5997Is guilty of high treason.\5998If all I see is I, to-day,\5999'Tis plain I've lost my reason.\6000\6001_Realist_. To me, of all life's woes and plagues,\6002Substance is most provoking,\6003For the first time I feel my legs\6004Beneath me almost rocking.\6005\6006_Supernaturalist_. I'm overjoyed at being here,\6007And even among these rude ones;\6008For if bad spirits are, 'tis clear,\6009There also must be good ones.\6010\6011_Skeptic_. Where'er they spy the flame they roam,\6012And think rich stores to rifle,\6013Here such as I are quite at home,\6014For _Zweifel_ rhymes with _Teufel_.[45]\6015\6016_Leader of the music_. Grass-hid cricket, frogs in trees,\6017You cursed dilettanti!\6018Fly-snouts and gnats'-noses, peace!\6019Musicians you, right jaunty!\6020\6021_The Clever ones_. Sans-souci we call this band\6022Of merry ones that skip it;\6023Unable on our feet to stand,\6024Upon our heads we trip it.\6025\6026_The Bunglers_. Time was, we caught our tit-bits, too,\6027God help us now! that's done with!\6028We've danced our leathers entirely through,\6029And have only bare soles to run with.\6030\6031_Jack-o'lanterns_. From the dirty bog we come,\6032Whence we've just arisen:\6033Soon in the dance here, quite at home,\6034As gay young _sparks_ we'll glisten.\6035\6036_Shooting star_. Trailing from the sky I shot,\6037Not a star there missed me:\6038Crooked up in this grassy spot,\6039Who to my legs will assist me?\6040\6041_The solid men_. Room there! room there! clear the ground!\6042Grass-blades well may fall so;\6043Spirits are we, but 'tis found\6044They have plump limbs also.\6045\6046_Puck_. Heavy men! do not, I say,\6047Like elephants' calves go stumping:\6048Let the plumpest one to-day\6049Be Puck, the ever-jumping.\6050\6051_Ariel_. If the spirit gave, indeed,\6052If nature gave you, pinions,\6053Follow up my airy lead\6054To the rose-dominions!\6055\6056_Orchestra_ [_pianissimo_]. Gauzy mist and fleecy cloud\6057Sun and wind have banished.\6058Foliage rustles, reeds pipe loud,\6059All the show has vanished.\6060\6061\6062\6063\6064 DREARY DAY.[46]\6065\6066 _Field_.\6067\6068\6069 FAUST. MEPHISTOPHELES.\6070\6071_Faust_. In wretchedness! In despair! Long hunted up and down the earth, a\6072miserable fugitive, and caught at last! Locked up as a malefactor in\6073prison, to converse with horrible torments--the sweet, unhappy creature!\6074Even to this pass! even to this!--Treacherous, worthless spirit, and this\6075thou hast hidden from me!--Stand up here--stand up! Roll thy devilish eyes\6076round grimly in thy head! Stand and defy me with thy intolerable presence!\6077Imprisoned! In irretrievable misery! Given over to evil spirits and to the\6078judgment of unfeeling humanity, and me meanwhile thou lullest in insipid\6079dissipations, concealest from me her growing anguish, and leavest her\6080without help to perish!\6081\6082_Mephistopheles_. She is not the first!\6083\6084_Faust_. Dog! abominable monster! Change him, thou Infinite Spirit! change\6085the worm back into his canine form, as he was often pleased in the night\6086to trot before me, to roll before the feet of the harmless wanderer, and,\6087when he fell, to hang on his shoulders. Change him again into his favorite\6088shape, that he may crawl before me on his belly in the sand, and that I\6089may tread him under foot, the reprobate!--Not the first! Misery! Misery!\6090inconceivable by any human soul! that more than one creature ever sank\6091into the depth of this wretchedness, that the first in its writhing\6092death-agony did not atone for the guilt of all the rest before the eyes of\6093the eternally Forgiving! My very marrow and life are consumed by the\6094misery of this single one; thou grinnest away composedly at the fate of\6095thousands!\6096\6097_Mephistopheles_. Here we are again at our wits' ends already, where the\6098thread of sense, with you mortals, snaps short. Why make a partnership\6099with us, if thou canst not carry it through? Wilt fly, and art not proof\6100against dizziness? Did we thrust ourselves on thee, or thou on us?\6101\6102_Faust_. Gnash not so thy greedy teeth against me! It disgusts me!--Great\6103and glorious spirit, thou that deignedst to appear to me, who knowest my\6104heart and soul, why yoke me to this shame-fellow, who feeds on mischief\6105and feasts on ruin?\6106\6107_Mephistopheles_. Hast thou done?\6108\6109_Faust_. Rescue her! O woe be unto thee! The most horrible curse on thee\6110for thousands of years!\6111\6112_Mephistopheles_. I cannot loose the bonds of the avenger, nor open his\6113bolts.--Rescue her!--Who was it that plunged her into ruin? I or thou?\6114 [FAUST _looks wildly round_.]\6115Grasp'st thou after the thunder? Well that it was not given to you\6116miserable mortals! To crush an innocent respondent, that is a sort of\6117tyrant's-way of getting room to breathe in embarrassment.\6118\6119_Faust_. Lead me to her! She shall be free!\6120\6121_Mephistopheles_. And the danger which thou incurrest? Know that the guilt\6122of blood at thy hand still lies upon the town. Over the place of the\6123slain, avenging spirits hover and lurk for the returning murderer.\6124\6125_Faust_. That, too, from thee? Murder and death of a world upon thee,\6126monster! Lead me thither, I say, and free her!\6127\6128_Mephistopheles_. I will lead thee, and hear what I can do! Have I all\6129power in heaven and on earth? I will becloud the turnkey's senses; possess\6130thyself of the keys, and bear her out with human hand. I will watch! The\6131magic horses shall be ready, and I will bear you away. So much I can do.\6132\6133_Faust_. Up and away!\6134\6135\6136\6137\6138 NIGHT. OPEN FIELD.\6139\6140 FAUST. MEPHISTOPHELES.\6141 _Scudding along on black horses_.\6142\6143_Faust_. What's doing, off there, round the gallows-tree?[47]\6144\6145_Mephistopheles_. Know not what they are doing and brewing.\6146\6147_Faust_. Up they go--down they go--wheel about, reel about.\6148\6149_Mephistopheles_. A witches'-crew.\6150\6151_Faust_. They're strewing and vowing.\6152\6153_Mephistopheles_. Pass on! Pass on!\6154\6155\6156\6157\6158 PRISON.\6159\6160 FAUST [_with a bunch of keys and a lamp, before an iron door_]\6161A long unwonted chill comes o'er me,\6162I feel the whole great load of human woe.\6163Within this clammy wall that frowns before me\6164Lies one whom blinded love, not guilt, brought low!\6165Thou lingerest, in hope to grow bolder!\6166Thou fearest again to behold her!\6167On! Thy shrinking slowly hastens the blow!\6168 [_He grasps the key. Singing from within_.]\6169My mother, the harlot,\6170That strung me up!\6171My father, the varlet,\6172That ate me up!\6173My sister small,\6174She gathered up all\6175The bones that day,\6176And in a cool place did lay;\6177Then I woke, a sweet bird, at a magic call;\6178Fly away, fly away!\6179\6180_Faust [unlocking_]. She little dreams, her lover is so near,\6181The clanking chains, the rustling straw can hear;\6182 [_He enters_.]\6183\6184_Margaret [burying herself in the bed_]. Woe! woe!\6185They come. O death of bitterness!\6186\6187_Faust_ [_softly_]. Hush! hush! I come to free thee; thou art dreaming.\6188\6189_Margaret_ [_prostrating herself before him_].\6190Art thou a man, then feel for my distress.\6191\6192_Faust_. Thou'lt wake the guards with thy loud screaming!\6193 [_He seizes the chains to tin lock them._]\6194\6195_Margaret_ [_on her knees_]. Headsman, who's given thee this right\6196O'er me, this power!\6197Thou com'st for me at dead of night;\6198In pity spare me, one short hour!\6199Wilt't not be time when Matin bell has rung?\6200 [_She stands up._]\6201Ah, I am yet so young, so young!\6202And death pursuing!\6203Fair was I too, and that was my undoing.\6204My love was near, far is he now!\6205Tom is the wreath, the scattered flowers lie low.\6206Take not such violent hold of me!\6207Spare me! what harm have I done to thee?\6208Let me not in vain implore thee.\6209Thou ne'er till now sawft her who lies before thee!\6210\6211_Faust_. O sorrow worse than death is o'er me!\6212\6213_Margaret_. Now I am wholly in thy power.\6214But first I'd nurse my child--do not prevent me.\6215I hugged it through the black night hour;\6216They took it from me to torment me,\6217And now they say I killed the pretty flower.\6218I shall never be happy again, I know.\6219They sing vile songs at me! 'Tis bad in them to do it!\6220There's an old tale that ends just so,\6221Who gave that meaning to it?\6222\6223_Faust [prostrates himself_]. A lover at thy feet is bending,\6224Thy bonds of misery would be rending.\6225\6226_Margaret [flings herself beside him_].\6227O let us kneel, the saints for aid invoking!\6228See! 'neath the threshold smoking,\6229Fire-breathing,\6230Hell is seething!\6231There prowling,\6232And grim under cover,\6233Satan is howling!\6234\6235_Faust [aloud_]. Margery! Margery!\6236\6237_Margaret [listening_]. That was the voice of my lover!\6238 [_She springs up. The chains fall off_.]\6239\6240Where is he? Where? He calls. I hear him.\6241I'm free! Who hinders? I will be near him.\6242I'll fly to his neck! I'll hold him!\6243To my bosom I'll enfold him!\6244He stood on the threshold--called Margery plainly!\6245Hell's howling and clattering to drown it sought vainly,--\6246Through the devilish, grim scoffs, that might turn one to stone,\6247I caught the sweet, loving, enrapturing tone.\6248\6249_Faust_. 'Tis I!\6250\6251_Margaret_. 'Tis thou! O say it once again.\6252 [_Clasping again._]\6253'Tis he! 'tis he! Where now is all my pain?\6254And where the dungeon's anguish? Joy-giver!\6255'Tis thou! And come to deliver!\6256I am delivered!\6257Again before me lies the street,\6258Where for the first time thou and I did meet.\6259And the garden-bower,\6260Where we spent that evening hour.\6261\6262_Faust_ [_trying to draw her away_]. Come! Come with me!\6263\6264_Margaret_. O tarry!\6265I tarry so gladly where thou tarriest.\6266 [_Caressing him._]\6267\6268_Faust_. Hurry!\6269Unless thou hurriest,\6270Bitterly we both must rue it.\6271\6272_Margaret_. Kiss me! Canst no more do it?\6273So short an absence, love, as this,\6274And forgot how to kiss?\6275What saddens me so as I hang about thy neck?\6276When once, in thy words, thy looks, such a heaven of blisses\6277Came o'er me, I thought my heart would break,\6278And it seemed as if thou wouldst smother me with kisses.\6279Kiss thou me!\6280Else I kiss thee!\6281 [_She embraces him._]\6282Woe! woe! thy lips are cold,\6283Stone-dumb.\6284Where's thy love left?\6285Oh! I'm bereft!\6286Who robbed me?\6287 [_She turns from him_]\6288\6289_Faust_. O come!\6290Take courage, my darling! Let us go;\6291I clasp-thee with unutterable glow;\6292But follow me! For this alone I plead!\6293\6294_Margaret [turning to him_]. Is it, then, thou?\6295And is it thou indeed?\6296\6297_Faust_. 'Tis I! Come, follow me!\6298\6299_Margaret_. Thou break'st my chain,\6300And tak'st me to thy breast again!\6301How comes it, then, that thou art not afraid of me?\6302And dost thou know, my friend, who 'tis thou settest free?\6303\6304_Faust_. Come! come! The night is on the wane.\6305\6306_Margaret_. Woe! woe! My mother I've slain!\6307Have drowned the babe of mine!\6308Was it not sent to be mine and thine?\6309Thine, too--'tis thou! Scarce true doth it seem.\6310Give me thy hand! 'Tis not a dream!\6311Thy blessed hand!--But ah! there's dampness here!\6312Go, wipe it off! I fear\6313There's blood thereon.\6314Ah God! what hast thou done!\6315Put up thy sword again;\6316I pray thee, do!\6317\6318_Faust_. The past is past--there leave it then,\6319Thou kill'st me too!\6320\6321_Margaret_. No, thou must longer tarry!\6322I'll tell thee how each thou shalt bury;\6323The places of sorrow\6324Make ready to-morrow;\6325Must give the best place to my mother,\6326The very next to my brother,\6327Me a little aside,\6328But make not the space too wide!\6329And on my right breast let the little one lie.\6330No one else will be sleeping by me.\6331Once, to feel _thy_ heart beat nigh me,\6332Oh, 'twas a precious, a tender joy!\6333But I shall have it no more--no, never;\6334I seem to be forcing myself on thee ever,\6335And thou repelling me freezingly;\6336And 'tis thou, the same good soul, I see.\6337\6338_Faust_. If thou feelest 'tis I, then come with me\6339\6340_Margaret_. Out yonder?\6341\6342_Faust_. Into the open air.\6343\6344_Margaret_. If the grave is there,\6345If death is lurking; then come!\6346From here to the endless resting-place,\6347And not another pace--Thou\6348go'st e'en now? O, Henry, might I too.\6349\6350_Faust_. Thou canst! 'Tis but to will! The door stands open.\6351\6352_Margaret_. I dare not go; for me there's no more hoping.\6353What use to fly? They lie in wait for me.\6354So wretched the lot to go round begging,\6355With an evil conscience thy spirit plaguing!\6356So wretched the lot, an exile roaming--And\6357then on my heels they are ever coming!\6358\6359_Faust_. I shall be with thee.\6360\6361_Margaret_. Make haste! make haste!\6362No time to waste!\6363Save thy poor child!\6364Quick! follow the edge\6365Of the rushing rill,\6366Over the bridge\6367And by the mill,\6368Then into the woods beyond\6369On the left where lies the plank\6370Over the pond.\6371Seize hold of it quick!\6372To rise 'tis trying,\6373It struggles still!\6374Rescue! rescue!\6375\6376_Faust_. Bethink thyself, pray!\6377A single step and thou art free!\6378\6379_Margaret_. Would we were by the mountain. See!\6380There sits my mother on a stone,\6381The sight on my brain is preying!\6382There sits my mother on a stone,\6383And her head is constantly swaying;\6384She beckons not, nods not, her head falls o'er,\6385So long she's been sleeping, she'll wake no more.\6386She slept that we might take pleasure.\6387O that was bliss without measure!\6388\6389_Faust_. Since neither reason nor prayer thou hearest;\6390I must venture by force to take thee, dearest.\6391\6392_Margaret_. Let go! No violence will I bear!\6393Take not such a murderous hold of me!\6394I once did all I could to gratify thee.\6395\6396_Faust_. The day is breaking! Dearest! dearest!\6397\6398_Margaret_. Day! Ay, it is day! the last great day breaks in!\6399My wedding-day it should have been!\6400Tell no one thou hast been with Margery!\6401Alas for my garland! The hour's advancing!\6402Retreat is in vain!\6403We meet again,\6404But not at the dancing.\6405The multitude presses, no word is spoke.\6406Square, streets, all places--\6407sea of faces--\6408The bell is tolling, the staff is broke.\6409How they seize me and bind me!\6410They hurry me off to the bloody block.[48]\6411The blade that quivers behind me,\6412Quivers at every neck with convulsive shock;\6413Dumb lies the world as the grave!\6414\6415_Faust_. O had I ne'er been born!\6416\6417_Mephistopheles [appears without_]. Up! or thou'rt lost! The morn\6418Flushes the sky.\6419Idle delaying! Praying and playing!\6420My horses are neighing,\6421They shudder and snort for the bound.\6422\6423_Margaret_. What's that, comes up from the ground?\6424He! He! Avaunt! that face!\6425What will he in the sacred place?\6426He seeks me!\6427\6428_Faust_. Thou shalt live!\6429\6430_Margaret_. Great God in heaven!\6431Unto thy judgment my soul have I given!\6432\6433_Mephistopheles [to Faust_].\6434Come! come! or in the lurch I leave both her and thee!\6435\6436_Margaret_. Thine am I, Father! Rescue me!\6437Ye angels, holy bands, attend me!\6438And camp around me to defend me I\6439Henry! I dread to look on thee.\6440\6441_Mephistopheles_. She's judged!\6442\6443_Voice [from above_]. She's saved!\6444\6445_Mephistopheles [to Faust_]. Come thou to me!\6446 [_Vanishes with_ FAUST.]\6447\6448_Voice [from within, dying away_]. Henry! Henry!\6449\6450\6451\6452\6453NOTES.\6454\6455\6456[Footnote 1: Dedication. The idea of Faust had early entered into Goethe's\6457mind. He probably began the work when he was about twenty years old. It\6458was first published, as a fragment, in 1790, and did not appear in its\6459present form till 1808, when its author's age was nearly sixty. By the\6460\"forms\" are meant, of course, the shadowy personages and scenes of the\6461drama.]\6462\6463[Footnote 2: --\"Thy messengers\"--\6464 \"He maketh the winds his-messengers,\6465 The flaming lightnings his ministers.\"\6466 _Noyes's Psalms_, c. iv. 4.]\6467\6468[Footnote 3: \"The Word Divine.\" In translating the German \"Werdende\"\6469(literally, the _becoming, developing_, or _growing_) by the term _word_,\6470I mean the _word_ in the largest sense: \"In the beginning was the Word,\6471&c.\" Perhaps \"nature\" would be a pretty good rendering, but \"word,\" being\6472derived from \"werden,\" and expressing philosophically and scripturally the\6473going forth or manifestation of mind, seemed to me as appropriate a\6474translation as any.]\6475\6476[Footnote 4: \"The old fellow.\" The commentators do not seem quite agreed\6477whether \"den Alten\" (the old one) is an entirely reverential phrase here,\6478like the \"ancient of days,\" or savors a little of profane pleasantry, like\6479the title \"old man\" given by boys to their schoolmaster or of \"the old\6480gentleman\" to their fathers. Considering who the speaker is, I have\6481naturally inclined to the latter alternative.]\6482\6483[Footnote 5: \"Nostradamus\" (properly named Michel Notre Dame) lived\6484through the first half of the sixteenth century. He was born in the south\6485of France and was of Jewish extraction. As physician and astrologer, he\6486was held in high honor by the French nobility and kings.]\6487\6488[Footnote 6: The \"Macrocosm\" is the great world of outward things, in\6489contrast with its epitome, the little world in man, called the microcosm\6490(or world in miniature).]\6491\6492[Footnote 7: \"Famulus\" seems to mean a cross between a servant and a\6493scholar. The Dominie Sampson called Wagner, is appended to Faust for the\6494time somewhat as Sancho is to Don Quixote. The Doctor Faust of the legend\6495has a servant by that name, who seems to have been more of a _Sancho_, in\6496the sense given to the word by the old New England mothers when upbraiding\6497bad boys (you Sanch'!). Curiously enough, Goethe had in early life a\6498(treacherous) friend named Wagner, who plagiarized part of Faust and made\6499a tragedy of it.]\6500\6501[Footnote 8: \"Mock-heroic play.\" We have Schlegel's authority for thus\6502rendering the phrase \"Haupt- und Staats-Action,\" (literally, \"head and\6503State-action,\") who says that this title was given to dramas designed for\6504puppets, when they treated of heroic and historical subjects.]\6505\6506[Footnote 9: The literal sense of this couplet in the original is:--\6507 \"Is he, in the bliss of becoming,\6508 To creative joy near--\"\6509\"Werde-lust\" presents the same difficulty that we found in note 3. This\6510same word, \"Werden,\" is also used by the poet in the introductory theatre\6511scene (page 7), where he longs for the time when he himself was\6512_ripening_, growing, becoming, or _forming_, (as Hayward renders it.) I\6513agree with Hayward, \"the meaning probably is, that our Saviour enjoys, in\6514coming to life again,\" (I should say, in being born into the upper life,)\6515\"a happiness nearly equal to that of the Creator in creating.\"]\6516\6517[Footnote 10: The Angel-chorusses in this scene present the only instances\6518in which the translator, for the sake of retaining the ring and swing of\6519the melody, has felt himself obliged to give a transfusion of the spirit\6520of the thought, instead of its exact form.\6521\6522The literal meaning of the first chorus is:--\6523\6524 Christ is arisen!\6525 Joy to the Mortal,\6526 Whom the ruinous,\6527 Creeping, hereditary\6528 Infirmities wound round.\6529\6530Dr. Hedge has come nearer than any one to reconciling meaning and melody\6531thus:--\6532\6533 \"Christ has arisen!\6534 Joy to our buried Head!\6535 Whom the unmerited,\6536 Trailing, inherited\6537 Woes did imprison.\"\6538\6539The present translator, without losing sight of the fact that \"the Mortal\"\6540means Christ, has taken the liberty (constrained by rhyme,--which is\6541sometimes more than the _rudder_ of verse,) of making the congratulation\6542include Humanity, as incarnated in Christ, \"the second Adam.\"\6543\6544In the closing Chorus of Angels, the translator found that he could best\6545preserve the spirit of the five-fold rhyme:--\6546\6547 \"Thätig ihn preisenden,\6548 Liebe beweisenden,\6549 Brüderlich speisenden,\6550 Predigend reisenden,\6551 Wonne verheissenden,\"\6552\6553by running it into three couplets.]\6554\6555[Footnote 11: The prose account of the alchymical process is as follows:--\6556\6557\"There was red mercury, a powerfully acting body, united with the tincture\6558of antimony, at a gentle heat of the water-bath. Then, being exposed to\6559the heat of open fire in an aludel, (or alembic,) a sublimate filled its\6560heads in succession, which, if it appeared with various hues, was the\6561desired medicine.\"]\6562\6563[Footnote 12: \"Salamander, &c.\" The four represent the spirits of the\6564four elements, fire, water, air, and earth, which Faust successively\6565conjures, so that, if the monster belongs in any respect to this mundane\6566sphere, he may be exorcized. But it turns out that he is beyond and\6567beneath all.]\6568\6569[Footnote 13: Here, of course, Faust makes the sign of the cross, or holds\6570out a crucifix.]\6571\6572[Footnote 14: \"Fly-God,\" _i.e._ Beelzebub.]\6573\6574[Footnote 15: The \"Drudenfuss,\" or pentagram, was a pentagonal figure\6575composed of three triangles, thus:\6576[Illustration]\6577\6578[Footnote 16: Doctor's Feast. The inaugural feast given at taking a\6579degree.]\6580\6581[Footnote 17: \"Blood.\" When at the first invention of printing, the art\6582was ascribed to the devil, the illuminated red ink parts were said by the\6583people to be done in blood.]\6584\6585[Footnote 18: \"The Spanish boot\" was an instrument of torture, like the\6586Scottish boot mentioned in Old Mortality.]\6587\6588[Footnote 19: \"Encheiresin Naturæ.\" Literally, a handling of nature.]\6589\6590[Footnote 20: Still a famous place of public resort and entertainment. On\6591the wall are two old paintings of Faust's carousal and his ride out of the\6592door on a cask. One is accompanied by the following inscription, being two\6593lines (Hexameter and Pentameter) broken into halves:--\6594\6595 \"Vive, bibe, obgregare, memor\6596 Fausti hujus et hujus\6597 Pnæ. Aderat clauda haec,\6598 Ast erat ampla gradû. 1525.\"\6599\6600 \"Live, drink, be merry, remembering\6601 This Faust and his\6602 Punishment. It came slowly\6603 But was in ample measure.\"]\6604\6605[Footnote 21:_Frosch, Brander_, &c. These names seem to be chosen with an\6606eye to adaptation, Frosch meaning frog, and Brander fireship. \"Frog\"\6607happens also to be the nickname the students give to a pupil of the\6608gymnasium, or school preparatory to the university.]\6609\6610[Footnote 22: Rippach is a village near Leipsic, and Mr. Hans was a\6611fictitious personage about whom the students used to quiz greenhorns.]\6612\6613[Footnote 23: The original means literally _sea-cat_. Retzsch says, it is\6614the little ring-tailed monkey.]\6615\6616[Footnote 24: One-time-one, _i.e._ multiplication-table.]\6617\6618[Footnote 25: \"Hand and glove.\" The translator's coincidence with Miss\6619Swanwick here was entirely accidental. The German is \"thou and thou,\"\6620alluding to the fact that intimate friends among the Germans, like the\6621sect of Friends, call each other _thou_.]\6622\6623[Footnote 26: The following is a literal translation of the song referred\6624to:--\6625\6626 Were I a little bird,\6627 Had I two wings of mine,\6628 I'd fly to my dear;\6629 But that can never be,\6630 So I stay here.\6631\6632 Though I am far from thee,\6633 Sleeping I'm near to thee,\6634 Talk with my dear;\6635 When I awake again,\6636 I am alone.\6637\6638 Scarce is there an hour in the night,\6639 When sleep does not take its flight,\6640 And I think of thee,\6641 How many thousand times\6642 Thou gav'st thy heart to me.]\6643\6644[Footnote 27: Donjon. The original is _Zwinger_, which Hayward says is\6645untranslatable. It probably means an old tower, such as is often found in\6646the free cities, where, in a dark passage-way, a lamp is sometimes placed,\6647and a devotional image near it.]\6648\6649[Footnote 28: It was a superstitious belief that the presence of buried\6650treasure was indicated by a blue flame.]\6651\6652[Footnote 29: Lion-dollars--a Bohemian coin, first minted three centuries\6653ago, by Count Schlick, from the mines of Joachim's-Thal. The one side\6654bears a lion, the other a full length image of St. John.]\6655\6656[Footnote 30: An imitation of Ophelia's song: _Hamlet_, act 14, scene 5.]\6657\6658[Footnote 31: The Rat-catcher was supposed to have the art of drawing rats\6659after him by his whistle, like a sort of Orpheus.]\6660\6661[Footnote 32: Walpurgis Night. May-night. Walpurgis is the female saint\6662who converted the Saxons to Christianity.--The Brocken or Blocksberg is\6663the highest peak of the Harz mountains, which comprise about 1350 square\6664miles.--Schirke and Elend are two villages in the neighborhood.]\6665\6666[Footnote 33: Shelley's translation of this couplet is very fine:\6667(\"_O si sic omnia!_\")\6668\6669 \"The giant-snouted crags, ho! ho!\6670 How they snort and how they blow!\"]\6671\6672[Footnote 34: The original is _Windsbraut_, (wind's-bride,) the word used\6673in Luther's Bible to translate Paul's _Euroclydon_.]\6674\6675[Footnote 35: One of the names of the devil in Germany.]\6676\6677[Footnote 36: One of the names of Beelzebub.]\6678\6679[Footnote 37: \"The Talmudists say that Adam had a wife called Lilis before\6680he married Eve, and of her he begat nothing but devils.\"\6681 _Burton's Anatomy of Melancholy_.\6682\6683A learned writer says that _Lullaby_ is derived from \"Lilla, abi!\" \"Begone\6684Lilleth!\" she having been supposed to lie in wait for children to kill\6685them.]\6686\6687[Footnote 38: This name, derived from two Greek words meaning _rump_ and\6688_fancy_, was meant for Nicolai of Berlin, a great hater of Goethe's\6689writings, and is explained by the fact that the man had for a long time a\6690violent affection of the nerves, and by the application he made of leeches\6691as a remedy, (alluded to by Mephistopheles.)]\6692\6693[Footnote 39: Tegel (mistranslated _pond_ by Shelley) is a small place a\6694few miles from Berlin, whose inhabitants were, in 1799, hoaxed by a ghost\6695story, of which the scene was laid in the former place.]\6696\6697[Footnote 40: The park in Vienna.]\6698\6699[Footnote 41: He was scene-painter to the Weimar theatre.]\6700\6701[Footnote 42: A poem of Schiller's, which gave great offence to the\6702religious people of his day.]\6703\6704[Footnote 43: A literal translation of _Maulen_, but a slang-term in\6705Yankee land.]\6706\6707[Footnote 44: Epigrams, published from time to time by Goethe and Schiller\6708jointly. Hennings (whose name heads the next quatrain) was editor of the\6709_Musaget_, (a title of Apollo, \"leader of the muses,\") and also of the\6710_Genius of the Age_. The other satirical allusions to classes of\6711notabilities will, without difficulty, be guessed out by the readers.]\6712\6713[Footnote 45: \"_Doubt_ is the only rhyme for devil,\" in German.]\6714\6715[Footnote 46: The French translator, Stapfer, assigns as the probable\6716reason why this scene alone, of the whole drama, should have been left in\6717prose, \"that it might not be said that Faust wanted any one of the\6718possible forms of style.\"]\6719\6720[Footnote 47: Literally the _raven-stone_.]\6721\6722[Footnote 48: The _blood-seat_, in allusion to the old German custom of\6723tying a woman, who was to be beheaded, into a wooden chair.]\6724\6725 * * * * *\6726\6727P. S. There is a passage on page 84, the speech of Faust, ending with the\6728lines:--\6729\6730 Show me the fruit that, ere it's plucked, will rot,\6731 And trees from which new green is daily peeping,\6732\6733which seems to have puzzled or misled so much, not only English\6734translators, but even German critics, that the present translator has\6735concluded, for once, to depart from his usual course, and play the\6736commentator, by giving his idea of Goethe's meaning, which is this: Faust\6737admits that the devil has all the different kinds of Sodom-apples which he\6738has just enumerated, gold that melts away in the hand, glory that vanishes\6739like a meteor, and pleasure that perishes in the possession. But all these\6740torments are too insipid for Faust's morbid and mad hankering after the\6741luxury of spiritual pain. Show me, he says, the fruit that rots _before_\6742one can pluck it, and [a still stronger expression of his diseased craving\6743for agony] trees that fade so quickly as to be every day just putting\6744forth new green, only to tantalize one with perpetual promise and\6745perpetual disappointment.\6746\6747\6748\6749\6750\6751End of the Project Gutenberg EBook of Faust, by Goethe\6752\6753*** END OF THIS PROJECT GUTENBERG EBOOK FAUST ***\6754\6755***** This file should be named 14460-8.txt or 14460-8.zip *****\6756This and all associated files of various formats will be found in:\6757 http://www.gutenberg.net/1/4/4/6/14460/\6758\6759Produced by Juliet Sutherland, Charles Bidwell and the PG Online\6760Distributed Proofreading Team\6761\6762\6763Updated editions will replace the previous one--the old editions\6764will be renamed.\6765\6766Creating the works from public domain print editions means that no\6767one owns a United States copyright in these works, so the Foundation\6768(and you!) can copy and distribute it in the United States without\6769permission and without paying copyright royalties. Special rules,\6770set forth in the General Terms of Use part of this license, apply to\6771copying and distributing Project Gutenberg-tm electronic works to\6772protect the PROJECT GUTENBERG-tm concept and trademark. Project\6773Gutenberg is a registered trademark, and may not be used if you\6774charge for the eBooks, unless you receive specific permission. If you\6775do not charge anything for copies of this eBook, complying with the\6776rules is very easy. You may use this eBook for nearly any purpose\6777such as creation of derivative works, reports, performances and\6778research. They may be modified and printed and given away--you may do\6779practically ANYTHING with public domain eBooks. Redistribution is\6780subject to the trademark license, especially commercial\6781redistribution.\6782\6783\6784\6785*** START: FULL LICENSE ***\6786\6787THE FULL PROJECT GUTENBERG LICENSE\6788PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK\6789\6790To protect the Project Gutenberg-tm mission of promoting the free\6791distribution of electronic works, by using or distributing this work\6792(or any other work associated in any way with the phrase \"Project\6793Gutenberg\"), you agree to comply with all the terms of the Full Project\6794Gutenberg-tm License (available with this file or online at\6795http://gutenberg.net/license).\6796\6797\6798Section 1. General Terms of Use and Redistributing Project Gutenberg-tm\6799electronic works\6800\68011.A. By reading or using any part of this Project Gutenberg-tm\6802electronic work, you indicate that you have read, understand, agree to\6803and accept all the terms of this license and intellectual property\6804(trademark/copyright) agreement. If you do not agree to abide by all\6805the terms of this agreement, you must cease using and return or destroy\6806all copies of Project Gutenberg-tm electronic works in your possession.\6807If you paid a fee for obtaining a copy of or access to a Project\6808Gutenberg-tm electronic work and you do not agree to be bound by the\6809terms of this agreement, you may obtain a refund from the person or\6810entity to whom you paid the fee as set forth in paragraph 1.E.8.\6811\68121.B. \"Project Gutenberg\" is a registered trademark. It may only be\6813used on or associated in any way with an electronic work by people who\6814agree to be bound by the terms of this agreement. There are a few\6815things that you can do with most Project Gutenberg-tm electronic works\6816even without complying with the full terms of this agreement. See\6817paragraph 1.C below. There are a lot of things you can do with Project\6818Gutenberg-tm electronic works if you follow the terms of this agreement\6819and help preserve free future access to Project Gutenberg-tm electronic\6820works. See paragraph 1.E below.\6821\68221.C. The Project Gutenberg Literary Archive Foundation (\"the Foundation\"\6823or PGLAF), owns a compilation copyright in the collection of Project\6824Gutenberg-tm electronic works. Nearly all the individual works in the\6825collection are in the public domain in the United States. If an\6826individual work is in the public domain in the United States and you are\6827located in the United States, we do not claim a right to prevent you from\6828copying, distributing, performing, displaying or creating derivative\6829works based on the work as long as all references to Project Gutenberg\6830are removed. Of course, we hope that you will support the Project\6831Gutenberg-tm mission of promoting free access to electronic works by\6832freely sharing Project Gutenberg-tm works in compliance with the terms of\6833this agreement for keeping the Project Gutenberg-tm name associated with\6834the work. You can easily comply with the terms of this agreement by\6835keeping this work in the same format with its attached full Project\6836Gutenberg-tm License when you share it without charge with others.\6837\68381.D. The copyright laws of the place where you are located also govern\6839what you can do with this work. Copyright laws in most countries are in\6840a constant state of change. If you are outside the United States, check\6841the laws of your country in addition to the terms of this agreement\6842before downloading, copying, displaying, performing, distributing or\6843creating derivative works based on this work or any other Project\6844Gutenberg-tm work. The Foundation makes no representations concerning\6845the copyright status of any work in any country outside the United\6846States.\6847\68481.E. Unless you have removed all references to Project Gutenberg:\6849\68501.E.1. The following sentence, with active links to, or other immediate\6851access to, the full Project Gutenberg-tm License must appear prominently\6852whenever any copy of a Project Gutenberg-tm work (any work on which the\6853phrase \"Project Gutenberg\" appears, or with which the phrase \"Project\6854Gutenberg\" is associated) is accessed, displayed, performed, viewed,\6855copied or distributed:\6856\6857This eBook is for the use of anyone anywhere at no cost and with\6858almost no restrictions whatsoever. You may copy it, give it away or\6859re-use it under the terms of the Project Gutenberg License included\6860with this eBook or online at www.gutenberg.net\6861\68621.E.2. If an individual Project Gutenberg-tm electronic work is derived\6863from the public domain (does not contain a notice indicating that it is\6864posted with permission of the copyright holder), the work can be copied\6865and distributed to anyone in the United States without paying any fees\6866or charges. If you are redistributing or providing access to a work\6867with the phrase \"Project Gutenberg\" associated with or appearing on the\6868work, you must comply either with the requirements of paragraphs 1.E.1\6869through 1.E.7 or obtain permission for the use of the work and the\6870Project Gutenberg-tm trademark as set forth in paragraphs 1.E.8 or\68711.E.9.\6872\68731.E.3. If an individual Project Gutenberg-tm electronic work is posted\6874with the permission of the copyright holder, your use and distribution\6875must comply with both paragraphs 1.E.1 through 1.E.7 and any additional\6876terms imposed by the copyright holder. Additional terms will be linked\6877to the Project Gutenberg-tm License for all works posted with the\6878permission of the copyright holder found at the beginning of this work.\6879\68801.E.4. Do not unlink or detach or remove the full Project Gutenberg-tm\6881License terms from this work, or any files containing a part of this\6882work or any other work associated with Project Gutenberg-tm.\6883\68841.E.5. Do not copy, display, perform, distribute or redistribute this\6885electronic work, or any part of this electronic work, without\6886prominently displaying the sentence set forth in paragraph 1.E.1 with\6887active links or immediate access to the full terms of the Project\6888Gutenberg-tm License.\6889\68901.E.6. You may convert to and distribute this work in any binary,\6891compressed, marked up, nonproprietary or proprietary form, including any\6892word processing or hypertext form. However, if you provide access to or\6893distribute copies of a Project Gutenberg-tm work in a format other than\6894\"Plain Vanilla ASCII\" or other format used in the official version\6895posted on the official Project Gutenberg-tm web site (www.gutenberg.net),\6896you must, at no additional cost, fee or expense to the user, provide a\6897copy, a means of exporting a copy, or a means of obtaining a copy upon\6898request, of the work in its original \"Plain Vanilla ASCII\" or other\6899form. Any alternate format must include the full Project Gutenberg-tm\6900License as specified in paragraph 1.E.1.\6901\69021.E.7. Do not charge a fee for access to, viewing, displaying,\6903performing, copying or distributing any Project Gutenberg-tm works\6904unless you comply with paragraph 1.E.8 or 1.E.9.\6905\69061.E.8. You may charge a reasonable fee for copies of or providing\6907access to or distributing Project Gutenberg-tm electronic works provided\6908that\6909\6910- You pay a royalty fee of 20% of the gross profits you derive from\6911 the use of Project Gutenberg-tm works calculated using the method\6912 you already use to calculate your applicable taxes. The fee is\6913 owed to the owner of the Project Gutenberg-tm trademark, but he\6914 has agreed to donate royalties under this paragraph to the\6915 Project Gutenberg Literary Archive Foundation. Royalty payments\6916 must be paid within 60 days following each date on which you\6917 prepare (or are legally required to prepare) your periodic tax\6918 returns. Royalty payments should be clearly marked as such and\6919 sent to the Project Gutenberg Literary Archive Foundation at the\6920 address specified in Section 4, \"Information about donations to\6921 the Project Gutenberg Literary Archive Foundation.\"\6922\6923- You provide a full refund of any money paid by a user who notifies\6924 you in writing (or by e-mail) within 30 days of receipt that s/he\6925 does not agree to the terms of the full Project Gutenberg-tm\6926 License. You must require such a user to return or\6927 destroy all copies of the works possessed in a physical medium\6928 and discontinue all use of and all access to other copies of\6929 Project Gutenberg-tm works.\6930\6931- You provide, in accordance with paragraph 1.F.3, a full refund of any\6932 money paid for a work or a replacement copy, if a defect in the\6933 electronic work is discovered and reported to you within 90 days\6934 of receipt of the work.\6935\6936- You comply with all other terms of this agreement for free\6937 distribution of Project Gutenberg-tm works.\6938\69391.E.9. If you wish to charge a fee or distribute a Project Gutenberg-tm\6940electronic work or group of works on different terms than are set\6941forth in this agreement, you must obtain permission in writing from\6942both the Project Gutenberg Literary Archive Foundation and Michael\6943Hart, the owner of the Project Gutenberg-tm trademark. Contact the\6944Foundation as set forth in Section 3 below.\6945\69461.F.\6947\69481.F.1. Project Gutenberg volunteers and employees expend considerable\6949effort to identify, do copyright research on, transcribe and proofread\6950public domain works in creating the Project Gutenberg-tm\6951collection. Despite these efforts, Project Gutenberg-tm electronic\6952works, and the medium on which they may be stored, may contain\6953\"Defects,\" such as, but not limited to, incomplete, inaccurate or\6954corrupt data, transcription errors, a copyright or other intellectual\6955property infringement, a defective or damaged disk or other medium, a\6956computer virus, or computer codes that damage or cannot be read by\6957your equipment.\6958\69591.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for the \"Right\6960of Replacement or Refund\" described in paragraph 1.F.3, the Project\6961Gutenberg Literary Archive Foundation, the owner of the Project\6962Gutenberg-tm trademark, and any other party distributing a Project\6963Gutenberg-tm electronic work under this agreement, disclaim all\6964liability to you for damages, costs and expenses, including legal\6965fees. YOU AGREE THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT\6966LIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT EXCEPT THOSE\6967PROVIDED IN PARAGRAPH F3. YOU AGREE THAT THE FOUNDATION, THE\6968TRADEMARK OWNER, AND ANY DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE\6969LIABLE TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE OR\6970INCIDENTAL DAMAGES EVEN IF YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH\6971DAMAGE.\6972\69731.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you discover a\6974defect in this electronic work within 90 days of receiving it, you can\6975receive a refund of the money (if any) you paid for it by sending a\6976written explanation to the person you received the work from. If you\6977received the work on a physical medium, you must return the medium with\6978your written explanation. The person or entity that provided you with\6979the defective work may elect to provide a replacement copy in lieu of a\6980refund. If you received the work electronically, the person or entity\6981providing it to you may choose to give you a second opportunity to\6982receive the work electronically in lieu of a refund. If the second copy\6983is also defective, you may demand a refund in writing without further\6984opportunities to fix the problem.\6985\69861.F.4. Except for the limited right of replacement or refund set forth\6987in paragraph 1.F.3, this work is provided to you 'AS-IS' WITH NO OTHER\6988WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO\6989WARRANTIES OF MERCHANTIBILITY OR FITNESS FOR ANY PURPOSE.\6990\69911.F.5. Some states do not allow disclaimers of certain implied\6992warranties or the exclusion or limitation of certain types of damages.\6993If any disclaimer or limitation set forth in this agreement violates the\6994law of the state applicable to this agreement, the agreement shall be\6995interpreted to make the maximum disclaimer or limitation permitted by\6996the applicable state law. The invalidity or unenforceability of any\6997provision of this agreement shall not void the remaining provisions.\6998\69991.F.6. INDEMNITY - You agree to indemnify and hold the Foundation, the\7000trademark owner, any agent or employee of the Foundation, anyone\7001providing copies of Project Gutenberg-tm electronic works in accordance\7002with this agreement, and any volunteers associated with the production,\7003promotion and distribution of Project Gutenberg-tm electronic works,\7004harmless from all liability, costs and expenses, including legal fees,\7005that arise directly or indirectly from any of the following which you do\7006or cause to occur: (a) distribution of this or any Project Gutenberg-tm\7007work, (b) alteration, modification, or additions or deletions to any\7008Project Gutenberg-tm work, and (c) any Defect you cause.\7009\7010\7011Section 2. Information about the Mission of Project Gutenberg-tm\7012\7013Project Gutenberg-tm is synonymous with the free distribution of\7014electronic works in formats readable by the widest variety of computers\7015including obsolete, old, middle-aged and new computers. It exists\7016because of the efforts of hundreds of volunteers and donations from\7017people in all walks of life.\7018\7019Volunteers and financial support to provide volunteers with the\7020assistance they need, is critical to reaching Project Gutenberg-tm's\7021goals and ensuring that the Project Gutenberg-tm collection will\7022remain freely available for generations to come. In 2001, the Project\7023Gutenberg Literary Archive Foundation was created to provide a secure\7024and permanent future for Project Gutenberg-tm and future generations.\7025To learn more about the Project Gutenberg Literary Archive Foundation\7026and how your efforts and donations can help, see Sections 3 and 4\7027and the Foundation web page at http://www.pglaf.org.\7028\7029\7030Section 3. Information about the Project Gutenberg Literary Archive\7031Foundation\7032\7033The Project Gutenberg Literary Archive Foundation is a non profit\7034501(c)(3) educational corporation organized under the laws of the\7035state of Mississippi and granted tax exempt status by the Internal\7036Revenue Service. The Foundation's EIN or federal tax identification\7037number is 64-6221541. Its 501(c)(3) letter is posted at\7038http://pglaf.org/fundraising. Contributions to the Project Gutenberg\7039Literary Archive Foundation are tax deductible to the full extent\7040permitted by U.S. federal laws and your state's laws.\7041\7042The Foundation's principal office is located at 4557 Melan Dr. S.\7043Fairbanks, AK, 99712., but its volunteers and employees are scattered\7044throughout numerous locations. Its business office is located at\7045809 North 1500 West, Salt Lake City, UT 84116, (801) 596-1887, email\7046business@pglaf.org. Email contact links and up to date contact\7047information can be found at the Foundation's web site and official\7048page at http://pglaf.org\7049\7050For additional contact information:\7051 Dr. Gregory B. Newby\7052 Chief Executive and Director\7053 gbnewby@pglaf.org\7054\7055\7056Section 4. Information about Donations to the Project Gutenberg\7057Literary Archive Foundation\7058\7059Project Gutenberg-tm depends upon and cannot survive without wide\7060spread public support and donations to carry out its mission of\7061increasing the number of public domain and licensed works that can be\7062freely distributed in machine readable form accessible by the widest\7063array of equipment including outdated equipment. Many small donations\7064($1 to $5,000) are particularly important to maintaining tax exempt\7065status with the IRS.\7066\7067The Foundation is committed to complying with the laws regulating\7068charities and charitable donations in all 50 states of the United\7069States. Compliance requirements are not uniform and it takes a\7070considerable effort, much paperwork and many fees to meet and keep up\7071with these requirements. We do not solicit donations in locations\7072where we have not received written confirmation of compliance. To\7073SEND DONATIONS or determine the status of compliance for any\7074particular state visit http://pglaf.org\7075\7076While we cannot and do not solicit contributions from states where we\7077have not met the solicitation requirements, we know of no prohibition\7078against accepting unsolicited donations from donors in such states who\7079approach us with offers to donate.\7080\7081International donations are gratefully accepted, but we cannot make\7082any statements concerning tax treatment of donations received from\7083outside the United States. U.S. laws alone swamp our small staff.\7084\7085Please check the Project Gutenberg Web pages for current donation\7086methods and addresses. Donations are accepted in a number of other\7087ways including including checks, online payments and credit card\7088donations. To donate, please visit: http://pglaf.org/donate\7089\7090\7091Section 5. General Information About Project Gutenberg-tm electronic\7092works.\7093\7094Professor Michael S. Hart is the originator of the Project Gutenberg-tm\7095concept of a library of electronic works that could be freely shared\7096with anyone. For thirty years, he produced and distributed Project\7097Gutenberg-tm eBooks with only a loose network of volunteer support.\7098\7099\7100Project Gutenberg-tm eBooks are often created from several printed\7101editions, all of which are confirmed as Public Domain in the U.S.\7102unless a copyright notice is included. Thus, we do not necessarily\7103keep eBooks in compliance with any particular paper edition.\7104\7105\7106Most people start at our Web site which has the main PG search facility:\7107\7108 http://www.gutenberg.net\7109\7110This Web site includes information about Project Gutenberg-tm,\7111including how to make donations to the Project Gutenberg Literary\7112Archive Foundation, how to help produce our new eBooks, and how to\7113subscribe to our email newsletter to hear about new eBooks.",7114 textXML = "<?xml version=\"1.0\" encoding=\"windows-1252\" standalone=\"yes\"?>\7115<feed xmlns=\"http://purl.org/atom/ns#\" version=\"0.3\" xml:lang=\"en-US\">\7116<link href=\"https://www.blogger.com/atom/3191291\" rel=\"service.post\" title=\"Coding In Paradise\" type=\"application/atom+xml\"/>\7117<link href=\"https://www.blogger.com/atom/3191291\" rel=\"service.feed\" title=\"Coding In Paradise\" type=\"application/atom+xml\"/>\7118<title mode=\"escaped\" type=\"text/html\">Coding In Paradise</title>\7119<tagline mode=\"escaped\" type=\"text/html\">Brad Neuberg's thoughts, feelings, and experiences.</tagline>\7120<link href=\"http://codinginparadise.org/weblog/\" rel=\"alternate\" title=\"Coding In Paradise\" type=\"text/html\"/>\7121<id>tag:blogger.com,1999:blog-3191291</id>\7122<modified>2006-01-26T01:37:22Z</modified>\7123<generator url=\"http://www.blogger.com/\" version=\"5.15\">Blogger</generator>\7124<info mode=\"xml\" type=\"text/html\">\7125<div xmlns=\"http://www.w3.org/1999/xhtml\">This is an Atom formatted XML site feed. It is intended to be viewed in a Newsreader or syndicated to another site. Please visit the <a href=\"http://help.blogger.com/bin/answer.py?answer=697\">Blogger Help</a> for more info.</div>\7126</info>\7127<convertLineBreaks xmlns=\"http://www.blogger.com/atom/ns#\">true</convertLineBreaks>\7128<entry xmlns=\"http://purl.org/atom/ns#\">\7129<link href=\"https://www.blogger.com/atom/3191291/113823944195262179\" rel=\"service.edit\" title=\"Resume\" type=\"application/atom+xml\"/>\7130<author>\7131<name>Brad GNUberg</name>\7132</author>\7133<issued>2006-01-25T17:36:00-08:00</issued>\7134<modified>2006-01-26T01:37:21Z</modified>\7135<created>2006-01-26T01:37:21Z</created>\7136<link href=\"http://codinginparadise.org/weblog/2006/01/resume.html\" rel=\"alternate\" title=\"Resume\" type=\"text/html\"/>\7137<id>tag:blogger.com,1999:blog-3191291.post-113823944195262179</id>\7138<title mode=\"escaped\" type=\"text/html\">Resume</title>\7139<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7140<div xmlns=\"http://www.w3.org/1999/xhtml\">I just finished and put up my resume. Resumes are hard :)</div>\7141</summary>\7142<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7143</entry>\7144<entry xmlns=\"http://purl.org/atom/ns#\">\7145<link href=\"https://www.blogger.com/atom/3191291/113761645059106145\" rel=\"service.edit\" title=\"AJAXian Site Comparison with Alexa\" type=\"application/atom+xml\"/>\7146<author>\7147<name>Brad GNUberg</name>\7148</author>\7149<issued>2006-01-18T12:33:00-08:00</issued>\7150<modified>2006-01-18T20:34:10Z</modified>\7151<created>2006-01-18T20:34:10Z</created>\7152<link href=\"http://codinginparadise.org/weblog/2006/01/ajaxian-site-comparison-with-alexa.html\" rel=\"alternate\" title=\"AJAXian Site Comparison with Alexa\" type=\"text/html\"/>\7153<id>tag:blogger.com,1999:blog-3191291.post-113761645059106145</id>\7154<title mode=\"escaped\" type=\"text/html\">AJAXian Site Comparison with Alexa</title>\7155<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7156<div xmlns=\"http://www.w3.org/1999/xhtml\">Joe Walker has created an interesting AJAX mashup using Alexa data, making Alexa a bit more useful.</div>\7157</summary>\7158<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7159</entry>\7160<entry xmlns=\"http://purl.org/atom/ns#\">\7161<link href=\"https://www.blogger.com/atom/3191291/113761599631873348\" rel=\"service.edit\" title=\"Civil Engines Released\" type=\"application/atom+xml\"/>\7162<author>\7163<name>Brad GNUberg</name>\7164</author>\7165<issued>2006-01-18T12:16:00-08:00</issued>\7166<modified>2006-01-18T21:43:11Z</modified>\7167<created>2006-01-18T20:26:36Z</created>\7168<link href=\"http://codinginparadise.org/weblog/2006/01/civil-engines-released.html\" rel=\"alternate\" title=\"Civil Engines Released\" type=\"text/html\"/>\7169<id>tag:blogger.com,1999:blog-3191291.post-113761599631873348</id>\7170<title mode=\"escaped\" type=\"text/html\">Civil Engines Released</title>\7171<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7172<div xmlns=\"http://www.w3.org/1999/xhtml\">My old cohorts with BaseSystem and OpenPortal, Christoper Tse, Paolo de Dios, and Ken Rossi of Liquid Orb Media have just shipped their software and announced their company. The company is named Civil Engines, and the software is called Civil Netizen:\7173\7174Civil Netizen provides a useful, secure way to easily transfer large files and groups of files between people on the Internet, getting past FTP</div>\7175</summary>\7176<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7177</entry>\7178<entry xmlns=\"http://purl.org/atom/ns#\">\7179<link href=\"https://www.blogger.com/atom/3191291/113756800036562086\" rel=\"service.edit\" title=\"Photos of Mash Pit\" type=\"application/atom+xml\"/>\7180<author>\7181<name>Brad GNUberg</name>\7182</author>\7183<issued>2006-01-17T23:06:00-08:00</issued>\7184<modified>2006-01-18T07:13:56Z</modified>\7185<created>2006-01-18T07:06:40Z</created>\7186<link href=\"http://codinginparadise.org/weblog/2006/01/photos-of-mash-pit.html\" rel=\"alternate\" title=\"Photos of Mash Pit\" type=\"text/html\"/>\7187<id>tag:blogger.com,1999:blog-3191291.post-113756800036562086</id>\7188<title mode=\"escaped\" type=\"text/html\">Photos of Mash Pit</title>\7189<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7190<div xmlns=\"http://www.w3.org/1999/xhtml\">Photos of Flash Pit are up on Flickr now:\7191\7192\7193\7194\7195\7196\7197\7198\7199\7200</div>\7201</summary>\7202<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7203</entry>\7204<entry xmlns=\"http://purl.org/atom/ns#\">\7205<link href=\"https://www.blogger.com/atom/3191291/113756743174780868\" rel=\"service.edit\" title=\"Offline Access in AJAX Applications\" type=\"application/atom+xml\"/>\7206<author>\7207<name>Brad GNUberg</name>\7208</author>\7209<issued>2006-01-17T22:56:00-08:00</issued>\7210<modified>2006-01-18T19:45:28Z</modified>\7211<created>2006-01-18T06:57:11Z</created>\7212<link href=\"http://codinginparadise.org/weblog/2006/01/offline-access-in-ajax-applications.html\" rel=\"alternate\" title=\"Offline Access in AJAX Applications\" type=\"text/html\"/>\7213<id>tag:blogger.com,1999:blog-3191291.post-113756743174780868</id>\7214<title mode=\"escaped\" type=\"text/html\">Offline Access in AJAX Applications</title>\7215<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7216<div xmlns=\"http://www.w3.org/1999/xhtml\">Update: Julien reports that he's not actually using AMASS in his offline work, but was inspired by it. He rolled his own access to Flash's storage capabilities using ExternalInterface, but he should be aware of the reliability and performance issues with ExternalInterface (I tried to paste 250K of text into the Wiki and the browser locked up for a long period of time as it tried to pass the data</div>\7217</summary>\7218<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7219</entry>\7220<entry xmlns=\"http://purl.org/atom/ns#\">\7221<link href=\"https://www.blogger.com/atom/3191291/113756574524170757\" rel=\"service.edit\" title=\"Mash Pit Synopses\" type=\"application/atom+xml\"/>\7222<author>\7223<name>Brad GNUberg</name>\7224</author>\7225<issued>2006-01-17T22:15:00-08:00</issued>\7226<modified>2006-01-18T06:29:05Z</modified>\7227<created>2006-01-18T06:29:05Z</created>\7228<link href=\"http://codinginparadise.org/weblog/2006/01/mash-pit-synopses.html\" rel=\"alternate\" title=\"Mash Pit Synopses\" type=\"text/html\"/>\7229<id>tag:blogger.com,1999:blog-3191291.post-113756574524170757</id>\7230<title mode=\"escaped\" type=\"text/html\">Mash Pit Synopses</title>\7231<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7232<div xmlns=\"http://www.w3.org/1999/xhtml\">Man, what an amazing event! We had a post-Mash Pit dinner and party at Lonely Palm.\7233\7234Here's some more info about the three projects that were produced at the end of the day.\7235\7236The first one was called Whuffie Tracker; the idea there was to produce a single site that could take your list of blogs and online sites, query other remote sites like Technorati and Flickr, and tell you who is talking about</div>\7237</summary>\7238<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7239</entry>\7240<entry xmlns=\"http://purl.org/atom/ns#\">\7241<link href=\"https://www.blogger.com/atom/3191291/113754717012597001\" rel=\"service.edit\" title=\"Mash Pit 4\" type=\"application/atom+xml\"/>\7242<author>\7243<name>Brad GNUberg</name>\7244</author>\7245<issued>2006-01-17T17:19:00-08:00</issued>\7246<modified>2006-01-18T01:19:30Z</modified>\7247<created>2006-01-18T01:19:30Z</created>\7248<link href=\"http://codinginparadise.org/weblog/2006/01/mash-pit-4.html\" rel=\"alternate\" title=\"Mash Pit 4\" type=\"text/html\"/>\7249<id>tag:blogger.com,1999:blog-3191291.post-113754717012597001</id>\7250<title mode=\"escaped\" type=\"text/html\">Mash Pit 4</title>\7251<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7252<div xmlns=\"http://www.w3.org/1999/xhtml\">It's demo time at Mash Pit. Everyone is furiously coding, but the clock is almost over. We'll have three demos. I'll try to blog them as people give them.</div>\7253</summary>\7254<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7255</entry>\7256<entry xmlns=\"http://purl.org/atom/ns#\">\7257<link href=\"https://www.blogger.com/atom/3191291/113754482097808410\" rel=\"service.edit\" title=\"Mash Pit 3\" type=\"application/atom+xml\"/>\7258<author>\7259<name>Brad GNUberg</name>\7260</author>\7261<issued>2006-01-17T16:39:00-08:00</issued>\7262<modified>2006-01-18T00:40:20Z</modified>\7263<created>2006-01-18T00:40:20Z</created>\7264<link href=\"http://codinginparadise.org/weblog/2006/01/mash-pit-3.html\" rel=\"alternate\" title=\"Mash Pit 3\" type=\"text/html\"/>\7265<id>tag:blogger.com,1999:blog-3191291.post-113754482097808410</id>\7266<title mode=\"escaped\" type=\"text/html\">Mash Pit 3</title>\7267<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7268<div xmlns=\"http://www.w3.org/1999/xhtml\">We're hacking away, very intensely! No time to post! Just 30 more minutes till we have to be done, at 5:15 PM. Nothing like a hard deadline to force you to make hard decisions.</div>\7269</summary>\7270<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7271</entry>\7272<entry xmlns=\"http://purl.org/atom/ns#\">\7273<link href=\"https://www.blogger.com/atom/3191291/113753268191434316\" rel=\"service.edit\" title=\"Mash Pit 2\" type=\"application/atom+xml\"/>\7274<author>\7275<name>Brad GNUberg</name>\7276</author>\7277<issued>2006-01-17T10:43:00-08:00</issued>\7278<modified>2006-01-17T21:18:01Z</modified>\7279<created>2006-01-17T21:18:01Z</created>\7280<link href=\"http://codinginparadise.org/weblog/2006/01/mash-pit-2.html\" rel=\"alternate\" title=\"Mash Pit 2\" type=\"text/html\"/>\7281<id>tag:blogger.com,1999:blog-3191291.post-113753268191434316</id>\7282<title mode=\"escaped\" type=\"text/html\">Mash Pit 2</title>\7283<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7284<div xmlns=\"http://www.w3.org/1999/xhtml\">People are doing intros, saying what their skills are and what they are interested in.\7285\7286We had a big brainstorming session in the morning. The goal was to focus on ideas independent of technology, to force us to focus on whether something is relevant rather than just technologically interesting.\7287\7288We broke for lunch, sponsored by Ning.\7289\7290We've formed three groups that are working independently now.</div>\7291</summary>\7292<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7293</entry>\7294<entry xmlns=\"http://purl.org/atom/ns#\">\7295<link href=\"https://www.blogger.com/atom/3191291/113752336910726653\" rel=\"service.edit\" title=\"Mash Pit Starts\" type=\"application/atom+xml\"/>\7296<author>\7297<name>Brad GNUberg</name>\7298</author>\7299<issued>2006-01-17T10:36:00-08:00</issued>\7300<modified>2006-01-17T18:42:49Z</modified>\7301<created>2006-01-17T18:42:49Z</created>\7302<link href=\"http://codinginparadise.org/weblog/2006/01/mash-pit-starts.html\" rel=\"alternate\" title=\"Mash Pit Starts\" type=\"text/html\"/>\7303<id>tag:blogger.com,1999:blog-3191291.post-113752336910726653</id>\7304<title mode=\"escaped\" type=\"text/html\">Mash Pit Starts</title>\7305<summary type=\"application/xhtml+xml\" xml:base=\"http://codinginparadise.org/weblog/\" xml:space=\"preserve\">\7306<div xmlns=\"http://www.w3.org/1999/xhtml\">Mash Pit is starting now, Chris is talking. We've got a full house of hackers, programmers, thinkers, and open source folks.\7307\7308The goal today is to somehow make the work people have been doing with Web 2.0 relevant for normal folks.\7309\7310We're doing introductions and introducing people to the coworking space. Thanks to Chris for setting up Mash Pit.\7311\7312We should be lazy today, try to reuse as much</div>\7313</summary>\7314<draft xmlns=\"http://purl.org/atom-blog/ns#\">false</draft>\7315</entry>\7316</feed>",7317 testNumber = 4,7318 testBoolean = false,7319 testDate = new Date(),7320 testObject = {test: 1234},7321 testArray = [1, 2, 3],...
typography-customize-preview.js
Source:typography-customize-preview.js
1/**2 * Update Typography Customizer settings live.3 *4 * @version 1.0.05 */6( function( $ ) {7 // Declare vars8 var api = wp.customize;9 /******** TYPOGRAPHY OPTIONS LOOP *********/10 api( "body_typography[font-family]", function( $swipe ) {11 $swipe.bind( function( pair ) {12 if ( pair ) {13 /** @type {string} */14 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-body-font-family" );15 var fontSize = pair.replace( " ", "%20" );16 fontSize = fontSize.replace( ",", "%2C" );17 /** @type {string} */18 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;19 if ( $( "#" + idfirst ).length ) {20 $( "#" + idfirst ).attr( "href", fontSize );21 } else {22 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );23 }24 }25 var $child = $( ".customizer-typography-body-font-family" );26 if ( pair ) {27 /** @type {string} */28 var img = '<style class="customizer-typography-body-font-family">body{font-family: ' + pair + ";}</style>";29 if ( $child.length ) {30 $child.replaceWith( img );31 } else {32 $( "head" ).append( img );33 }34 } else {35 $child.remove();36 }37 } );38 } ), api( "body_typography[font-weight]", function( $swipe ) {39 $swipe.bind( function( dataAndEvents ) {40 var $child = $( ".customizer-typography-body-font-weight" );41 if ( dataAndEvents ) {42 /** @type {string} */43 var img = '<style class="customizer-typography-body-font-weight">body{font-weight: ' + dataAndEvents + ";}</style>";44 if ( $child.length ) {45 $child.replaceWith( img );46 } else {47 $( "head" ).append( img );48 }49 } else {50 $child.remove();51 }52 } );53 } ), api( "body_typography[font-style]", function( $swipe ) {54 $swipe.bind( function( dataAndEvents ) {55 var $child = $( ".customizer-typography-body-font-style" );56 if ( dataAndEvents ) {57 /** @type {string} */58 var img = '<style class="customizer-typography-body-font-style">body{font-style: ' + dataAndEvents + ";}</style>";59 if ( $child.length ) {60 $child.replaceWith( img );61 } else {62 $( "head" ).append( img );63 }64 } else {65 $child.remove();66 }67 } );68 } ), api( "body_typography[font-size]", function( $swipe ) {69 $swipe.bind( function( dataAndEvents ) {70 var $child = $( ".customizer-typography-body-font-size" );71 if ( dataAndEvents ) {72 /** @type {string} */73 var img = '<style class="customizer-typography-body-font-size">body{font-size: ' + dataAndEvents + ";}</style>";74 if ( $child.length ) {75 $child.replaceWith( img );76 } else {77 $( "head" ).append( img );78 }79 } else {80 $child.remove();81 }82 } );83 } ), api( "body_tablet_typography[font-size]", function( $swipe ) {84 $swipe.bind( function( dataAndEvents ) {85 var $child = $( ".customizer-typography-body-tablet-font-size" );86 if ( dataAndEvents ) {87 /** @type {string} */88 var img = '<style class="customizer-typography-body-tablet-font-size">@media (max-width: 768px){body{font-size: ' + dataAndEvents + ";}}</style>";89 if ( $child.length ) {90 $child.replaceWith( img );91 } else {92 $( "head" ).append( img );93 }94 } else {95 $child.remove();96 }97 } );98 } ), api( "body_mobile_typography[font-size]", function( $swipe ) {99 $swipe.bind( function( dataAndEvents ) {100 var $child = $( ".customizer-typography-body-mobile-font-size" );101 if ( dataAndEvents ) {102 /** @type {string} */103 var img = '<style class="customizer-typography-body-mobile-font-size">@media (max-width: 480px){body{font-size: ' + dataAndEvents + ";}}</style>";104 if ( $child.length ) {105 $child.replaceWith( img );106 } else {107 $( "head" ).append( img );108 }109 } else {110 $child.remove();111 }112 } );113 } ), api( "body_typography[color]", function( $swipe ) {114 $swipe.bind( function( dataAndEvents ) {115 var $child = $( ".customizer-typography-body-color" );116 if ( dataAndEvents ) {117 /** @type {string} */118 var img = '<style class="customizer-typography-body-color">body{color: ' + dataAndEvents + ";}</style>";119 if ( $child.length ) {120 $child.replaceWith( img );121 } else {122 $( "head" ).append( img );123 }124 } else {125 $child.remove();126 }127 } );128 } ), api( "body_typography[line-height]", function( $swipe ) {129 $swipe.bind( function( dataAndEvents ) {130 var $child = $( ".customizer-typography-body-line-height" );131 if ( dataAndEvents ) {132 /** @type {string} */133 var img = '<style class="customizer-typography-body-line-height">body{line-height: ' + dataAndEvents + ";}</style>";134 if ( $child.length ) {135 $child.replaceWith( img );136 } else {137 $( "head" ).append( img );138 }139 } else {140 $child.remove();141 }142 } );143 } ), api( "body_tablet_typography[line-height]", function( $swipe ) {144 $swipe.bind( function( dataAndEvents ) {145 var $child = $( ".customizer-typography-body-tablet-line-height" );146 if ( dataAndEvents ) {147 /** @type {string} */148 var img = '<style class="customizer-typography-body-tablet-line-height">@media (max-width: 768px){body{line-height: ' + dataAndEvents + ";}}</style>";149 if ( $child.length ) {150 $child.replaceWith( img );151 } else {152 $( "head" ).append( img );153 }154 } else {155 $child.remove();156 }157 } );158 } ), api( "body_mobile_typography[line-height]", function( $swipe ) {159 $swipe.bind( function( dataAndEvents ) {160 var $child = $( ".customizer-typography-body-mobile-line-height" );161 if ( dataAndEvents ) {162 /** @type {string} */163 var img = '<style class="customizer-typography-body-mobile-line-height">@media (max-width: 480px){body{line-height: ' + dataAndEvents + ";}}</style>";164 if ( $child.length ) {165 $child.replaceWith( img );166 } else {167 $( "head" ).append( img );168 }169 } else {170 $child.remove();171 }172 } );173 } ), api( "body_typography[letter-spacing]", function( $swipe ) {174 $swipe.bind( function( dataAndEvents ) {175 var $child = $( ".customizer-typography-body-letter-spacing" );176 if ( dataAndEvents ) {177 /** @type {string} */178 var img = '<style class="customizer-typography-body-letter-spacing">body{letter-spacing: ' + dataAndEvents + "px;}</style>";179 if ( $child.length ) {180 $child.replaceWith( img );181 } else {182 $( "head" ).append( img );183 }184 } else {185 $child.remove();186 }187 } );188 } ), api( "body_tablet_typography[letter-spacing]", function( $swipe ) {189 $swipe.bind( function( dataAndEvents ) {190 var $child = $( ".customizer-typography-body-tablet-letter-spacing" );191 if ( dataAndEvents ) {192 /** @type {string} */193 var img = '<style class="customizer-typography-body-tablet-letter-spacing">@media (max-width: 768px){body{letter-spacing: ' + dataAndEvents + "px;}}</style>";194 if ( $child.length ) {195 $child.replaceWith( img );196 } else {197 $( "head" ).append( img );198 }199 } else {200 $child.remove();201 }202 } );203 } ), api( "body_mobile_typography[letter-spacing]", function( $swipe ) {204 $swipe.bind( function( dataAndEvents ) {205 var $child = $( ".customizer-typography-body-mobile-letter-spacing" );206 if ( dataAndEvents ) {207 /** @type {string} */208 var img = '<style class="customizer-typography-body-mobile-letter-spacing">@media (max-width: 480px){body{letter-spacing: ' + dataAndEvents + "px;}}</style>";209 if ( $child.length ) {210 $child.replaceWith( img );211 } else {212 $( "head" ).append( img );213 }214 } else {215 $child.remove();216 }217 } );218 } ), api( "body_typography[text-transform]", function( $swipe ) {219 $swipe.bind( function( dataAndEvents ) {220 var $child = $( ".customizer-typography-body-text-transform" );221 if ( dataAndEvents ) {222 /** @type {string} */223 var img = '<style class="customizer-typography-body-text-transform">body{text-transform: ' + dataAndEvents + ";}</style>";224 if ( $child.length ) {225 $child.replaceWith( img );226 } else {227 $( "head" ).append( img );228 }229 } else {230 $child.remove();231 }232 } );233 } ), api( "heading_h1_typography[font-family]", function( $swipe ) {234 $swipe.bind( function( pair ) {235 if ( pair ) {236 /** @type {string} */237 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-heading_h1-font-family" );238 var fontSize = pair.replace( " ", "%20" );239 fontSize = fontSize.replace( ",", "%2C" );240 /** @type {string} */241 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;242 if ( $( "#" + idfirst ).length ) {243 $( "#" + idfirst ).attr( "href", fontSize );244 } else {245 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );246 }247 }248 var $child = $( ".customizer-typography-heading_h1-font-family" );249 if ( pair ) {250 /** @type {string} */251 var img = '<style class="customizer-typography-heading_h1-font-family">h1{font-family: ' + pair + ";}</style>";252 if ( $child.length ) {253 $child.replaceWith( img );254 } else {255 $( "head" ).append( img );256 }257 } else {258 $child.remove();259 }260 } );261 } ), api( "heading_h1_typography[font-weight]", function( $swipe ) {262 $swipe.bind( function( dataAndEvents ) {263 var $child = $( ".customizer-typography-heading_h1-font-weight" );264 if ( dataAndEvents ) {265 /** @type {string} */266 var img = '<style class="customizer-typography-heading_h1-font-weight">h1{font-weight: ' + dataAndEvents + ";}</style>";267 if ( $child.length ) {268 $child.replaceWith( img );269 } else {270 $( "head" ).append( img );271 }272 } else {273 $child.remove();274 }275 } );276 } ), api( "heading_h1_typography[font-style]", function( $swipe ) {277 $swipe.bind( function( dataAndEvents ) {278 var $child = $( ".customizer-typography-heading_h1-font-style" );279 if ( dataAndEvents ) {280 /** @type {string} */281 var img = '<style class="customizer-typography-heading_h1-font-style">h1{font-style: ' + dataAndEvents + ";}</style>";282 if ( $child.length ) {283 $child.replaceWith( img );284 } else {285 $( "head" ).append( img );286 }287 } else {288 $child.remove();289 }290 } );291 } ), api( "heading_h1_typography[font-size]", function( $swipe ) {292 $swipe.bind( function( dataAndEvents ) {293 var $child = $( ".customizer-typography-heading_h1-font-size" );294 if ( dataAndEvents ) {295 /** @type {string} */296 var img = '<style class="customizer-typography-heading_h1-font-size">h1{font-size: ' + dataAndEvents + ";}</style>";297 if ( $child.length ) {298 $child.replaceWith( img );299 } else {300 $( "head" ).append( img );301 }302 } else {303 $child.remove();304 }305 } );306 } ), api( "heading_h1_tablet_typography[font-size]", function( $swipe ) {307 $swipe.bind( function( dataAndEvents ) {308 var $child = $( ".customizer-typography-heading_h1-tablet-font-size" );309 if ( dataAndEvents ) {310 /** @type {string} */311 var img = '<style class="customizer-typography-heading_h1-tablet-font-size">@media (max-width: 768px){h1{font-size: ' + dataAndEvents + ";}}</style>";312 if ( $child.length ) {313 $child.replaceWith( img );314 } else {315 $( "head" ).append( img );316 }317 } else {318 $child.remove();319 }320 } );321 } ), api( "heading_h1_mobile_typography[font-size]", function( $swipe ) {322 $swipe.bind( function( dataAndEvents ) {323 var $child = $( ".customizer-typography-heading_h1-mobile-font-size" );324 if ( dataAndEvents ) {325 /** @type {string} */326 var img = '<style class="customizer-typography-heading_h1-mobile-font-size">@media (max-width: 480px){h1{font-size: ' + dataAndEvents + ";}}</style>";327 if ( $child.length ) {328 $child.replaceWith( img );329 } else {330 $( "head" ).append( img );331 }332 } else {333 $child.remove();334 }335 } );336 } ), api( "heading_h1_typography[color]", function( $swipe ) {337 $swipe.bind( function( dataAndEvents ) {338 var $child = $( ".customizer-typography-heading_h1-color" );339 if ( dataAndEvents ) {340 /** @type {string} */341 var img = '<style class="customizer-typography-heading_h1-color">h1{color: ' + dataAndEvents + ";}</style>";342 if ( $child.length ) {343 $child.replaceWith( img );344 } else {345 $( "head" ).append( img );346 }347 } else {348 $child.remove();349 }350 } );351 } ), api( "heading_h1_typography[line-height]", function( $swipe ) {352 $swipe.bind( function( dataAndEvents ) {353 var $child = $( ".customizer-typography-heading_h1-line-height" );354 if ( dataAndEvents ) {355 /** @type {string} */356 var img = '<style class="customizer-typography-heading_h1-line-height">h1{line-height: ' + dataAndEvents + ";}</style>";357 if ( $child.length ) {358 $child.replaceWith( img );359 } else {360 $( "head" ).append( img );361 }362 } else {363 $child.remove();364 }365 } );366 } ), api( "heading_h1_tablet_typography[line-height]", function( $swipe ) {367 $swipe.bind( function( dataAndEvents ) {368 var $child = $( ".customizer-typography-heading_h1-tablet-line-height" );369 if ( dataAndEvents ) {370 /** @type {string} */371 var img = '<style class="customizer-typography-heading_h1-tablet-line-height">@media (max-width: 768px){h1{line-height: ' + dataAndEvents + ";}}</style>";372 if ( $child.length ) {373 $child.replaceWith( img );374 } else {375 $( "head" ).append( img );376 }377 } else {378 $child.remove();379 }380 } );381 } ), api( "heading_h1_mobile_typography[line-height]", function( $swipe ) {382 $swipe.bind( function( dataAndEvents ) {383 var $child = $( ".customizer-typography-heading_h1-mobile-line-height" );384 if ( dataAndEvents ) {385 /** @type {string} */386 var img = '<style class="customizer-typography-heading_h1-mobile-line-height">@media (max-width: 480px){h1{line-height: ' + dataAndEvents + ";}}</style>";387 if ( $child.length ) {388 $child.replaceWith( img );389 } else {390 $( "head" ).append( img );391 }392 } else {393 $child.remove();394 }395 } );396 } ), api( "heading_h1_typography[letter-spacing]", function( $swipe ) {397 $swipe.bind( function( dataAndEvents ) {398 var $child = $( ".customizer-typography-heading_h1-letter-spacing" );399 if ( dataAndEvents ) {400 /** @type {string} */401 var img = '<style class="customizer-typography-heading_h1-letter-spacing">h1{letter-spacing: ' + dataAndEvents + "px;}</style>";402 if ( $child.length ) {403 $child.replaceWith( img );404 } else {405 $( "head" ).append( img );406 }407 } else {408 $child.remove();409 }410 } );411 } ), api( "heading_h1_tablet_typography[letter-spacing]", function( $swipe ) {412 $swipe.bind( function( dataAndEvents ) {413 var $child = $( ".customizer-typography-heading_h1-tablet-letter-spacing" );414 if ( dataAndEvents ) {415 /** @type {string} */416 var img = '<style class="customizer-typography-heading_h1-tablet-letter-spacing">@media (max-width: 768px){h1{letter-spacing: ' + dataAndEvents + "px;}}</style>";417 if ( $child.length ) {418 $child.replaceWith( img );419 } else {420 $( "head" ).append( img );421 }422 } else {423 $child.remove();424 }425 } );426 } ), api( "heading_h1_mobile_typography[letter-spacing]", function( $swipe ) {427 $swipe.bind( function( dataAndEvents ) {428 var $child = $( ".customizer-typography-heading_h1-mobile-letter-spacing" );429 if ( dataAndEvents ) {430 /** @type {string} */431 var img = '<style class="customizer-typography-heading_h1-mobile-letter-spacing">@media (max-width: 480px){h1{letter-spacing: ' + dataAndEvents + "px;}}</style>";432 if ( $child.length ) {433 $child.replaceWith( img );434 } else {435 $( "head" ).append( img );436 }437 } else {438 $child.remove();439 }440 } );441 } ), api( "heading_h1_typography[text-transform]", function( $swipe ) {442 $swipe.bind( function( dataAndEvents ) {443 var $child = $( ".customizer-typography-heading_h1-text-transform" );444 if ( dataAndEvents ) {445 /** @type {string} */446 var img = '<style class="customizer-typography-heading_h1-text-transform">h1{text-transform: ' + dataAndEvents + ";}</style>";447 if ( $child.length ) {448 $child.replaceWith( img );449 } else {450 $( "head" ).append( img );451 }452 } else {453 $child.remove();454 }455 } );456 } ), api( "heading_h2_typography[font-family]", function( $swipe ) {457 $swipe.bind( function( pair ) {458 if ( pair ) {459 /** @type {string} */460 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-heading_h2-font-family" );461 var fontSize = pair.replace( " ", "%20" );462 fontSize = fontSize.replace( ",", "%2C" );463 /** @type {string} */464 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;465 if ( $( "#" + idfirst ).length ) {466 $( "#" + idfirst ).attr( "href", fontSize );467 } else {468 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );469 }470 }471 var $child = $( ".customizer-typography-heading_h2-font-family" );472 if ( pair ) {473 /** @type {string} */474 var img = '<style class="customizer-typography-heading_h2-font-family">h2{font-family: ' + pair + ";}</style>";475 if ( $child.length ) {476 $child.replaceWith( img );477 } else {478 $( "head" ).append( img );479 }480 } else {481 $child.remove();482 }483 } );484 } ), api( "heading_h2_typography[font-weight]", function( $swipe ) {485 $swipe.bind( function( dataAndEvents ) {486 var $child = $( ".customizer-typography-heading_h2-font-weight" );487 if ( dataAndEvents ) {488 /** @type {string} */489 var img = '<style class="customizer-typography-heading_h2-font-weight">h2{font-weight: ' + dataAndEvents + ";}</style>";490 if ( $child.length ) {491 $child.replaceWith( img );492 } else {493 $( "head" ).append( img );494 }495 } else {496 $child.remove();497 }498 } );499 } ), api( "heading_h2_typography[font-style]", function( $swipe ) {500 $swipe.bind( function( dataAndEvents ) {501 var $child = $( ".customizer-typography-heading_h2-font-style" );502 if ( dataAndEvents ) {503 /** @type {string} */504 var img = '<style class="customizer-typography-heading_h2-font-style">h2{font-style: ' + dataAndEvents + ";}</style>";505 if ( $child.length ) {506 $child.replaceWith( img );507 } else {508 $( "head" ).append( img );509 }510 } else {511 $child.remove();512 }513 } );514 } ), api( "heading_h2_typography[font-size]", function( $swipe ) {515 $swipe.bind( function( dataAndEvents ) {516 var $child = $( ".customizer-typography-heading_h2-font-size" );517 if ( dataAndEvents ) {518 /** @type {string} */519 var img = '<style class="customizer-typography-heading_h2-font-size">h2{font-size: ' + dataAndEvents + ";}</style>";520 if ( $child.length ) {521 $child.replaceWith( img );522 } else {523 $( "head" ).append( img );524 }525 } else {526 $child.remove();527 }528 } );529 } ), api( "heading_h2_tablet_typography[font-size]", function( $swipe ) {530 $swipe.bind( function( dataAndEvents ) {531 var $child = $( ".customizer-typography-heading_h2-tablet-font-size" );532 if ( dataAndEvents ) {533 /** @type {string} */534 var img = '<style class="customizer-typography-heading_h2-tablet-font-size">@media (max-width: 768px){h2{font-size: ' + dataAndEvents + ";}}</style>";535 if ( $child.length ) {536 $child.replaceWith( img );537 } else {538 $( "head" ).append( img );539 }540 } else {541 $child.remove();542 }543 } );544 } ), api( "heading_h2_mobile_typography[font-size]", function( $swipe ) {545 $swipe.bind( function( dataAndEvents ) {546 var $child = $( ".customizer-typography-heading_h2-mobile-font-size" );547 if ( dataAndEvents ) {548 /** @type {string} */549 var img = '<style class="customizer-typography-heading_h2-mobile-font-size">@media (max-width: 480px){h2{font-size: ' + dataAndEvents + ";}}</style>";550 if ( $child.length ) {551 $child.replaceWith( img );552 } else {553 $( "head" ).append( img );554 }555 } else {556 $child.remove();557 }558 } );559 } ), api( "heading_h2_typography[color]", function( $swipe ) {560 $swipe.bind( function( dataAndEvents ) {561 var $child = $( ".customizer-typography-heading_h2-color" );562 if ( dataAndEvents ) {563 /** @type {string} */564 var img = '<style class="customizer-typography-heading_h2-color">h2{color: ' + dataAndEvents + ";}</style>";565 if ( $child.length ) {566 $child.replaceWith( img );567 } else {568 $( "head" ).append( img );569 }570 } else {571 $child.remove();572 }573 } );574 } ), api( "heading_h2_typography[line-height]", function( $swipe ) {575 $swipe.bind( function( dataAndEvents ) {576 var $child = $( ".customizer-typography-heading_h2-line-height" );577 if ( dataAndEvents ) {578 /** @type {string} */579 var img = '<style class="customizer-typography-heading_h2-line-height">h2{line-height: ' + dataAndEvents + ";}</style>";580 if ( $child.length ) {581 $child.replaceWith( img );582 } else {583 $( "head" ).append( img );584 }585 } else {586 $child.remove();587 }588 } );589 } ), api( "heading_h2_tablet_typography[line-height]", function( $swipe ) {590 $swipe.bind( function( dataAndEvents ) {591 var $child = $( ".customizer-typography-heading_h2-tablet-line-height" );592 if ( dataAndEvents ) {593 /** @type {string} */594 var img = '<style class="customizer-typography-heading_h2-tablet-line-height">@media (max-width: 768px){h2{line-height: ' + dataAndEvents + ";}}</style>";595 if ( $child.length ) {596 $child.replaceWith( img );597 } else {598 $( "head" ).append( img );599 }600 } else {601 $child.remove();602 }603 } );604 } ), api( "heading_h2_mobile_typography[line-height]", function( $swipe ) {605 $swipe.bind( function( dataAndEvents ) {606 var $child = $( ".customizer-typography-heading_h2-mobile-line-height" );607 if ( dataAndEvents ) {608 /** @type {string} */609 var img = '<style class="customizer-typography-heading_h2-mobile-line-height">@media (max-width: 480px){h2{line-height: ' + dataAndEvents + ";}}</style>";610 if ( $child.length ) {611 $child.replaceWith( img );612 } else {613 $( "head" ).append( img );614 }615 } else {616 $child.remove();617 }618 } );619 } ), api( "heading_h2_typography[letter-spacing]", function( $swipe ) {620 $swipe.bind( function( dataAndEvents ) {621 var $child = $( ".customizer-typography-heading_h2-letter-spacing" );622 if ( dataAndEvents ) {623 /** @type {string} */624 var img = '<style class="customizer-typography-heading_h2-letter-spacing">h2{letter-spacing: ' + dataAndEvents + "px;}</style>";625 if ( $child.length ) {626 $child.replaceWith( img );627 } else {628 $( "head" ).append( img );629 }630 } else {631 $child.remove();632 }633 } );634 } ), api( "heading_h2_tablet_typography[letter-spacing]", function( $swipe ) {635 $swipe.bind( function( dataAndEvents ) {636 var $child = $( ".customizer-typography-heading_h2-tablet-letter-spacing" );637 if ( dataAndEvents ) {638 /** @type {string} */639 var img = '<style class="customizer-typography-heading_h2-tablet-letter-spacing">@media (max-width: 768px){h2{letter-spacing: ' + dataAndEvents + "px;}}</style>";640 if ( $child.length ) {641 $child.replaceWith( img );642 } else {643 $( "head" ).append( img );644 }645 } else {646 $child.remove();647 }648 } );649 } ), api( "heading_h2_mobile_typography[letter-spacing]", function( $swipe ) {650 $swipe.bind( function( dataAndEvents ) {651 var $child = $( ".customizer-typography-heading_h2-mobile-letter-spacing" );652 if ( dataAndEvents ) {653 /** @type {string} */654 var img = '<style class="customizer-typography-heading_h2-mobile-letter-spacing">@media (max-width: 480px){h2{letter-spacing: ' + dataAndEvents + "px;}}</style>";655 if ( $child.length ) {656 $child.replaceWith( img );657 } else {658 $( "head" ).append( img );659 }660 } else {661 $child.remove();662 }663 } );664 } ), api( "heading_h2_typography[text-transform]", function( $swipe ) {665 $swipe.bind( function( dataAndEvents ) {666 var $child = $( ".customizer-typography-heading_h2-text-transform" );667 if ( dataAndEvents ) {668 /** @type {string} */669 var img = '<style class="customizer-typography-heading_h2-text-transform">h2{text-transform: ' + dataAndEvents + ";}</style>";670 if ( $child.length ) {671 $child.replaceWith( img );672 } else {673 $( "head" ).append( img );674 }675 } else {676 $child.remove();677 }678 } );679 } ), api( "heading_h3_typography[font-family]", function( $swipe ) {680 $swipe.bind( function( pair ) {681 if ( pair ) {682 /** @type {string} */683 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-heading_h3-font-family" );684 var fontSize = pair.replace( " ", "%20" );685 fontSize = fontSize.replace( ",", "%2C" );686 /** @type {string} */687 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;688 if ( $( "#" + idfirst ).length ) {689 $( "#" + idfirst ).attr( "href", fontSize );690 } else {691 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );692 }693 }694 var $child = $( ".customizer-typography-heading_h3-font-family" );695 if ( pair ) {696 /** @type {string} */697 var img = '<style class="customizer-typography-heading_h3-font-family">h3{font-family: ' + pair + ";}</style>";698 if ( $child.length ) {699 $child.replaceWith( img );700 } else {701 $( "head" ).append( img );702 }703 } else {704 $child.remove();705 }706 } );707 } ), api( "heading_h3_typography[font-weight]", function( $swipe ) {708 $swipe.bind( function( dataAndEvents ) {709 var $child = $( ".customizer-typography-heading_h3-font-weight" );710 if ( dataAndEvents ) {711 /** @type {string} */712 var img = '<style class="customizer-typography-heading_h3-font-weight">h3{font-weight: ' + dataAndEvents + ";}</style>";713 if ( $child.length ) {714 $child.replaceWith( img );715 } else {716 $( "head" ).append( img );717 }718 } else {719 $child.remove();720 }721 } );722 } ), api( "heading_h3_typography[font-style]", function( $swipe ) {723 $swipe.bind( function( dataAndEvents ) {724 var $child = $( ".customizer-typography-heading_h3-font-style" );725 if ( dataAndEvents ) {726 /** @type {string} */727 var img = '<style class="customizer-typography-heading_h3-font-style">h3{font-style: ' + dataAndEvents + ";}</style>";728 if ( $child.length ) {729 $child.replaceWith( img );730 } else {731 $( "head" ).append( img );732 }733 } else {734 $child.remove();735 }736 } );737 } ), api( "heading_h3_typography[font-size]", function( $swipe ) {738 $swipe.bind( function( dataAndEvents ) {739 var $child = $( ".customizer-typography-heading_h3-font-size" );740 if ( dataAndEvents ) {741 /** @type {string} */742 var img = '<style class="customizer-typography-heading_h3-font-size">h3{font-size: ' + dataAndEvents + ";}</style>";743 if ( $child.length ) {744 $child.replaceWith( img );745 } else {746 $( "head" ).append( img );747 }748 } else {749 $child.remove();750 }751 } );752 } ), api( "heading_h3_tablet_typography[font-size]", function( $swipe ) {753 $swipe.bind( function( dataAndEvents ) {754 var $child = $( ".customizer-typography-heading_h3-tablet-font-size" );755 if ( dataAndEvents ) {756 /** @type {string} */757 var img = '<style class="customizer-typography-heading_h3-tablet-font-size">@media (max-width: 768px){h3{font-size: ' + dataAndEvents + ";}}</style>";758 if ( $child.length ) {759 $child.replaceWith( img );760 } else {761 $( "head" ).append( img );762 }763 } else {764 $child.remove();765 }766 } );767 } ), api( "heading_h3_mobile_typography[font-size]", function( $swipe ) {768 $swipe.bind( function( dataAndEvents ) {769 var $child = $( ".customizer-typography-heading_h3-mobile-font-size" );770 if ( dataAndEvents ) {771 /** @type {string} */772 var img = '<style class="customizer-typography-heading_h3-mobile-font-size">@media (max-width: 480px){h3{font-size: ' + dataAndEvents + ";}}</style>";773 if ( $child.length ) {774 $child.replaceWith( img );775 } else {776 $( "head" ).append( img );777 }778 } else {779 $child.remove();780 }781 } );782 } ), api( "heading_h3_typography[color]", function( $swipe ) {783 $swipe.bind( function( dataAndEvents ) {784 var $child = $( ".customizer-typography-heading_h3-color" );785 if ( dataAndEvents ) {786 /** @type {string} */787 var img = '<style class="customizer-typography-heading_h3-color">h3{color: ' + dataAndEvents + ";}</style>";788 if ( $child.length ) {789 $child.replaceWith( img );790 } else {791 $( "head" ).append( img );792 }793 } else {794 $child.remove();795 }796 } );797 } ), api( "heading_h3_typography[line-height]", function( $swipe ) {798 $swipe.bind( function( dataAndEvents ) {799 var $child = $( ".customizer-typography-heading_h3-line-height" );800 if ( dataAndEvents ) {801 /** @type {string} */802 var img = '<style class="customizer-typography-heading_h3-line-height">h3{line-height: ' + dataAndEvents + ";}</style>";803 if ( $child.length ) {804 $child.replaceWith( img );805 } else {806 $( "head" ).append( img );807 }808 } else {809 $child.remove();810 }811 } );812 } ), api( "heading_h3_tablet_typography[line-height]", function( $swipe ) {813 $swipe.bind( function( dataAndEvents ) {814 var $child = $( ".customizer-typography-heading_h3-tablet-line-height" );815 if ( dataAndEvents ) {816 /** @type {string} */817 var img = '<style class="customizer-typography-heading_h3-tablet-line-height">@media (max-width: 768px){h3{line-height: ' + dataAndEvents + ";}}</style>";818 if ( $child.length ) {819 $child.replaceWith( img );820 } else {821 $( "head" ).append( img );822 }823 } else {824 $child.remove();825 }826 } );827 } ), api( "heading_h3_mobile_typography[line-height]", function( $swipe ) {828 $swipe.bind( function( dataAndEvents ) {829 var $child = $( ".customizer-typography-heading_h3-mobile-line-height" );830 if ( dataAndEvents ) {831 /** @type {string} */832 var img = '<style class="customizer-typography-heading_h3-mobile-line-height">@media (max-width: 480px){h3{line-height: ' + dataAndEvents + ";}}</style>";833 if ( $child.length ) {834 $child.replaceWith( img );835 } else {836 $( "head" ).append( img );837 }838 } else {839 $child.remove();840 }841 } );842 } ), api( "heading_h3_typography[letter-spacing]", function( $swipe ) {843 $swipe.bind( function( dataAndEvents ) {844 var $child = $( ".customizer-typography-heading_h3-letter-spacing" );845 if ( dataAndEvents ) {846 /** @type {string} */847 var img = '<style class="customizer-typography-heading_h3-letter-spacing">h3{letter-spacing: ' + dataAndEvents + "px;}</style>";848 if ( $child.length ) {849 $child.replaceWith( img );850 } else {851 $( "head" ).append( img );852 }853 } else {854 $child.remove();855 }856 } );857 } ), api( "heading_h3_tablet_typography[letter-spacing]", function( $swipe ) {858 $swipe.bind( function( dataAndEvents ) {859 var $child = $( ".customizer-typography-heading_h3-tablet-letter-spacing" );860 if ( dataAndEvents ) {861 /** @type {string} */862 var img = '<style class="customizer-typography-heading_h3-tablet-letter-spacing">@media (max-width: 768px){h3{letter-spacing: ' + dataAndEvents + "px;}}</style>";863 if ( $child.length ) {864 $child.replaceWith( img );865 } else {866 $( "head" ).append( img );867 }868 } else {869 $child.remove();870 }871 } );872 } ), api( "heading_h3_mobile_typography[letter-spacing]", function( $swipe ) {873 $swipe.bind( function( dataAndEvents ) {874 var $child = $( ".customizer-typography-heading_h3-mobile-letter-spacing" );875 if ( dataAndEvents ) {876 /** @type {string} */877 var img = '<style class="customizer-typography-heading_h3-mobile-letter-spacing">@media (max-width: 480px){h3{letter-spacing: ' + dataAndEvents + "px;}}</style>";878 if ( $child.length ) {879 $child.replaceWith( img );880 } else {881 $( "head" ).append( img );882 }883 } else {884 $child.remove();885 }886 } );887 } ), api( "heading_h3_typography[text-transform]", function( $swipe ) {888 $swipe.bind( function( dataAndEvents ) {889 var $child = $( ".customizer-typography-heading_h3-text-transform" );890 if ( dataAndEvents ) {891 /** @type {string} */892 var img = '<style class="customizer-typography-heading_h3-text-transform">h3{text-transform: ' + dataAndEvents + ";}</style>";893 if ( $child.length ) {894 $child.replaceWith( img );895 } else {896 $( "head" ).append( img );897 }898 } else {899 $child.remove();900 }901 } );902 } ), api( "heading_h4_typography[font-family]", function( $swipe ) {903 $swipe.bind( function( pair ) {904 if ( pair ) {905 /** @type {string} */906 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-heading_h4-font-family" );907 var fontSize = pair.replace( " ", "%20" );908 fontSize = fontSize.replace( ",", "%2C" );909 /** @type {string} */910 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;911 if ( $( "#" + idfirst ).length ) {912 $( "#" + idfirst ).attr( "href", fontSize );913 } else {914 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );915 }916 }917 var $child = $( ".customizer-typography-heading_h4-font-family" );918 if ( pair ) {919 /** @type {string} */920 var img = '<style class="customizer-typography-heading_h4-font-family">h4{font-family: ' + pair + ";}</style>";921 if ( $child.length ) {922 $child.replaceWith( img );923 } else {924 $( "head" ).append( img );925 }926 } else {927 $child.remove();928 }929 } );930 } ), api( "heading_h4_typography[font-weight]", function( $swipe ) {931 $swipe.bind( function( dataAndEvents ) {932 var $child = $( ".customizer-typography-heading_h4-font-weight" );933 if ( dataAndEvents ) {934 /** @type {string} */935 var img = '<style class="customizer-typography-heading_h4-font-weight">h4{font-weight: ' + dataAndEvents + ";}</style>";936 if ( $child.length ) {937 $child.replaceWith( img );938 } else {939 $( "head" ).append( img );940 }941 } else {942 $child.remove();943 }944 } );945 } ), api( "heading_h4_typography[font-style]", function( $swipe ) {946 $swipe.bind( function( dataAndEvents ) {947 var $child = $( ".customizer-typography-heading_h4-font-style" );948 if ( dataAndEvents ) {949 /** @type {string} */950 var img = '<style class="customizer-typography-heading_h4-font-style">h4{font-style: ' + dataAndEvents + ";}</style>";951 if ( $child.length ) {952 $child.replaceWith( img );953 } else {954 $( "head" ).append( img );955 }956 } else {957 $child.remove();958 }959 } );960 } ), api( "heading_h4_typography[font-size]", function( $swipe ) {961 $swipe.bind( function( dataAndEvents ) {962 var $child = $( ".customizer-typography-heading_h4-font-size" );963 if ( dataAndEvents ) {964 /** @type {string} */965 var img = '<style class="customizer-typography-heading_h4-font-size">h4{font-size: ' + dataAndEvents + ";}</style>";966 if ( $child.length ) {967 $child.replaceWith( img );968 } else {969 $( "head" ).append( img );970 }971 } else {972 $child.remove();973 }974 } );975 } ), api( "heading_h4_tablet_typography[font-size]", function( $swipe ) {976 $swipe.bind( function( dataAndEvents ) {977 var $child = $( ".customizer-typography-heading_h4-tablet-font-size" );978 if ( dataAndEvents ) {979 /** @type {string} */980 var img = '<style class="customizer-typography-heading_h4-tablet-font-size">@media (max-width: 768px){h4{font-size: ' + dataAndEvents + ";}}</style>";981 if ( $child.length ) {982 $child.replaceWith( img );983 } else {984 $( "head" ).append( img );985 }986 } else {987 $child.remove();988 }989 } );990 } ), api( "heading_h4_mobile_typography[font-size]", function( $swipe ) {991 $swipe.bind( function( dataAndEvents ) {992 var $child = $( ".customizer-typography-heading_h4-mobile-font-size" );993 if ( dataAndEvents ) {994 /** @type {string} */995 var img = '<style class="customizer-typography-heading_h4-mobile-font-size">@media (max-width: 480px){h4{font-size: ' + dataAndEvents + ";}}</style>";996 if ( $child.length ) {997 $child.replaceWith( img );998 } else {999 $( "head" ).append( img );1000 }1001 } else {1002 $child.remove();1003 }1004 } );1005 } ), api( "heading_h4_typography[color]", function( $swipe ) {1006 $swipe.bind( function( dataAndEvents ) {1007 var $child = $( ".customizer-typography-heading_h4-color" );1008 if ( dataAndEvents ) {1009 /** @type {string} */1010 var img = '<style class="customizer-typography-heading_h4-color">h4{color: ' + dataAndEvents + ";}</style>";1011 if ( $child.length ) {1012 $child.replaceWith( img );1013 } else {1014 $( "head" ).append( img );1015 }1016 } else {1017 $child.remove();1018 }1019 } );1020 } ), api( "heading_h4_typography[line-height]", function( $swipe ) {1021 $swipe.bind( function( dataAndEvents ) {1022 var $child = $( ".customizer-typography-heading_h4-line-height" );1023 if ( dataAndEvents ) {1024 /** @type {string} */1025 var img = '<style class="customizer-typography-heading_h4-line-height">h4{line-height: ' + dataAndEvents + ";}</style>";1026 if ( $child.length ) {1027 $child.replaceWith( img );1028 } else {1029 $( "head" ).append( img );1030 }1031 } else {1032 $child.remove();1033 }1034 } );1035 } ), api( "heading_h4_tablet_typography[line-height]", function( $swipe ) {1036 $swipe.bind( function( dataAndEvents ) {1037 var $child = $( ".customizer-typography-heading_h4-tablet-line-height" );1038 if ( dataAndEvents ) {1039 /** @type {string} */1040 var img = '<style class="customizer-typography-heading_h4-tablet-line-height">@media (max-width: 768px){h4{line-height: ' + dataAndEvents + ";}}</style>";1041 if ( $child.length ) {1042 $child.replaceWith( img );1043 } else {1044 $( "head" ).append( img );1045 }1046 } else {1047 $child.remove();1048 }1049 } );1050 } ), api( "heading_h4_mobile_typography[line-height]", function( $swipe ) {1051 $swipe.bind( function( dataAndEvents ) {1052 var $child = $( ".customizer-typography-heading_h4-mobile-line-height" );1053 if ( dataAndEvents ) {1054 /** @type {string} */1055 var img = '<style class="customizer-typography-heading_h4-mobile-line-height">@media (max-width: 480px){h4{line-height: ' + dataAndEvents + ";}}</style>";1056 if ( $child.length ) {1057 $child.replaceWith( img );1058 } else {1059 $( "head" ).append( img );1060 }1061 } else {1062 $child.remove();1063 }1064 } );1065 } ), api( "heading_h4_typography[letter-spacing]", function( $swipe ) {1066 $swipe.bind( function( dataAndEvents ) {1067 var $child = $( ".customizer-typography-heading_h4-letter-spacing" );1068 if ( dataAndEvents ) {1069 /** @type {string} */1070 var img = '<style class="customizer-typography-heading_h4-letter-spacing">h4{letter-spacing: ' + dataAndEvents + "px;}</style>";1071 if ( $child.length ) {1072 $child.replaceWith( img );1073 } else {1074 $( "head" ).append( img );1075 }1076 } else {1077 $child.remove();1078 }1079 } );1080 } ), api( "heading_h4_tablet_typography[letter-spacing]", function( $swipe ) {1081 $swipe.bind( function( dataAndEvents ) {1082 var $child = $( ".customizer-typography-heading_h4-tablet-letter-spacing" );1083 if ( dataAndEvents ) {1084 /** @type {string} */1085 var img = '<style class="customizer-typography-heading_h4-tablet-letter-spacing">@media (max-width: 768px){h4{letter-spacing: ' + dataAndEvents + "px;}}</style>";1086 if ( $child.length ) {1087 $child.replaceWith( img );1088 } else {1089 $( "head" ).append( img );1090 }1091 } else {1092 $child.remove();1093 }1094 } );1095 } ), api( "heading_h4_mobile_typography[letter-spacing]", function( $swipe ) {1096 $swipe.bind( function( dataAndEvents ) {1097 var $child = $( ".customizer-typography-heading_h4-mobile-letter-spacing" );1098 if ( dataAndEvents ) {1099 /** @type {string} */1100 var img = '<style class="customizer-typography-heading_h4-mobile-letter-spacing">@media (max-width: 480px){h4{letter-spacing: ' + dataAndEvents + "px;}}</style>";1101 if ( $child.length ) {1102 $child.replaceWith( img );1103 } else {1104 $( "head" ).append( img );1105 }1106 } else {1107 $child.remove();1108 }1109 } );1110 } ), api( "heading_h4_typography[text-transform]", function( $swipe ) {1111 $swipe.bind( function( dataAndEvents ) {1112 var $child = $( ".customizer-typography-heading_h4-text-transform" );1113 if ( dataAndEvents ) {1114 /** @type {string} */1115 var img = '<style class="customizer-typography-heading_h4-text-transform">h4{text-transform: ' + dataAndEvents + ";}</style>";1116 if ( $child.length ) {1117 $child.replaceWith( img );1118 } else {1119 $( "head" ).append( img );1120 }1121 } else {1122 $child.remove();1123 }1124 } );1125 } ), api( "headings_typography[font-family]", function( $swipe ) {1126 $swipe.bind( function( pair ) {1127 if ( pair ) {1128 /** @type {string} */1129 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-headings-font-family" );1130 var fontSize = pair.replace( " ", "%20" );1131 fontSize = fontSize.replace( ",", "%2C" );1132 /** @type {string} */1133 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;1134 if ( $( "#" + idfirst ).length ) {1135 $( "#" + idfirst ).attr( "href", fontSize );1136 } else {1137 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );1138 }1139 }1140 var $child = $( ".customizer-typography-headings-font-family" );1141 if ( pair ) {1142 /** @type {string} */1143 var img = '<style class="customizer-typography-headings-font-family">h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{font-family: ' + pair + ";}</style>";1144 if ( $child.length ) {1145 $child.replaceWith( img );1146 } else {1147 $( "head" ).append( img );1148 }1149 } else {1150 $child.remove();1151 }1152 } );1153 } ), api( "headings_typography[font-weight]", function( $swipe ) {1154 $swipe.bind( function( dataAndEvents ) {1155 var $child = $( ".customizer-typography-headings-font-weight" );1156 if ( dataAndEvents ) {1157 /** @type {string} */1158 var img = '<style class="customizer-typography-headings-font-weight">h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{font-weight: ' + dataAndEvents + ";}</style>";1159 if ( $child.length ) {1160 $child.replaceWith( img );1161 } else {1162 $( "head" ).append( img );1163 }1164 } else {1165 $child.remove();1166 }1167 } );1168 } ), api( "headings_typography[font-style]", function( $swipe ) {1169 $swipe.bind( function( dataAndEvents ) {1170 var $child = $( ".customizer-typography-headings-font-style" );1171 if ( dataAndEvents ) {1172 /** @type {string} */1173 var img = '<style class="customizer-typography-headings-font-style">h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{font-style: ' + dataAndEvents + ";}</style>";1174 if ( $child.length ) {1175 $child.replaceWith( img );1176 } else {1177 $( "head" ).append( img );1178 }1179 } else {1180 $child.remove();1181 }1182 } );1183 } ), api( "headings_typography[font-size]", function( $swipe ) {1184 $swipe.bind( function( dataAndEvents ) {1185 var $child = $( ".customizer-typography-headings-font-size" );1186 if ( dataAndEvents ) {1187 /** @type {string} */1188 var img = '<style class="customizer-typography-headings-font-size">h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{font-size: ' + dataAndEvents + ";}</style>";1189 if ( $child.length ) {1190 $child.replaceWith( img );1191 } else {1192 $( "head" ).append( img );1193 }1194 } else {1195 $child.remove();1196 }1197 } );1198 } ), api( "headings_tablet_typography[font-size]", function( $swipe ) {1199 $swipe.bind( function( dataAndEvents ) {1200 var $child = $( ".customizer-typography-headings-tablet-font-size" );1201 if ( dataAndEvents ) {1202 /** @type {string} */1203 var img = '<style class="customizer-typography-headings-tablet-font-size">@media (max-width: 768px){h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{font-size: ' + dataAndEvents + ";}}</style>";1204 if ( $child.length ) {1205 $child.replaceWith( img );1206 } else {1207 $( "head" ).append( img );1208 }1209 } else {1210 $child.remove();1211 }1212 } );1213 } ), api( "headings_mobile_typography[font-size]", function( $swipe ) {1214 $swipe.bind( function( dataAndEvents ) {1215 var $child = $( ".customizer-typography-headings-mobile-font-size" );1216 if ( dataAndEvents ) {1217 /** @type {string} */1218 var img = '<style class="customizer-typography-headings-mobile-font-size">@media (max-width: 480px){h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{font-size: ' + dataAndEvents + ";}}</style>";1219 if ( $child.length ) {1220 $child.replaceWith( img );1221 } else {1222 $( "head" ).append( img );1223 }1224 } else {1225 $child.remove();1226 }1227 } );1228 } ), api( "headings_typography[color]", function( $swipe ) {1229 $swipe.bind( function( dataAndEvents ) {1230 var $child = $( ".customizer-typography-headings-color" );1231 if ( dataAndEvents ) {1232 /** @type {string} */1233 var img = '<style class="customizer-typography-headings-color">h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{color: ' + dataAndEvents + ";}</style>";1234 if ( $child.length ) {1235 $child.replaceWith( img );1236 } else {1237 $( "head" ).append( img );1238 }1239 } else {1240 $child.remove();1241 }1242 } );1243 } ), api( "headings_typography[line-height]", function( $swipe ) {1244 $swipe.bind( function( dataAndEvents ) {1245 var $child = $( ".customizer-typography-headings-line-height" );1246 if ( dataAndEvents ) {1247 /** @type {string} */1248 var img = '<style class="customizer-typography-headings-line-height">h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{line-height: ' + dataAndEvents + ";}</style>";1249 if ( $child.length ) {1250 $child.replaceWith( img );1251 } else {1252 $( "head" ).append( img );1253 }1254 } else {1255 $child.remove();1256 }1257 } );1258 } ), api( "headings_tablet_typography[line-height]", function( $swipe ) {1259 $swipe.bind( function( dataAndEvents ) {1260 var $child = $( ".customizer-typography-headings-tablet-line-height" );1261 if ( dataAndEvents ) {1262 /** @type {string} */1263 var img = '<style class="customizer-typography-headings-tablet-line-height">@media (max-width: 768px){h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{line-height: ' + dataAndEvents + ";}}</style>";1264 if ( $child.length ) {1265 $child.replaceWith( img );1266 } else {1267 $( "head" ).append( img );1268 }1269 } else {1270 $child.remove();1271 }1272 } );1273 } ), api( "headings_mobile_typography[line-height]", function( $swipe ) {1274 $swipe.bind( function( dataAndEvents ) {1275 var $child = $( ".customizer-typography-headings-mobile-line-height" );1276 if ( dataAndEvents ) {1277 /** @type {string} */1278 var img = '<style class="customizer-typography-headings-mobile-line-height">@media (max-width: 480px){h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{line-height: ' + dataAndEvents + ";}}</style>";1279 if ( $child.length ) {1280 $child.replaceWith( img );1281 } else {1282 $( "head" ).append( img );1283 }1284 } else {1285 $child.remove();1286 }1287 } );1288 } ), api( "headings_typography[letter-spacing]", function( $swipe ) {1289 $swipe.bind( function( dataAndEvents ) {1290 var $child = $( ".customizer-typography-headings-letter-spacing" );1291 if ( dataAndEvents ) {1292 /** @type {string} */1293 var img = '<style class="customizer-typography-headings-letter-spacing">h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{letter-spacing: ' + dataAndEvents + "px;}</style>";1294 if ( $child.length ) {1295 $child.replaceWith( img );1296 } else {1297 $( "head" ).append( img );1298 }1299 } else {1300 $child.remove();1301 }1302 } );1303 } ), api( "headings_tablet_typography[letter-spacing]", function( $swipe ) {1304 $swipe.bind( function( dataAndEvents ) {1305 var $child = $( ".customizer-typography-headings-tablet-letter-spacing" );1306 if ( dataAndEvents ) {1307 /** @type {string} */1308 var img = '<style class="customizer-typography-headings-tablet-letter-spacing">@media (max-width: 768px){h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";1309 if ( $child.length ) {1310 $child.replaceWith( img );1311 } else {1312 $( "head" ).append( img );1313 }1314 } else {1315 $child.remove();1316 }1317 } );1318 } ), api( "headings_mobile_typography[letter-spacing]", function( $swipe ) {1319 $swipe.bind( function( dataAndEvents ) {1320 var $child = $( ".customizer-typography-headings-mobile-letter-spacing" );1321 if ( dataAndEvents ) {1322 /** @type {string} */1323 var img = '<style class="customizer-typography-headings-mobile-letter-spacing">@media (max-width: 480px){h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";1324 if ( $child.length ) {1325 $child.replaceWith( img );1326 } else {1327 $( "head" ).append( img );1328 }1329 } else {1330 $child.remove();1331 }1332 } );1333 } ), api( "headings_typography[text-transform]", function( $swipe ) {1334 $swipe.bind( function( dataAndEvents ) {1335 var $child = $( ".customizer-typography-headings-text-transform" );1336 if ( dataAndEvents ) {1337 /** @type {string} */1338 var img = '<style class="customizer-typography-headings-text-transform">h1,h2,h3,h4,h5,h6,.theme-heading,.widget-title,.oceanwp-widget-recent-posts-title,.comment-reply-title,.entry-title,.sidebar-box .widget-title{text-transform: ' + dataAndEvents + ";}</style>";1339 if ( $child.length ) {1340 $child.replaceWith( img );1341 } else {1342 $( "head" ).append( img );1343 }1344 } else {1345 $child.remove();1346 }1347 } );1348 } ), api( "logo_typography[font-family]", function( $swipe ) {1349 $swipe.bind( function( pair ) {1350 if ( pair ) {1351 /** @type {string} */1352 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-logo-font-family" );1353 var fontSize = pair.replace( " ", "%20" );1354 fontSize = fontSize.replace( ",", "%2C" );1355 /** @type {string} */1356 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;1357 if ( $( "#" + idfirst ).length ) {1358 $( "#" + idfirst ).attr( "href", fontSize );1359 } else {1360 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );1361 }1362 }1363 var $child = $( ".customizer-typography-logo-font-family" );1364 if ( pair ) {1365 /** @type {string} */1366 var img = '<style class="customizer-typography-logo-font-family">#site-logo a.site-logo-text{font-family: ' + pair + ";}</style>";1367 if ( $child.length ) {1368 $child.replaceWith( img );1369 } else {1370 $( "head" ).append( img );1371 }1372 } else {1373 $child.remove();1374 }1375 } );1376 } ), api( "logo_typography[font-weight]", function( $swipe ) {1377 $swipe.bind( function( dataAndEvents ) {1378 var $child = $( ".customizer-typography-logo-font-weight" );1379 if ( dataAndEvents ) {1380 /** @type {string} */1381 var img = '<style class="customizer-typography-logo-font-weight">#site-logo a.site-logo-text{font-weight: ' + dataAndEvents + ";}</style>";1382 if ( $child.length ) {1383 $child.replaceWith( img );1384 } else {1385 $( "head" ).append( img );1386 }1387 } else {1388 $child.remove();1389 }1390 } );1391 } ), api( "logo_typography[font-style]", function( $swipe ) {1392 $swipe.bind( function( dataAndEvents ) {1393 var $child = $( ".customizer-typography-logo-font-style" );1394 if ( dataAndEvents ) {1395 /** @type {string} */1396 var img = '<style class="customizer-typography-logo-font-style">#site-logo a.site-logo-text{font-style: ' + dataAndEvents + ";}</style>";1397 if ( $child.length ) {1398 $child.replaceWith( img );1399 } else {1400 $( "head" ).append( img );1401 }1402 } else {1403 $child.remove();1404 }1405 } );1406 } ), api( "logo_typography[font-size]", function( $swipe ) {1407 $swipe.bind( function( dataAndEvents ) {1408 var $child = $( ".customizer-typography-logo-font-size" );1409 if ( dataAndEvents ) {1410 /** @type {string} */1411 var img = '<style class="customizer-typography-logo-font-size">#site-logo a.site-logo-text{font-size: ' + dataAndEvents + ";}</style>";1412 if ( $child.length ) {1413 $child.replaceWith( img );1414 } else {1415 $( "head" ).append( img );1416 }1417 } else {1418 $child.remove();1419 }1420 } );1421 } ), api( "logo_tablet_typography[font-size]", function( $swipe ) {1422 $swipe.bind( function( dataAndEvents ) {1423 var $child = $( ".customizer-typography-logo-tablet-font-size" );1424 if ( dataAndEvents ) {1425 /** @type {string} */1426 var img = '<style class="customizer-typography-logo-tablet-font-size">@media (max-width: 768px){#site-logo a.site-logo-text{font-size: ' + dataAndEvents + ";}}</style>";1427 if ( $child.length ) {1428 $child.replaceWith( img );1429 } else {1430 $( "head" ).append( img );1431 }1432 } else {1433 $child.remove();1434 }1435 } );1436 } ), api( "logo_mobile_typography[font-size]", function( $swipe ) {1437 $swipe.bind( function( dataAndEvents ) {1438 var $child = $( ".customizer-typography-logo-mobile-font-size" );1439 if ( dataAndEvents ) {1440 /** @type {string} */1441 var img = '<style class="customizer-typography-logo-mobile-font-size">@media (max-width: 480px){#site-logo a.site-logo-text{font-size: ' + dataAndEvents + ";}}</style>";1442 if ( $child.length ) {1443 $child.replaceWith( img );1444 } else {1445 $( "head" ).append( img );1446 }1447 } else {1448 $child.remove();1449 }1450 } );1451 } ), api( "logo_typography[color]", function( $swipe ) {1452 $swipe.bind( function( dataAndEvents ) {1453 var $child = $( ".customizer-typography-logo-color" );1454 if ( dataAndEvents ) {1455 /** @type {string} */1456 var img = '<style class="customizer-typography-logo-color">#site-logo a.site-logo-text{color: ' + dataAndEvents + ";}</style>";1457 if ( $child.length ) {1458 $child.replaceWith( img );1459 } else {1460 $( "head" ).append( img );1461 }1462 } else {1463 $child.remove();1464 }1465 } );1466 } ), api( "logo_typography[line-height]", function( $swipe ) {1467 $swipe.bind( function( dataAndEvents ) {1468 var $child = $( ".customizer-typography-logo-line-height" );1469 if ( dataAndEvents ) {1470 /** @type {string} */1471 var img = '<style class="customizer-typography-logo-line-height">#site-logo a.site-logo-text{line-height: ' + dataAndEvents + ";}</style>";1472 if ( $child.length ) {1473 $child.replaceWith( img );1474 } else {1475 $( "head" ).append( img );1476 }1477 } else {1478 $child.remove();1479 }1480 } );1481 } ), api( "logo_tablet_typography[line-height]", function( $swipe ) {1482 $swipe.bind( function( dataAndEvents ) {1483 var $child = $( ".customizer-typography-logo-tablet-line-height" );1484 if ( dataAndEvents ) {1485 /** @type {string} */1486 var img = '<style class="customizer-typography-logo-tablet-line-height">@media (max-width: 768px){#site-logo a.site-logo-text{line-height: ' + dataAndEvents + ";}}</style>";1487 if ( $child.length ) {1488 $child.replaceWith( img );1489 } else {1490 $( "head" ).append( img );1491 }1492 } else {1493 $child.remove();1494 }1495 } );1496 } ), api( "logo_mobile_typography[line-height]", function( $swipe ) {1497 $swipe.bind( function( dataAndEvents ) {1498 var $child = $( ".customizer-typography-logo-mobile-line-height" );1499 if ( dataAndEvents ) {1500 /** @type {string} */1501 var img = '<style class="customizer-typography-logo-mobile-line-height">@media (max-width: 480px){#site-logo a.site-logo-text{line-height: ' + dataAndEvents + ";}}</style>";1502 if ( $child.length ) {1503 $child.replaceWith( img );1504 } else {1505 $( "head" ).append( img );1506 }1507 } else {1508 $child.remove();1509 }1510 } );1511 } ), api( "logo_typography[letter-spacing]", function( $swipe ) {1512 $swipe.bind( function( dataAndEvents ) {1513 var $child = $( ".customizer-typography-logo-letter-spacing" );1514 if ( dataAndEvents ) {1515 /** @type {string} */1516 var img = '<style class="customizer-typography-logo-letter-spacing">#site-logo a.site-logo-text{letter-spacing: ' + dataAndEvents + "px;}</style>";1517 if ( $child.length ) {1518 $child.replaceWith( img );1519 } else {1520 $( "head" ).append( img );1521 }1522 } else {1523 $child.remove();1524 }1525 } );1526 } ), api( "logo_tablet_typography[letter-spacing]", function( $swipe ) {1527 $swipe.bind( function( dataAndEvents ) {1528 var $child = $( ".customizer-typography-logo-tablet-letter-spacing" );1529 if ( dataAndEvents ) {1530 /** @type {string} */1531 var img = '<style class="customizer-typography-logo-tablet-letter-spacing">@media (max-width: 768px){#site-logo a.site-logo-text{letter-spacing: ' + dataAndEvents + "px;}}</style>";1532 if ( $child.length ) {1533 $child.replaceWith( img );1534 } else {1535 $( "head" ).append( img );1536 }1537 } else {1538 $child.remove();1539 }1540 } );1541 } ), api( "logo_mobile_typography[letter-spacing]", function( $swipe ) {1542 $swipe.bind( function( dataAndEvents ) {1543 var $child = $( ".customizer-typography-logo-mobile-letter-spacing" );1544 if ( dataAndEvents ) {1545 /** @type {string} */1546 var img = '<style class="customizer-typography-logo-mobile-letter-spacing">@media (max-width: 480px){#site-logo a.site-logo-text{letter-spacing: ' + dataAndEvents + "px;}}</style>";1547 if ( $child.length ) {1548 $child.replaceWith( img );1549 } else {1550 $( "head" ).append( img );1551 }1552 } else {1553 $child.remove();1554 }1555 } );1556 } ), api( "logo_typography[text-transform]", function( $swipe ) {1557 $swipe.bind( function( dataAndEvents ) {1558 var $child = $( ".customizer-typography-logo-text-transform" );1559 if ( dataAndEvents ) {1560 /** @type {string} */1561 var img = '<style class="customizer-typography-logo-text-transform">#site-logo a.site-logo-text{text-transform: ' + dataAndEvents + ";}</style>";1562 if ( $child.length ) {1563 $child.replaceWith( img );1564 } else {1565 $( "head" ).append( img );1566 }1567 } else {1568 $child.remove();1569 }1570 } );1571 } ), api( "top_menu_typography[font-family]", function( $swipe ) {1572 $swipe.bind( function( pair ) {1573 if ( pair ) {1574 /** @type {string} */1575 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-top_menu-font-family" );1576 var fontSize = pair.replace( " ", "%20" );1577 fontSize = fontSize.replace( ",", "%2C" );1578 /** @type {string} */1579 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;1580 if ( $( "#" + idfirst ).length ) {1581 $( "#" + idfirst ).attr( "href", fontSize );1582 } else {1583 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );1584 }1585 }1586 var $child = $( ".customizer-typography-top_menu-font-family" );1587 if ( pair ) {1588 /** @type {string} */1589 var img = '<style class="customizer-typography-top_menu-font-family">#top-bar-content{font-family: ' + pair + ";}</style>";1590 if ( $child.length ) {1591 $child.replaceWith( img );1592 } else {1593 $( "head" ).append( img );1594 }1595 } else {1596 $child.remove();1597 }1598 } );1599 } ), api( "top_menu_typography[font-weight]", function( $swipe ) {1600 $swipe.bind( function( dataAndEvents ) {1601 var $child = $( ".customizer-typography-top_menu-font-weight" );1602 if ( dataAndEvents ) {1603 /** @type {string} */1604 var img = '<style class="customizer-typography-top_menu-font-weight">#top-bar-content{font-weight: ' + dataAndEvents + ";}</style>";1605 if ( $child.length ) {1606 $child.replaceWith( img );1607 } else {1608 $( "head" ).append( img );1609 }1610 } else {1611 $child.remove();1612 }1613 } );1614 } ), api( "top_menu_typography[font-style]", function( $swipe ) {1615 $swipe.bind( function( dataAndEvents ) {1616 var $child = $( ".customizer-typography-top_menu-font-style" );1617 if ( dataAndEvents ) {1618 /** @type {string} */1619 var img = '<style class="customizer-typography-top_menu-font-style">#top-bar-content{font-style: ' + dataAndEvents + ";}</style>";1620 if ( $child.length ) {1621 $child.replaceWith( img );1622 } else {1623 $( "head" ).append( img );1624 }1625 } else {1626 $child.remove();1627 }1628 } );1629 } ), api( "top_menu_typography[font-size]", function( $swipe ) {1630 $swipe.bind( function( dataAndEvents ) {1631 var $child = $( ".customizer-typography-top_menu-font-size" );1632 if ( dataAndEvents ) {1633 /** @type {string} */1634 var img = '<style class="customizer-typography-top_menu-font-size">#top-bar-content{font-size: ' + dataAndEvents + ";}</style>";1635 if ( $child.length ) {1636 $child.replaceWith( img );1637 } else {1638 $( "head" ).append( img );1639 }1640 } else {1641 $child.remove();1642 }1643 } );1644 } ), api( "top_menu_tablet_typography[font-size]", function( $swipe ) {1645 $swipe.bind( function( dataAndEvents ) {1646 var $child = $( ".customizer-typography-top_menu-tablet-font-size" );1647 if ( dataAndEvents ) {1648 /** @type {string} */1649 var img = '<style class="customizer-typography-top_menu-tablet-font-size">@media (max-width: 768px){#top-bar-content{font-size: ' + dataAndEvents + ";}}</style>";1650 if ( $child.length ) {1651 $child.replaceWith( img );1652 } else {1653 $( "head" ).append( img );1654 }1655 } else {1656 $child.remove();1657 }1658 } );1659 } ), api( "top_menu_mobile_typography[font-size]", function( $swipe ) {1660 $swipe.bind( function( dataAndEvents ) {1661 var $child = $( ".customizer-typography-top_menu-mobile-font-size" );1662 if ( dataAndEvents ) {1663 /** @type {string} */1664 var img = '<style class="customizer-typography-top_menu-mobile-font-size">@media (max-width: 480px){#top-bar-content{font-size: ' + dataAndEvents + ";}}</style>";1665 if ( $child.length ) {1666 $child.replaceWith( img );1667 } else {1668 $( "head" ).append( img );1669 }1670 } else {1671 $child.remove();1672 }1673 } );1674 } ), api( "top_menu_typography[color]", function( $swipe ) {1675 $swipe.bind( function( dataAndEvents ) {1676 var $child = $( ".customizer-typography-top_menu-color" );1677 if ( dataAndEvents ) {1678 /** @type {string} */1679 var img = '<style class="customizer-typography-top_menu-color">#top-bar-content{color: ' + dataAndEvents + ";}</style>";1680 if ( $child.length ) {1681 $child.replaceWith( img );1682 } else {1683 $( "head" ).append( img );1684 }1685 } else {1686 $child.remove();1687 }1688 } );1689 } ), api( "top_menu_typography[line-height]", function( $swipe ) {1690 $swipe.bind( function( dataAndEvents ) {1691 var $child = $( ".customizer-typography-top_menu-line-height" );1692 if ( dataAndEvents ) {1693 /** @type {string} */1694 var img = '<style class="customizer-typography-top_menu-line-height">#top-bar-content{line-height: ' + dataAndEvents + ";}</style>";1695 if ( $child.length ) {1696 $child.replaceWith( img );1697 } else {1698 $( "head" ).append( img );1699 }1700 } else {1701 $child.remove();1702 }1703 } );1704 } ), api( "top_menu_tablet_typography[line-height]", function( $swipe ) {1705 $swipe.bind( function( dataAndEvents ) {1706 var $child = $( ".customizer-typography-top_menu-tablet-line-height" );1707 if ( dataAndEvents ) {1708 /** @type {string} */1709 var img = '<style class="customizer-typography-top_menu-tablet-line-height">@media (max-width: 768px){#top-bar-content{line-height: ' + dataAndEvents + ";}}</style>";1710 if ( $child.length ) {1711 $child.replaceWith( img );1712 } else {1713 $( "head" ).append( img );1714 }1715 } else {1716 $child.remove();1717 }1718 } );1719 } ), api( "top_menu_mobile_typography[line-height]", function( $swipe ) {1720 $swipe.bind( function( dataAndEvents ) {1721 var $child = $( ".customizer-typography-top_menu-mobile-line-height" );1722 if ( dataAndEvents ) {1723 /** @type {string} */1724 var img = '<style class="customizer-typography-top_menu-mobile-line-height">@media (max-width: 480px){#top-bar-content{line-height: ' + dataAndEvents + ";}}</style>";1725 if ( $child.length ) {1726 $child.replaceWith( img );1727 } else {1728 $( "head" ).append( img );1729 }1730 } else {1731 $child.remove();1732 }1733 } );1734 } ), api( "top_menu_typography[letter-spacing]", function( $swipe ) {1735 $swipe.bind( function( dataAndEvents ) {1736 var $child = $( ".customizer-typography-top_menu-letter-spacing" );1737 if ( dataAndEvents ) {1738 /** @type {string} */1739 var img = '<style class="customizer-typography-top_menu-letter-spacing">#top-bar-content{letter-spacing: ' + dataAndEvents + "px;}</style>";1740 if ( $child.length ) {1741 $child.replaceWith( img );1742 } else {1743 $( "head" ).append( img );1744 }1745 } else {1746 $child.remove();1747 }1748 } );1749 } ), api( "top_menu_tablet_typography[letter-spacing]", function( $swipe ) {1750 $swipe.bind( function( dataAndEvents ) {1751 var $child = $( ".customizer-typography-top_menu-tablet-letter-spacing" );1752 if ( dataAndEvents ) {1753 /** @type {string} */1754 var img = '<style class="customizer-typography-top_menu-tablet-letter-spacing">@media (max-width: 768px){#top-bar-content{letter-spacing: ' + dataAndEvents + "px;}}</style>";1755 if ( $child.length ) {1756 $child.replaceWith( img );1757 } else {1758 $( "head" ).append( img );1759 }1760 } else {1761 $child.remove();1762 }1763 } );1764 } ), api( "top_menu_mobile_typography[letter-spacing]", function( $swipe ) {1765 $swipe.bind( function( dataAndEvents ) {1766 var $child = $( ".customizer-typography-top_menu-mobile-letter-spacing" );1767 if ( dataAndEvents ) {1768 /** @type {string} */1769 var img = '<style class="customizer-typography-top_menu-mobile-letter-spacing">@media (max-width: 480px){#top-bar-content{letter-spacing: ' + dataAndEvents + "px;}}</style>";1770 if ( $child.length ) {1771 $child.replaceWith( img );1772 } else {1773 $( "head" ).append( img );1774 }1775 } else {1776 $child.remove();1777 }1778 } );1779 } ), api( "top_menu_typography[text-transform]", function( $swipe ) {1780 $swipe.bind( function( dataAndEvents ) {1781 var $child = $( ".customizer-typography-top_menu-text-transform" );1782 if ( dataAndEvents ) {1783 /** @type {string} */1784 var img = '<style class="customizer-typography-top_menu-text-transform">#top-bar-content{text-transform: ' + dataAndEvents + ";}</style>";1785 if ( $child.length ) {1786 $child.replaceWith( img );1787 } else {1788 $( "head" ).append( img );1789 }1790 } else {1791 $child.remove();1792 }1793 } );1794 } ), api( "menu_typography[font-family]", function( $swipe ) {1795 $swipe.bind( function( pair ) {1796 if ( pair ) {1797 /** @type {string} */1798 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-menu-font-family" );1799 var fontSize = pair.replace( " ", "%20" );1800 fontSize = fontSize.replace( ",", "%2C" );1801 /** @type {string} */1802 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;1803 if ( $( "#" + idfirst ).length ) {1804 $( "#" + idfirst ).attr( "href", fontSize );1805 } else {1806 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );1807 }1808 }1809 var $child = $( ".customizer-typography-menu-font-family" );1810 if ( pair ) {1811 /** @type {string} */1812 var img = '<style class="customizer-typography-menu-font-family">#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{font-family: ' + pair + ";}</style>";1813 if ( $child.length ) {1814 $child.replaceWith( img );1815 } else {1816 $( "head" ).append( img );1817 }1818 } else {1819 $child.remove();1820 }1821 } );1822 } ), api( "menu_typography[font-weight]", function( $swipe ) {1823 $swipe.bind( function( dataAndEvents ) {1824 var $child = $( ".customizer-typography-menu-font-weight" );1825 if ( dataAndEvents ) {1826 /** @type {string} */1827 var img = '<style class="customizer-typography-menu-font-weight">#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{font-weight: ' + dataAndEvents + ";}</style>";1828 if ( $child.length ) {1829 $child.replaceWith( img );1830 } else {1831 $( "head" ).append( img );1832 }1833 } else {1834 $child.remove();1835 }1836 } );1837 } ), api( "menu_typography[font-style]", function( $swipe ) {1838 $swipe.bind( function( dataAndEvents ) {1839 var $child = $( ".customizer-typography-menu-font-style" );1840 if ( dataAndEvents ) {1841 /** @type {string} */1842 var img = '<style class="customizer-typography-menu-font-style">#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{font-style: ' + dataAndEvents + ";}</style>";1843 if ( $child.length ) {1844 $child.replaceWith( img );1845 } else {1846 $( "head" ).append( img );1847 }1848 } else {1849 $child.remove();1850 }1851 } );1852 } ), api( "menu_typography[font-size]", function( $swipe ) {1853 $swipe.bind( function( dataAndEvents ) {1854 var $child = $( ".customizer-typography-menu-font-size" );1855 if ( dataAndEvents ) {1856 /** @type {string} */1857 var img = '<style class="customizer-typography-menu-font-size">#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{font-size: ' + dataAndEvents + ";}</style>";1858 if ( $child.length ) {1859 $child.replaceWith( img );1860 } else {1861 $( "head" ).append( img );1862 }1863 } else {1864 $child.remove();1865 }1866 } );1867 } ), api( "menu_tablet_typography[font-size]", function( $swipe ) {1868 $swipe.bind( function( dataAndEvents ) {1869 var $child = $( ".customizer-typography-menu-tablet-font-size" );1870 if ( dataAndEvents ) {1871 /** @type {string} */1872 var img = '<style class="customizer-typography-menu-tablet-font-size">@media (max-width: 768px){#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{font-size: ' + dataAndEvents + ";}}</style>";1873 if ( $child.length ) {1874 $child.replaceWith( img );1875 } else {1876 $( "head" ).append( img );1877 }1878 } else {1879 $child.remove();1880 }1881 } );1882 } ), api( "menu_mobile_typography[font-size]", function( $swipe ) {1883 $swipe.bind( function( dataAndEvents ) {1884 var $child = $( ".customizer-typography-menu-mobile-font-size" );1885 if ( dataAndEvents ) {1886 /** @type {string} */1887 var img = '<style class="customizer-typography-menu-mobile-font-size">@media (max-width: 480px){#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{font-size: ' + dataAndEvents + ";}}</style>";1888 if ( $child.length ) {1889 $child.replaceWith( img );1890 } else {1891 $( "head" ).append( img );1892 }1893 } else {1894 $child.remove();1895 }1896 } );1897 } ), api( "menu_typography[color]", function( $swipe ) {1898 $swipe.bind( function( dataAndEvents ) {1899 var $child = $( ".customizer-typography-menu-color" );1900 if ( dataAndEvents ) {1901 /** @type {string} */1902 var img = '<style class="customizer-typography-menu-color">#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{color: ' + dataAndEvents + ";}</style>";1903 if ( $child.length ) {1904 $child.replaceWith( img );1905 } else {1906 $( "head" ).append( img );1907 }1908 } else {1909 $child.remove();1910 }1911 } );1912 } ), api( "menu_typography[letter-spacing]", function( $swipe ) {1913 $swipe.bind( function( dataAndEvents ) {1914 var $child = $( ".customizer-typography-menu-letter-spacing" );1915 if ( dataAndEvents ) {1916 /** @type {string} */1917 var img = '<style class="customizer-typography-menu-letter-spacing">#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{letter-spacing: ' + dataAndEvents + "px;}</style>";1918 if ( $child.length ) {1919 $child.replaceWith( img );1920 } else {1921 $( "head" ).append( img );1922 }1923 } else {1924 $child.remove();1925 }1926 } );1927 } ), api( "menu_tablet_typography[letter-spacing]", function( $swipe ) {1928 $swipe.bind( function( dataAndEvents ) {1929 var $child = $( ".customizer-typography-menu-tablet-letter-spacing" );1930 if ( dataAndEvents ) {1931 /** @type {string} */1932 var img = '<style class="customizer-typography-menu-tablet-letter-spacing">@media (max-width: 768px){#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{letter-spacing: ' + dataAndEvents + "px;}}</style>";1933 if ( $child.length ) {1934 $child.replaceWith( img );1935 } else {1936 $( "head" ).append( img );1937 }1938 } else {1939 $child.remove();1940 }1941 } );1942 } ), api( "menu_mobile_typography[letter-spacing]", function( $swipe ) {1943 $swipe.bind( function( dataAndEvents ) {1944 var $child = $( ".customizer-typography-menu-mobile-letter-spacing" );1945 if ( dataAndEvents ) {1946 /** @type {string} */1947 var img = '<style class="customizer-typography-menu-mobile-letter-spacing">@media (max-width: 480px){#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{letter-spacing: ' + dataAndEvents + "px;}}</style>";1948 if ( $child.length ) {1949 $child.replaceWith( img );1950 } else {1951 $( "head" ).append( img );1952 }1953 } else {1954 $child.remove();1955 }1956 } );1957 } ), api( "menu_typography[text-transform]", function( $swipe ) {1958 $swipe.bind( function( dataAndEvents ) {1959 var $child = $( ".customizer-typography-menu-text-transform" );1960 if ( dataAndEvents ) {1961 /** @type {string} */1962 var img = '<style class="customizer-typography-menu-text-transform">#site-navigation-wrap .dropdown-menu > li > a,#site-header.full_screen-header .fs-dropdown-menu > li > a,#site-header.top-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.center-header #site-navigation-wrap .dropdown-menu > li > a,#site-header.medium-header #site-navigation-wrap .dropdown-menu > li > a,.oceanwp-mobile-menu-icon a{text-transform: ' + dataAndEvents + ";}</style>";1963 if ( $child.length ) {1964 $child.replaceWith( img );1965 } else {1966 $( "head" ).append( img );1967 }1968 } else {1969 $child.remove();1970 }1971 } );1972 } ), api( "menu_dropdown_typography[font-family]", function( $swipe ) {1973 $swipe.bind( function( pair ) {1974 if ( pair ) {1975 /** @type {string} */1976 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-menu_dropdown-font-family" );1977 var fontSize = pair.replace( " ", "%20" );1978 fontSize = fontSize.replace( ",", "%2C" );1979 /** @type {string} */1980 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;1981 if ( $( "#" + idfirst ).length ) {1982 $( "#" + idfirst ).attr( "href", fontSize );1983 } else {1984 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );1985 }1986 }1987 var $child = $( ".customizer-typography-menu_dropdown-font-family" );1988 if ( pair ) {1989 /** @type {string} */1990 var img = '<style class="customizer-typography-menu_dropdown-font-family">.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{font-family: ' + pair + ";}</style>";1991 if ( $child.length ) {1992 $child.replaceWith( img );1993 } else {1994 $( "head" ).append( img );1995 }1996 } else {1997 $child.remove();1998 }1999 } );2000 } ), api( "menu_dropdown_typography[font-weight]", function( $swipe ) {2001 $swipe.bind( function( dataAndEvents ) {2002 var $child = $( ".customizer-typography-menu_dropdown-font-weight" );2003 if ( dataAndEvents ) {2004 /** @type {string} */2005 var img = '<style class="customizer-typography-menu_dropdown-font-weight">.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{font-weight: ' + dataAndEvents + ";}</style>";2006 if ( $child.length ) {2007 $child.replaceWith( img );2008 } else {2009 $( "head" ).append( img );2010 }2011 } else {2012 $child.remove();2013 }2014 } );2015 } ), api( "menu_dropdown_typography[font-style]", function( $swipe ) {2016 $swipe.bind( function( dataAndEvents ) {2017 var $child = $( ".customizer-typography-menu_dropdown-font-style" );2018 if ( dataAndEvents ) {2019 /** @type {string} */2020 var img = '<style class="customizer-typography-menu_dropdown-font-style">.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{font-style: ' + dataAndEvents + ";}</style>";2021 if ( $child.length ) {2022 $child.replaceWith( img );2023 } else {2024 $( "head" ).append( img );2025 }2026 } else {2027 $child.remove();2028 }2029 } );2030 } ), api( "menu_dropdown_typography[font-size]", function( $swipe ) {2031 $swipe.bind( function( dataAndEvents ) {2032 var $child = $( ".customizer-typography-menu_dropdown-font-size" );2033 if ( dataAndEvents ) {2034 /** @type {string} */2035 var img = '<style class="customizer-typography-menu_dropdown-font-size">.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{font-size: ' + dataAndEvents + ";}</style>";2036 if ( $child.length ) {2037 $child.replaceWith( img );2038 } else {2039 $( "head" ).append( img );2040 }2041 } else {2042 $child.remove();2043 }2044 } );2045 } ), api( "menu_dropdown_tablet_typography[font-size]", function( $swipe ) {2046 $swipe.bind( function( dataAndEvents ) {2047 var $child = $( ".customizer-typography-menu_dropdown-tablet-font-size" );2048 if ( dataAndEvents ) {2049 /** @type {string} */2050 var img = '<style class="customizer-typography-menu_dropdown-tablet-font-size">@media (max-width: 768px){.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{font-size: ' + dataAndEvents + ";}}</style>";2051 if ( $child.length ) {2052 $child.replaceWith( img );2053 } else {2054 $( "head" ).append( img );2055 }2056 } else {2057 $child.remove();2058 }2059 } );2060 } ), api( "menu_dropdown_mobile_typography[font-size]", function( $swipe ) {2061 $swipe.bind( function( dataAndEvents ) {2062 var $child = $( ".customizer-typography-menu_dropdown-mobile-font-size" );2063 if ( dataAndEvents ) {2064 /** @type {string} */2065 var img = '<style class="customizer-typography-menu_dropdown-mobile-font-size">@media (max-width: 480px){.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{font-size: ' + dataAndEvents + ";}}</style>";2066 if ( $child.length ) {2067 $child.replaceWith( img );2068 } else {2069 $( "head" ).append( img );2070 }2071 } else {2072 $child.remove();2073 }2074 } );2075 } ), api( "menu_dropdown_typography[color]", function( $swipe ) {2076 $swipe.bind( function( dataAndEvents ) {2077 var $child = $( ".customizer-typography-menu_dropdown-color" );2078 if ( dataAndEvents ) {2079 /** @type {string} */2080 var img = '<style class="customizer-typography-menu_dropdown-color">.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{color: ' + dataAndEvents + ";}</style>";2081 if ( $child.length ) {2082 $child.replaceWith( img );2083 } else {2084 $( "head" ).append( img );2085 }2086 } else {2087 $child.remove();2088 }2089 } );2090 } ), api( "menu_dropdown_typography[line-height]", function( $swipe ) {2091 $swipe.bind( function( dataAndEvents ) {2092 var $child = $( ".customizer-typography-menu_dropdown-line-height" );2093 if ( dataAndEvents ) {2094 /** @type {string} */2095 var img = '<style class="customizer-typography-menu_dropdown-line-height">.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{line-height: ' + dataAndEvents + ";}</style>";2096 if ( $child.length ) {2097 $child.replaceWith( img );2098 } else {2099 $( "head" ).append( img );2100 }2101 } else {2102 $child.remove();2103 }2104 } );2105 } ), api( "menu_dropdown_tablet_typography[line-height]", function( $swipe ) {2106 $swipe.bind( function( dataAndEvents ) {2107 var $child = $( ".customizer-typography-menu_dropdown-tablet-line-height" );2108 if ( dataAndEvents ) {2109 /** @type {string} */2110 var img = '<style class="customizer-typography-menu_dropdown-tablet-line-height">@media (max-width: 768px){.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{line-height: ' + dataAndEvents + ";}}</style>";2111 if ( $child.length ) {2112 $child.replaceWith( img );2113 } else {2114 $( "head" ).append( img );2115 }2116 } else {2117 $child.remove();2118 }2119 } );2120 } ), api( "menu_dropdown_mobile_typography[line-height]", function( $swipe ) {2121 $swipe.bind( function( dataAndEvents ) {2122 var $child = $( ".customizer-typography-menu_dropdown-mobile-line-height" );2123 if ( dataAndEvents ) {2124 /** @type {string} */2125 var img = '<style class="customizer-typography-menu_dropdown-mobile-line-height">@media (max-width: 480px){.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{line-height: ' + dataAndEvents + ";}}</style>";2126 if ( $child.length ) {2127 $child.replaceWith( img );2128 } else {2129 $( "head" ).append( img );2130 }2131 } else {2132 $child.remove();2133 }2134 } );2135 } ), api( "menu_dropdown_typography[letter-spacing]", function( $swipe ) {2136 $swipe.bind( function( dataAndEvents ) {2137 var $child = $( ".customizer-typography-menu_dropdown-letter-spacing" );2138 if ( dataAndEvents ) {2139 /** @type {string} */2140 var img = '<style class="customizer-typography-menu_dropdown-letter-spacing">.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{letter-spacing: ' + dataAndEvents + "px;}</style>";2141 if ( $child.length ) {2142 $child.replaceWith( img );2143 } else {2144 $( "head" ).append( img );2145 }2146 } else {2147 $child.remove();2148 }2149 } );2150 } ), api( "menu_dropdown_tablet_typography[letter-spacing]", function( $swipe ) {2151 $swipe.bind( function( dataAndEvents ) {2152 var $child = $( ".customizer-typography-menu_dropdown-tablet-letter-spacing" );2153 if ( dataAndEvents ) {2154 /** @type {string} */2155 var img = '<style class="customizer-typography-menu_dropdown-tablet-letter-spacing">@media (max-width: 768px){.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{letter-spacing: ' + dataAndEvents + "px;}}</style>";2156 if ( $child.length ) {2157 $child.replaceWith( img );2158 } else {2159 $( "head" ).append( img );2160 }2161 } else {2162 $child.remove();2163 }2164 } );2165 } ), api( "menu_dropdown_mobile_typography[letter-spacing]", function( $swipe ) {2166 $swipe.bind( function( dataAndEvents ) {2167 var $child = $( ".customizer-typography-menu_dropdown-mobile-letter-spacing" );2168 if ( dataAndEvents ) {2169 /** @type {string} */2170 var img = '<style class="customizer-typography-menu_dropdown-mobile-letter-spacing">@media (max-width: 480px){.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{letter-spacing: ' + dataAndEvents + "px;}}</style>";2171 if ( $child.length ) {2172 $child.replaceWith( img );2173 } else {2174 $( "head" ).append( img );2175 }2176 } else {2177 $child.remove();2178 }2179 } );2180 } ), api( "menu_dropdown_typography[text-transform]", function( $swipe ) {2181 $swipe.bind( function( dataAndEvents ) {2182 var $child = $( ".customizer-typography-menu_dropdown-text-transform" );2183 if ( dataAndEvents ) {2184 /** @type {string} */2185 var img = '<style class="customizer-typography-menu_dropdown-text-transform">.dropdown-menu ul li a.menu-link,#site-header.full_screen-header .fs-dropdown-menu ul.sub-menu li a{text-transform: ' + dataAndEvents + ";}</style>";2186 if ( $child.length ) {2187 $child.replaceWith( img );2188 } else {2189 $( "head" ).append( img );2190 }2191 } else {2192 $child.remove();2193 }2194 } );2195 } ), api( "mobile_menu_dropdown_typography[font-family]", function( $swipe ) {2196 $swipe.bind( function( pair ) {2197 if ( pair ) {2198 /** @type {string} */2199 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-mobile_menu_dropdown-font-family" );2200 var fontSize = pair.replace( " ", "%20" );2201 fontSize = fontSize.replace( ",", "%2C" );2202 /** @type {string} */2203 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;2204 if ( $( "#" + idfirst ).length ) {2205 $( "#" + idfirst ).attr( "href", fontSize );2206 } else {2207 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );2208 }2209 }2210 var $child = $( ".customizer-typography-mobile_menu_dropdown-font-family" );2211 if ( pair ) {2212 /** @type {string} */2213 var img = '<style class="customizer-typography-mobile_menu_dropdown-font-family">.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{font-family: ' + pair + ";}</style>";2214 if ( $child.length ) {2215 $child.replaceWith( img );2216 } else {2217 $( "head" ).append( img );2218 }2219 } else {2220 $child.remove();2221 }2222 } );2223 } ), api( "mobile_menu_dropdown_typography[font-weight]", function( $swipe ) {2224 $swipe.bind( function( dataAndEvents ) {2225 var $child = $( ".customizer-typography-mobile_menu_dropdown-font-weight" );2226 if ( dataAndEvents ) {2227 /** @type {string} */2228 var img = '<style class="customizer-typography-mobile_menu_dropdown-font-weight">.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{font-weight: ' + dataAndEvents + ";}</style>";2229 if ( $child.length ) {2230 $child.replaceWith( img );2231 } else {2232 $( "head" ).append( img );2233 }2234 } else {2235 $child.remove();2236 }2237 } );2238 } ), api( "mobile_menu_dropdown_typography[font-style]", function( $swipe ) {2239 $swipe.bind( function( dataAndEvents ) {2240 var $child = $( ".customizer-typography-mobile_menu_dropdown-font-style" );2241 if ( dataAndEvents ) {2242 /** @type {string} */2243 var img = '<style class="customizer-typography-mobile_menu_dropdown-font-style">.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{font-style: ' + dataAndEvents + ";}</style>";2244 if ( $child.length ) {2245 $child.replaceWith( img );2246 } else {2247 $( "head" ).append( img );2248 }2249 } else {2250 $child.remove();2251 }2252 } );2253 } ), api( "mobile_menu_dropdown_typography[font-size]", function( $swipe ) {2254 $swipe.bind( function( dataAndEvents ) {2255 var $child = $( ".customizer-typography-mobile_menu_dropdown-font-size" );2256 if ( dataAndEvents ) {2257 /** @type {string} */2258 var img = '<style class="customizer-typography-mobile_menu_dropdown-font-size">.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{font-size: ' + dataAndEvents + ";}</style>";2259 if ( $child.length ) {2260 $child.replaceWith( img );2261 } else {2262 $( "head" ).append( img );2263 }2264 } else {2265 $child.remove();2266 }2267 } );2268 } ), api( "mobile_menu_dropdown_tablet_typography[font-size]", function( $swipe ) {2269 $swipe.bind( function( dataAndEvents ) {2270 var $child = $( ".customizer-typography-mobile_menu_dropdown-tablet-font-size" );2271 if ( dataAndEvents ) {2272 /** @type {string} */2273 var img = '<style class="customizer-typography-mobile_menu_dropdown-tablet-font-size">@media (max-width: 768px){.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{font-size: ' + dataAndEvents + ";}}</style>";2274 if ( $child.length ) {2275 $child.replaceWith( img );2276 } else {2277 $( "head" ).append( img );2278 }2279 } else {2280 $child.remove();2281 }2282 } );2283 } ), api( "mobile_menu_dropdown_mobile_typography[font-size]", function( $swipe ) {2284 $swipe.bind( function( dataAndEvents ) {2285 var $child = $( ".customizer-typography-mobile_menu_dropdown-mobile-font-size" );2286 if ( dataAndEvents ) {2287 /** @type {string} */2288 var img = '<style class="customizer-typography-mobile_menu_dropdown-mobile-font-size">@media (max-width: 480px){.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{font-size: ' + dataAndEvents + ";}}</style>";2289 if ( $child.length ) {2290 $child.replaceWith( img );2291 } else {2292 $( "head" ).append( img );2293 }2294 } else {2295 $child.remove();2296 }2297 } );2298 } ), api( "mobile_menu_dropdown_typography[line-height]", function( $swipe ) {2299 $swipe.bind( function( dataAndEvents ) {2300 var $child = $( ".customizer-typography-mobile_menu_dropdown-line-height" );2301 if ( dataAndEvents ) {2302 /** @type {string} */2303 var img = '<style class="customizer-typography-mobile_menu_dropdown-line-height">.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{line-height: ' + dataAndEvents + ";}</style>";2304 if ( $child.length ) {2305 $child.replaceWith( img );2306 } else {2307 $( "head" ).append( img );2308 }2309 } else {2310 $child.remove();2311 }2312 } );2313 } ), api( "mobile_menu_dropdown_tablet_typography[line-height]", function( $swipe ) {2314 $swipe.bind( function( dataAndEvents ) {2315 var $child = $( ".customizer-typography-mobile_menu_dropdown-tablet-line-height" );2316 if ( dataAndEvents ) {2317 /** @type {string} */2318 var img = '<style class="customizer-typography-mobile_menu_dropdown-tablet-line-height">@media (max-width: 768px){.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{line-height: ' + dataAndEvents + ";}}</style>";2319 if ( $child.length ) {2320 $child.replaceWith( img );2321 } else {2322 $( "head" ).append( img );2323 }2324 } else {2325 $child.remove();2326 }2327 } );2328 } ), api( "mobile_menu_dropdown_mobile_typography[line-height]", function( $swipe ) {2329 $swipe.bind( function( dataAndEvents ) {2330 var $child = $( ".customizer-typography-mobile_menu_dropdown-mobile-line-height" );2331 if ( dataAndEvents ) {2332 /** @type {string} */2333 var img = '<style class="customizer-typography-mobile_menu_dropdown-mobile-line-height">@media (max-width: 480px){.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{line-height: ' + dataAndEvents + ";}}</style>";2334 if ( $child.length ) {2335 $child.replaceWith( img );2336 } else {2337 $( "head" ).append( img );2338 }2339 } else {2340 $child.remove();2341 }2342 } );2343 } ), api( "mobile_menu_dropdown_typography[letter-spacing]", function( $swipe ) {2344 $swipe.bind( function( dataAndEvents ) {2345 var $child = $( ".customizer-typography-mobile_menu_dropdown-letter-spacing" );2346 if ( dataAndEvents ) {2347 /** @type {string} */2348 var img = '<style class="customizer-typography-mobile_menu_dropdown-letter-spacing">.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{letter-spacing: ' + dataAndEvents + "px;}</style>";2349 if ( $child.length ) {2350 $child.replaceWith( img );2351 } else {2352 $( "head" ).append( img );2353 }2354 } else {2355 $child.remove();2356 }2357 } );2358 } ), api( "mobile_menu_dropdown_tablet_typography[letter-spacing]", function( $swipe ) {2359 $swipe.bind( function( dataAndEvents ) {2360 var $child = $( ".customizer-typography-mobile_menu_dropdown-tablet-letter-spacing" );2361 if ( dataAndEvents ) {2362 /** @type {string} */2363 var img = '<style class="customizer-typography-mobile_menu_dropdown-tablet-letter-spacing">@media (max-width: 768px){.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{letter-spacing: ' + dataAndEvents + "px;}}</style>";2364 if ( $child.length ) {2365 $child.replaceWith( img );2366 } else {2367 $( "head" ).append( img );2368 }2369 } else {2370 $child.remove();2371 }2372 } );2373 } ), api( "mobile_menu_dropdown_mobile_typography[letter-spacing]", function( $swipe ) {2374 $swipe.bind( function( dataAndEvents ) {2375 var $child = $( ".customizer-typography-mobile_menu_dropdown-mobile-letter-spacing" );2376 if ( dataAndEvents ) {2377 /** @type {string} */2378 var img = '<style class="customizer-typography-mobile_menu_dropdown-mobile-letter-spacing">@media (max-width: 480px){.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{letter-spacing: ' + dataAndEvents + "px;}}</style>";2379 if ( $child.length ) {2380 $child.replaceWith( img );2381 } else {2382 $( "head" ).append( img );2383 }2384 } else {2385 $child.remove();2386 }2387 } );2388 } ), api( "mobile_menu_dropdown_typography[text-transform]", function( $swipe ) {2389 $swipe.bind( function( dataAndEvents ) {2390 var $child = $( ".customizer-typography-mobile_menu_dropdown-text-transform" );2391 if ( dataAndEvents ) {2392 /** @type {string} */2393 var img = '<style class="customizer-typography-mobile_menu_dropdown-text-transform">.sidr-class-dropdown-menu li a, a.sidr-class-toggle-sidr-close, #mobile-dropdown ul li a, body #mobile-fullscreen ul li a{text-transform: ' + dataAndEvents + ";}</style>";2394 if ( $child.length ) {2395 $child.replaceWith( img );2396 } else {2397 $( "head" ).append( img );2398 }2399 } else {2400 $child.remove();2401 }2402 } );2403 } ), api( "page_title_typography[font-family]", function( $swipe ) {2404 $swipe.bind( function( pair ) {2405 if ( pair ) {2406 /** @type {string} */2407 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-page_title-font-family" );2408 var fontSize = pair.replace( " ", "%20" );2409 fontSize = fontSize.replace( ",", "%2C" );2410 /** @type {string} */2411 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;2412 if ( $( "#" + idfirst ).length ) {2413 $( "#" + idfirst ).attr( "href", fontSize );2414 } else {2415 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );2416 }2417 }2418 var $child = $( ".customizer-typography-page_title-font-family" );2419 if ( pair ) {2420 /** @type {string} */2421 var img = '<style class="customizer-typography-page_title-font-family">.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{font-family: ' + pair + ";}</style>";2422 if ( $child.length ) {2423 $child.replaceWith( img );2424 } else {2425 $( "head" ).append( img );2426 }2427 } else {2428 $child.remove();2429 }2430 } );2431 } ), api( "page_title_typography[font-weight]", function( $swipe ) {2432 $swipe.bind( function( dataAndEvents ) {2433 var $child = $( ".customizer-typography-page_title-font-weight" );2434 if ( dataAndEvents ) {2435 /** @type {string} */2436 var img = '<style class="customizer-typography-page_title-font-weight">.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{font-weight: ' + dataAndEvents + ";}</style>";2437 if ( $child.length ) {2438 $child.replaceWith( img );2439 } else {2440 $( "head" ).append( img );2441 }2442 } else {2443 $child.remove();2444 }2445 } );2446 } ), api( "page_title_typography[font-style]", function( $swipe ) {2447 $swipe.bind( function( dataAndEvents ) {2448 var $child = $( ".customizer-typography-page_title-font-style" );2449 if ( dataAndEvents ) {2450 /** @type {string} */2451 var img = '<style class="customizer-typography-page_title-font-style">.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{font-style: ' + dataAndEvents + ";}</style>";2452 if ( $child.length ) {2453 $child.replaceWith( img );2454 } else {2455 $( "head" ).append( img );2456 }2457 } else {2458 $child.remove();2459 }2460 } );2461 } ), api( "page_title_typography[font-size]", function( $swipe ) {2462 $swipe.bind( function( dataAndEvents ) {2463 var $child = $( ".customizer-typography-page_title-font-size" );2464 if ( dataAndEvents ) {2465 /** @type {string} */2466 var img = '<style class="customizer-typography-page_title-font-size">.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{font-size: ' + dataAndEvents + ";}</style>";2467 if ( $child.length ) {2468 $child.replaceWith( img );2469 } else {2470 $( "head" ).append( img );2471 }2472 } else {2473 $child.remove();2474 }2475 } );2476 } ), api( "page_title_tablet_typography[font-size]", function( $swipe ) {2477 $swipe.bind( function( dataAndEvents ) {2478 var $child = $( ".customizer-typography-page_title-tablet-font-size" );2479 if ( dataAndEvents ) {2480 /** @type {string} */2481 var img = '<style class="customizer-typography-page_title-tablet-font-size">@media (max-width: 768px){.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{font-size: ' + dataAndEvents + ";}}</style>";2482 if ( $child.length ) {2483 $child.replaceWith( img );2484 } else {2485 $( "head" ).append( img );2486 }2487 } else {2488 $child.remove();2489 }2490 } );2491 } ), api( "page_title_mobile_typography[font-size]", function( $swipe ) {2492 $swipe.bind( function( dataAndEvents ) {2493 var $child = $( ".customizer-typography-page_title-mobile-font-size" );2494 if ( dataAndEvents ) {2495 /** @type {string} */2496 var img = '<style class="customizer-typography-page_title-mobile-font-size">@media (max-width: 480px){.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{font-size: ' + dataAndEvents + ";}}</style>";2497 if ( $child.length ) {2498 $child.replaceWith( img );2499 } else {2500 $( "head" ).append( img );2501 }2502 } else {2503 $child.remove();2504 }2505 } );2506 } ), api( "page_title_typography[color]", function( $swipe ) {2507 $swipe.bind( function( dataAndEvents ) {2508 var $child = $( ".customizer-typography-page_title-color" );2509 if ( dataAndEvents ) {2510 /** @type {string} */2511 var img = '<style class="customizer-typography-page_title-color">.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{color: ' + dataAndEvents + ";}</style>";2512 if ( $child.length ) {2513 $child.replaceWith( img );2514 } else {2515 $( "head" ).append( img );2516 }2517 } else {2518 $child.remove();2519 }2520 } );2521 } ), api( "page_title_typography[line-height]", function( $swipe ) {2522 $swipe.bind( function( dataAndEvents ) {2523 var $child = $( ".customizer-typography-page_title-line-height" );2524 if ( dataAndEvents ) {2525 /** @type {string} */2526 var img = '<style class="customizer-typography-page_title-line-height">.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{line-height: ' + dataAndEvents + ";}</style>";2527 if ( $child.length ) {2528 $child.replaceWith( img );2529 } else {2530 $( "head" ).append( img );2531 }2532 } else {2533 $child.remove();2534 }2535 } );2536 } ), api( "page_title_tablet_typography[line-height]", function( $swipe ) {2537 $swipe.bind( function( dataAndEvents ) {2538 var $child = $( ".customizer-typography-page_title-tablet-line-height" );2539 if ( dataAndEvents ) {2540 /** @type {string} */2541 var img = '<style class="customizer-typography-page_title-tablet-line-height">@media (max-width: 768px){.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{line-height: ' + dataAndEvents + ";}}</style>";2542 if ( $child.length ) {2543 $child.replaceWith( img );2544 } else {2545 $( "head" ).append( img );2546 }2547 } else {2548 $child.remove();2549 }2550 } );2551 } ), api( "page_title_mobile_typography[line-height]", function( $swipe ) {2552 $swipe.bind( function( dataAndEvents ) {2553 var $child = $( ".customizer-typography-page_title-mobile-line-height" );2554 if ( dataAndEvents ) {2555 /** @type {string} */2556 var img = '<style class="customizer-typography-page_title-mobile-line-height">@media (max-width: 480px){.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{line-height: ' + dataAndEvents + ";}}</style>";2557 if ( $child.length ) {2558 $child.replaceWith( img );2559 } else {2560 $( "head" ).append( img );2561 }2562 } else {2563 $child.remove();2564 }2565 } );2566 } ), api( "page_title_typography[letter-spacing]", function( $swipe ) {2567 $swipe.bind( function( dataAndEvents ) {2568 var $child = $( ".customizer-typography-page_title-letter-spacing" );2569 if ( dataAndEvents ) {2570 /** @type {string} */2571 var img = '<style class="customizer-typography-page_title-letter-spacing">.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{letter-spacing: ' + dataAndEvents + "px;}</style>";2572 if ( $child.length ) {2573 $child.replaceWith( img );2574 } else {2575 $( "head" ).append( img );2576 }2577 } else {2578 $child.remove();2579 }2580 } );2581 } ), api( "page_title_tablet_typography[letter-spacing]", function( $swipe ) {2582 $swipe.bind( function( dataAndEvents ) {2583 var $child = $( ".customizer-typography-page_title-tablet-letter-spacing" );2584 if ( dataAndEvents ) {2585 /** @type {string} */2586 var img = '<style class="customizer-typography-page_title-tablet-letter-spacing">@media (max-width: 768px){.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";2587 if ( $child.length ) {2588 $child.replaceWith( img );2589 } else {2590 $( "head" ).append( img );2591 }2592 } else {2593 $child.remove();2594 }2595 } );2596 } ), api( "page_title_mobile_typography[letter-spacing]", function( $swipe ) {2597 $swipe.bind( function( dataAndEvents ) {2598 var $child = $( ".customizer-typography-page_title-mobile-letter-spacing" );2599 if ( dataAndEvents ) {2600 /** @type {string} */2601 var img = '<style class="customizer-typography-page_title-mobile-letter-spacing">@media (max-width: 480px){.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";2602 if ( $child.length ) {2603 $child.replaceWith( img );2604 } else {2605 $( "head" ).append( img );2606 }2607 } else {2608 $child.remove();2609 }2610 } );2611 } ), api( "page_title_typography[text-transform]", function( $swipe ) {2612 $swipe.bind( function( dataAndEvents ) {2613 var $child = $( ".customizer-typography-page_title-text-transform" );2614 if ( dataAndEvents ) {2615 /** @type {string} */2616 var img = '<style class="customizer-typography-page_title-text-transform">.page-header .page-header-title, .page-header.background-image-page-header .page-header-title{text-transform: ' + dataAndEvents + ";}</style>";2617 if ( $child.length ) {2618 $child.replaceWith( img );2619 } else {2620 $( "head" ).append( img );2621 }2622 } else {2623 $child.remove();2624 }2625 } );2626 } ), api( "page_subheading_typography[font-family]", function( $swipe ) {2627 $swipe.bind( function( pair ) {2628 if ( pair ) {2629 /** @type {string} */2630 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-page_subheading-font-family" );2631 var fontSize = pair.replace( " ", "%20" );2632 fontSize = fontSize.replace( ",", "%2C" );2633 /** @type {string} */2634 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;2635 if ( $( "#" + idfirst ).length ) {2636 $( "#" + idfirst ).attr( "href", fontSize );2637 } else {2638 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );2639 }2640 }2641 var $child = $( ".customizer-typography-page_subheading-font-family" );2642 if ( pair ) {2643 /** @type {string} */2644 var img = '<style class="customizer-typography-page_subheading-font-family">.page-header .page-subheading{font-family: ' + pair + ";}</style>";2645 if ( $child.length ) {2646 $child.replaceWith( img );2647 } else {2648 $( "head" ).append( img );2649 }2650 } else {2651 $child.remove();2652 }2653 } );2654 } ), api( "page_subheading_typography[font-weight]", function( $swipe ) {2655 $swipe.bind( function( dataAndEvents ) {2656 var $child = $( ".customizer-typography-page_subheading-font-weight" );2657 if ( dataAndEvents ) {2658 /** @type {string} */2659 var img = '<style class="customizer-typography-page_subheading-font-weight">.page-header .page-subheading{font-weight: ' + dataAndEvents + ";}</style>";2660 if ( $child.length ) {2661 $child.replaceWith( img );2662 } else {2663 $( "head" ).append( img );2664 }2665 } else {2666 $child.remove();2667 }2668 } );2669 } ), api( "page_subheading_typography[font-style]", function( $swipe ) {2670 $swipe.bind( function( dataAndEvents ) {2671 var $child = $( ".customizer-typography-page_subheading-font-style" );2672 if ( dataAndEvents ) {2673 /** @type {string} */2674 var img = '<style class="customizer-typography-page_subheading-font-style">.page-header .page-subheading{font-style: ' + dataAndEvents + ";}</style>";2675 if ( $child.length ) {2676 $child.replaceWith( img );2677 } else {2678 $( "head" ).append( img );2679 }2680 } else {2681 $child.remove();2682 }2683 } );2684 } ), api( "page_subheading_typography[font-size]", function( $swipe ) {2685 $swipe.bind( function( dataAndEvents ) {2686 var $child = $( ".customizer-typography-page_subheading-font-size" );2687 if ( dataAndEvents ) {2688 /** @type {string} */2689 var img = '<style class="customizer-typography-page_subheading-font-size">.page-header .page-subheading{font-size: ' + dataAndEvents + ";}</style>";2690 if ( $child.length ) {2691 $child.replaceWith( img );2692 } else {2693 $( "head" ).append( img );2694 }2695 } else {2696 $child.remove();2697 }2698 } );2699 } ), api( "page_subheading_tablet_typography[font-size]", function( $swipe ) {2700 $swipe.bind( function( dataAndEvents ) {2701 var $child = $( ".customizer-typography-page_subheading-tablet-font-size" );2702 if ( dataAndEvents ) {2703 /** @type {string} */2704 var img = '<style class="customizer-typography-page_subheading-tablet-font-size">@media (max-width: 768px){.page-header .page-subheading{font-size: ' + dataAndEvents + ";}}</style>";2705 if ( $child.length ) {2706 $child.replaceWith( img );2707 } else {2708 $( "head" ).append( img );2709 }2710 } else {2711 $child.remove();2712 }2713 } );2714 } ), api( "page_subheading_mobile_typography[font-size]", function( $swipe ) {2715 $swipe.bind( function( dataAndEvents ) {2716 var $child = $( ".customizer-typography-page_subheading-mobile-font-size" );2717 if ( dataAndEvents ) {2718 /** @type {string} */2719 var img = '<style class="customizer-typography-page_subheading-mobile-font-size">@media (max-width: 480px){.page-header .page-subheading{font-size: ' + dataAndEvents + ";}}</style>";2720 if ( $child.length ) {2721 $child.replaceWith( img );2722 } else {2723 $( "head" ).append( img );2724 }2725 } else {2726 $child.remove();2727 }2728 } );2729 } ), api( "page_subheading_typography[color]", function( $swipe ) {2730 $swipe.bind( function( dataAndEvents ) {2731 var $child = $( ".customizer-typography-page_subheading-color" );2732 if ( dataAndEvents ) {2733 /** @type {string} */2734 var img = '<style class="customizer-typography-page_subheading-color">.page-header .page-subheading{color: ' + dataAndEvents + ";}</style>";2735 if ( $child.length ) {2736 $child.replaceWith( img );2737 } else {2738 $( "head" ).append( img );2739 }2740 } else {2741 $child.remove();2742 }2743 } );2744 } ), api( "page_subheading_typography[line-height]", function( $swipe ) {2745 $swipe.bind( function( dataAndEvents ) {2746 var $child = $( ".customizer-typography-page_subheading-line-height" );2747 if ( dataAndEvents ) {2748 /** @type {string} */2749 var img = '<style class="customizer-typography-page_subheading-line-height">.page-header .page-subheading{line-height: ' + dataAndEvents + ";}</style>";2750 if ( $child.length ) {2751 $child.replaceWith( img );2752 } else {2753 $( "head" ).append( img );2754 }2755 } else {2756 $child.remove();2757 }2758 } );2759 } ), api( "page_subheading_tablet_typography[line-height]", function( $swipe ) {2760 $swipe.bind( function( dataAndEvents ) {2761 var $child = $( ".customizer-typography-page_subheading-tablet-line-height" );2762 if ( dataAndEvents ) {2763 /** @type {string} */2764 var img = '<style class="customizer-typography-page_subheading-tablet-line-height">@media (max-width: 768px){.page-header .page-subheading{line-height: ' + dataAndEvents + ";}}</style>";2765 if ( $child.length ) {2766 $child.replaceWith( img );2767 } else {2768 $( "head" ).append( img );2769 }2770 } else {2771 $child.remove();2772 }2773 } );2774 } ), api( "page_subheading_mobile_typography[line-height]", function( $swipe ) {2775 $swipe.bind( function( dataAndEvents ) {2776 var $child = $( ".customizer-typography-page_subheading-mobile-line-height" );2777 if ( dataAndEvents ) {2778 /** @type {string} */2779 var img = '<style class="customizer-typography-page_subheading-mobile-line-height">@media (max-width: 480px){.page-header .page-subheading{line-height: ' + dataAndEvents + ";}}</style>";2780 if ( $child.length ) {2781 $child.replaceWith( img );2782 } else {2783 $( "head" ).append( img );2784 }2785 } else {2786 $child.remove();2787 }2788 } );2789 } ), api( "page_subheading_typography[letter-spacing]", function( $swipe ) {2790 $swipe.bind( function( dataAndEvents ) {2791 var $child = $( ".customizer-typography-page_subheading-letter-spacing" );2792 if ( dataAndEvents ) {2793 /** @type {string} */2794 var img = '<style class="customizer-typography-page_subheading-letter-spacing">.page-header .page-subheading{letter-spacing: ' + dataAndEvents + "px;}</style>";2795 if ( $child.length ) {2796 $child.replaceWith( img );2797 } else {2798 $( "head" ).append( img );2799 }2800 } else {2801 $child.remove();2802 }2803 } );2804 } ), api( "page_subheading_tablet_typography[letter-spacing]", function( $swipe ) {2805 $swipe.bind( function( dataAndEvents ) {2806 var $child = $( ".customizer-typography-page_subheading-tablet-letter-spacing" );2807 if ( dataAndEvents ) {2808 /** @type {string} */2809 var img = '<style class="customizer-typography-page_subheading-tablet-letter-spacing">@media (max-width: 768px){.page-header .page-subheading{letter-spacing: ' + dataAndEvents + "px;}}</style>";2810 if ( $child.length ) {2811 $child.replaceWith( img );2812 } else {2813 $( "head" ).append( img );2814 }2815 } else {2816 $child.remove();2817 }2818 } );2819 } ), api( "page_subheading_mobile_typography[letter-spacing]", function( $swipe ) {2820 $swipe.bind( function( dataAndEvents ) {2821 var $child = $( ".customizer-typography-page_subheading-mobile-letter-spacing" );2822 if ( dataAndEvents ) {2823 /** @type {string} */2824 var img = '<style class="customizer-typography-page_subheading-mobile-letter-spacing">@media (max-width: 480px){.page-header .page-subheading{letter-spacing: ' + dataAndEvents + "px;}}</style>";2825 if ( $child.length ) {2826 $child.replaceWith( img );2827 } else {2828 $( "head" ).append( img );2829 }2830 } else {2831 $child.remove();2832 }2833 } );2834 } ), api( "page_subheading_typography[text-transform]", function( $swipe ) {2835 $swipe.bind( function( dataAndEvents ) {2836 var $child = $( ".customizer-typography-page_subheading-text-transform" );2837 if ( dataAndEvents ) {2838 /** @type {string} */2839 var img = '<style class="customizer-typography-page_subheading-text-transform">.page-header .page-subheading{text-transform: ' + dataAndEvents + ";}</style>";2840 if ( $child.length ) {2841 $child.replaceWith( img );2842 } else {2843 $( "head" ).append( img );2844 }2845 } else {2846 $child.remove();2847 }2848 } );2849 } ), api( "breadcrumbs_typography[font-family]", function( $swipe ) {2850 $swipe.bind( function( pair ) {2851 if ( pair ) {2852 /** @type {string} */2853 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-breadcrumbs-font-family" );2854 var fontSize = pair.replace( " ", "%20" );2855 fontSize = fontSize.replace( ",", "%2C" );2856 /** @type {string} */2857 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;2858 if ( $( "#" + idfirst ).length ) {2859 $( "#" + idfirst ).attr( "href", fontSize );2860 } else {2861 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );2862 }2863 }2864 var $child = $( ".customizer-typography-breadcrumbs-font-family" );2865 if ( pair ) {2866 /** @type {string} */2867 var img = '<style class="customizer-typography-breadcrumbs-font-family">.site-breadcrumbs{font-family: ' + pair + ";}</style>";2868 if ( $child.length ) {2869 $child.replaceWith( img );2870 } else {2871 $( "head" ).append( img );2872 }2873 } else {2874 $child.remove();2875 }2876 } );2877 } ), api( "breadcrumbs_typography[font-weight]", function( $swipe ) {2878 $swipe.bind( function( dataAndEvents ) {2879 var $child = $( ".customizer-typography-breadcrumbs-font-weight" );2880 if ( dataAndEvents ) {2881 /** @type {string} */2882 var img = '<style class="customizer-typography-breadcrumbs-font-weight">.site-breadcrumbs{font-weight: ' + dataAndEvents + ";}</style>";2883 if ( $child.length ) {2884 $child.replaceWith( img );2885 } else {2886 $( "head" ).append( img );2887 }2888 } else {2889 $child.remove();2890 }2891 } );2892 } ), api( "breadcrumbs_typography[font-style]", function( $swipe ) {2893 $swipe.bind( function( dataAndEvents ) {2894 var $child = $( ".customizer-typography-breadcrumbs-font-style" );2895 if ( dataAndEvents ) {2896 /** @type {string} */2897 var img = '<style class="customizer-typography-breadcrumbs-font-style">.site-breadcrumbs{font-style: ' + dataAndEvents + ";}</style>";2898 if ( $child.length ) {2899 $child.replaceWith( img );2900 } else {2901 $( "head" ).append( img );2902 }2903 } else {2904 $child.remove();2905 }2906 } );2907 } ), api( "breadcrumbs_typography[font-size]", function( $swipe ) {2908 $swipe.bind( function( dataAndEvents ) {2909 var $child = $( ".customizer-typography-breadcrumbs-font-size" );2910 if ( dataAndEvents ) {2911 /** @type {string} */2912 var img = '<style class="customizer-typography-breadcrumbs-font-size">.site-breadcrumbs{font-size: ' + dataAndEvents + ";}</style>";2913 if ( $child.length ) {2914 $child.replaceWith( img );2915 } else {2916 $( "head" ).append( img );2917 }2918 } else {2919 $child.remove();2920 }2921 } );2922 } ), api( "breadcrumbs_tablet_typography[font-size]", function( $swipe ) {2923 $swipe.bind( function( dataAndEvents ) {2924 var $child = $( ".customizer-typography-breadcrumbs-tablet-font-size" );2925 if ( dataAndEvents ) {2926 /** @type {string} */2927 var img = '<style class="customizer-typography-breadcrumbs-tablet-font-size">@media (max-width: 768px){.site-breadcrumbs{font-size: ' + dataAndEvents + ";}}</style>";2928 if ( $child.length ) {2929 $child.replaceWith( img );2930 } else {2931 $( "head" ).append( img );2932 }2933 } else {2934 $child.remove();2935 }2936 } );2937 } ), api( "breadcrumbs_mobile_typography[font-size]", function( $swipe ) {2938 $swipe.bind( function( dataAndEvents ) {2939 var $child = $( ".customizer-typography-breadcrumbs-mobile-font-size" );2940 if ( dataAndEvents ) {2941 /** @type {string} */2942 var img = '<style class="customizer-typography-breadcrumbs-mobile-font-size">@media (max-width: 480px){.site-breadcrumbs{font-size: ' + dataAndEvents + ";}}</style>";2943 if ( $child.length ) {2944 $child.replaceWith( img );2945 } else {2946 $( "head" ).append( img );2947 }2948 } else {2949 $child.remove();2950 }2951 } );2952 } ), api( "breadcrumbs_typography[color]", function( $swipe ) {2953 $swipe.bind( function( dataAndEvents ) {2954 var $child = $( ".customizer-typography-breadcrumbs-color" );2955 if ( dataAndEvents ) {2956 /** @type {string} */2957 var img = '<style class="customizer-typography-breadcrumbs-color">.site-breadcrumbs{color: ' + dataAndEvents + ";}</style>";2958 if ( $child.length ) {2959 $child.replaceWith( img );2960 } else {2961 $( "head" ).append( img );2962 }2963 } else {2964 $child.remove();2965 }2966 } );2967 } ), api( "breadcrumbs_typography[line-height]", function( $swipe ) {2968 $swipe.bind( function( dataAndEvents ) {2969 var $child = $( ".customizer-typography-breadcrumbs-line-height" );2970 if ( dataAndEvents ) {2971 /** @type {string} */2972 var img = '<style class="customizer-typography-breadcrumbs-line-height">.site-breadcrumbs{line-height: ' + dataAndEvents + ";}</style>";2973 if ( $child.length ) {2974 $child.replaceWith( img );2975 } else {2976 $( "head" ).append( img );2977 }2978 } else {2979 $child.remove();2980 }2981 } );2982 } ), api( "breadcrumbs_tablet_typography[line-height]", function( $swipe ) {2983 $swipe.bind( function( dataAndEvents ) {2984 var $child = $( ".customizer-typography-breadcrumbs-tablet-line-height" );2985 if ( dataAndEvents ) {2986 /** @type {string} */2987 var img = '<style class="customizer-typography-breadcrumbs-tablet-line-height">@media (max-width: 768px){.site-breadcrumbs{line-height: ' + dataAndEvents + ";}}</style>";2988 if ( $child.length ) {2989 $child.replaceWith( img );2990 } else {2991 $( "head" ).append( img );2992 }2993 } else {2994 $child.remove();2995 }2996 } );2997 } ), api( "breadcrumbs_mobile_typography[line-height]", function( $swipe ) {2998 $swipe.bind( function( dataAndEvents ) {2999 var $child = $( ".customizer-typography-breadcrumbs-mobile-line-height" );3000 if ( dataAndEvents ) {3001 /** @type {string} */3002 var img = '<style class="customizer-typography-breadcrumbs-mobile-line-height">@media (max-width: 480px){.site-breadcrumbs{line-height: ' + dataAndEvents + ";}}</style>";3003 if ( $child.length ) {3004 $child.replaceWith( img );3005 } else {3006 $( "head" ).append( img );3007 }3008 } else {3009 $child.remove();3010 }3011 } );3012 } ), api( "breadcrumbs_typography[letter-spacing]", function( $swipe ) {3013 $swipe.bind( function( dataAndEvents ) {3014 var $child = $( ".customizer-typography-breadcrumbs-letter-spacing" );3015 if ( dataAndEvents ) {3016 /** @type {string} */3017 var img = '<style class="customizer-typography-breadcrumbs-letter-spacing">.site-breadcrumbs{letter-spacing: ' + dataAndEvents + "px;}</style>";3018 if ( $child.length ) {3019 $child.replaceWith( img );3020 } else {3021 $( "head" ).append( img );3022 }3023 } else {3024 $child.remove();3025 }3026 } );3027 } ), api( "breadcrumbs_tablet_typography[letter-spacing]", function( $swipe ) {3028 $swipe.bind( function( dataAndEvents ) {3029 var $child = $( ".customizer-typography-breadcrumbs-tablet-letter-spacing" );3030 if ( dataAndEvents ) {3031 /** @type {string} */3032 var img = '<style class="customizer-typography-breadcrumbs-tablet-letter-spacing">@media (max-width: 768px){.site-breadcrumbs{letter-spacing: ' + dataAndEvents + "px;}}</style>";3033 if ( $child.length ) {3034 $child.replaceWith( img );3035 } else {3036 $( "head" ).append( img );3037 }3038 } else {3039 $child.remove();3040 }3041 } );3042 } ), api( "breadcrumbs_mobile_typography[letter-spacing]", function( $swipe ) {3043 $swipe.bind( function( dataAndEvents ) {3044 var $child = $( ".customizer-typography-breadcrumbs-mobile-letter-spacing" );3045 if ( dataAndEvents ) {3046 /** @type {string} */3047 var img = '<style class="customizer-typography-breadcrumbs-mobile-letter-spacing">@media (max-width: 480px){.site-breadcrumbs{letter-spacing: ' + dataAndEvents + "px;}}</style>";3048 if ( $child.length ) {3049 $child.replaceWith( img );3050 } else {3051 $( "head" ).append( img );3052 }3053 } else {3054 $child.remove();3055 }3056 } );3057 } ), api( "breadcrumbs_typography[text-transform]", function( $swipe ) {3058 $swipe.bind( function( dataAndEvents ) {3059 var $child = $( ".customizer-typography-breadcrumbs-text-transform" );3060 if ( dataAndEvents ) {3061 /** @type {string} */3062 var img = '<style class="customizer-typography-breadcrumbs-text-transform">.site-breadcrumbs{text-transform: ' + dataAndEvents + ";}</style>";3063 if ( $child.length ) {3064 $child.replaceWith( img );3065 } else {3066 $( "head" ).append( img );3067 }3068 } else {3069 $child.remove();3070 }3071 } );3072 } ), api( "blog_entry_title_typography[font-family]", function( $swipe ) {3073 $swipe.bind( function( pair ) {3074 if ( pair ) {3075 /** @type {string} */3076 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-blog_entry_title-font-family" );3077 var fontSize = pair.replace( " ", "%20" );3078 fontSize = fontSize.replace( ",", "%2C" );3079 /** @type {string} */3080 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;3081 if ( $( "#" + idfirst ).length ) {3082 $( "#" + idfirst ).attr( "href", fontSize );3083 } else {3084 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );3085 }3086 }3087 var $child = $( ".customizer-typography-blog_entry_title-font-family" );3088 if ( pair ) {3089 /** @type {string} */3090 var img = '<style class="customizer-typography-blog_entry_title-font-family">#blog-entries .post .blog-entry-header .entry-title a{font-family: ' + pair + ";}</style>";3091 if ( $child.length ) {3092 $child.replaceWith( img );3093 } else {3094 $( "head" ).append( img );3095 }3096 } else {3097 $child.remove();3098 }3099 } );3100 } ), api( "blog_entry_title_typography[font-weight]", function( $swipe ) {3101 $swipe.bind( function( dataAndEvents ) {3102 var $child = $( ".customizer-typography-blog_entry_title-font-weight" );3103 if ( dataAndEvents ) {3104 /** @type {string} */3105 var img = '<style class="customizer-typography-blog_entry_title-font-weight">#blog-entries .post .blog-entry-header .entry-title a{font-weight: ' + dataAndEvents + ";}</style>";3106 if ( $child.length ) {3107 $child.replaceWith( img );3108 } else {3109 $( "head" ).append( img );3110 }3111 } else {3112 $child.remove();3113 }3114 } );3115 } ), api( "blog_entry_title_typography[font-style]", function( $swipe ) {3116 $swipe.bind( function( dataAndEvents ) {3117 var $child = $( ".customizer-typography-blog_entry_title-font-style" );3118 if ( dataAndEvents ) {3119 /** @type {string} */3120 var img = '<style class="customizer-typography-blog_entry_title-font-style">#blog-entries .post .blog-entry-header .entry-title a{font-style: ' + dataAndEvents + ";}</style>";3121 if ( $child.length ) {3122 $child.replaceWith( img );3123 } else {3124 $( "head" ).append( img );3125 }3126 } else {3127 $child.remove();3128 }3129 } );3130 } ), api( "blog_entry_title_typography[font-size]", function( $swipe ) {3131 $swipe.bind( function( dataAndEvents ) {3132 var $child = $( ".customizer-typography-blog_entry_title-font-size" );3133 if ( dataAndEvents ) {3134 /** @type {string} */3135 var img = '<style class="customizer-typography-blog_entry_title-font-size">#blog-entries .post .blog-entry-header .entry-title a{font-size: ' + dataAndEvents + ";}</style>";3136 if ( $child.length ) {3137 $child.replaceWith( img );3138 } else {3139 $( "head" ).append( img );3140 }3141 } else {3142 $child.remove();3143 }3144 } );3145 } ), api( "blog_entry_title_tablet_typography[font-size]", function( $swipe ) {3146 $swipe.bind( function( dataAndEvents ) {3147 var $child = $( ".customizer-typography-blog_entry_title-tablet-font-size" );3148 if ( dataAndEvents ) {3149 /** @type {string} */3150 var img = '<style class="customizer-typography-blog_entry_title-tablet-font-size">@media (max-width: 768px){#blog-entries .post .blog-entry-header .entry-title a{font-size: ' + dataAndEvents + ";}}</style>";3151 if ( $child.length ) {3152 $child.replaceWith( img );3153 } else {3154 $( "head" ).append( img );3155 }3156 } else {3157 $child.remove();3158 }3159 } );3160 } ), api( "blog_entry_title_mobile_typography[font-size]", function( $swipe ) {3161 $swipe.bind( function( dataAndEvents ) {3162 var $child = $( ".customizer-typography-blog_entry_title-mobile-font-size" );3163 if ( dataAndEvents ) {3164 /** @type {string} */3165 var img = '<style class="customizer-typography-blog_entry_title-mobile-font-size">@media (max-width: 480px){#blog-entries .post .blog-entry-header .entry-title a{font-size: ' + dataAndEvents + ";}}</style>";3166 if ( $child.length ) {3167 $child.replaceWith( img );3168 } else {3169 $( "head" ).append( img );3170 }3171 } else {3172 $child.remove();3173 }3174 } );3175 } ), api( "blog_entry_title_typography[color]", function( $swipe ) {3176 $swipe.bind( function( dataAndEvents ) {3177 var $child = $( ".customizer-typography-blog_entry_title-color" );3178 if ( dataAndEvents ) {3179 /** @type {string} */3180 var img = '<style class="customizer-typography-blog_entry_title-color">#blog-entries .post .blog-entry-header .entry-title a{color: ' + dataAndEvents + ";}</style>";3181 if ( $child.length ) {3182 $child.replaceWith( img );3183 } else {3184 $( "head" ).append( img );3185 }3186 } else {3187 $child.remove();3188 }3189 } );3190 } ), api( "blog_entry_title_typography[line-height]", function( $swipe ) {3191 $swipe.bind( function( dataAndEvents ) {3192 var $child = $( ".customizer-typography-blog_entry_title-line-height" );3193 if ( dataAndEvents ) {3194 /** @type {string} */3195 var img = '<style class="customizer-typography-blog_entry_title-line-height">#blog-entries .post .blog-entry-header .entry-title a{line-height: ' + dataAndEvents + ";}</style>";3196 if ( $child.length ) {3197 $child.replaceWith( img );3198 } else {3199 $( "head" ).append( img );3200 }3201 } else {3202 $child.remove();3203 }3204 } );3205 } ), api( "blog_entry_title_tablet_typography[line-height]", function( $swipe ) {3206 $swipe.bind( function( dataAndEvents ) {3207 var $child = $( ".customizer-typography-blog_entry_title-tablet-line-height" );3208 if ( dataAndEvents ) {3209 /** @type {string} */3210 var img = '<style class="customizer-typography-blog_entry_title-tablet-line-height">@media (max-width: 768px){#blog-entries .post .blog-entry-header .entry-title a{line-height: ' + dataAndEvents + ";}}</style>";3211 if ( $child.length ) {3212 $child.replaceWith( img );3213 } else {3214 $( "head" ).append( img );3215 }3216 } else {3217 $child.remove();3218 }3219 } );3220 } ), api( "blog_entry_title_mobile_typography[line-height]", function( $swipe ) {3221 $swipe.bind( function( dataAndEvents ) {3222 var $child = $( ".customizer-typography-blog_entry_title-mobile-line-height" );3223 if ( dataAndEvents ) {3224 /** @type {string} */3225 var img = '<style class="customizer-typography-blog_entry_title-mobile-line-height">@media (max-width: 480px){#blog-entries .post .blog-entry-header .entry-title a{line-height: ' + dataAndEvents + ";}}</style>";3226 if ( $child.length ) {3227 $child.replaceWith( img );3228 } else {3229 $( "head" ).append( img );3230 }3231 } else {3232 $child.remove();3233 }3234 } );3235 } ), api( "blog_entry_title_typography[letter-spacing]", function( $swipe ) {3236 $swipe.bind( function( dataAndEvents ) {3237 var $child = $( ".customizer-typography-blog_entry_title-letter-spacing" );3238 if ( dataAndEvents ) {3239 /** @type {string} */3240 var img = '<style class="customizer-typography-blog_entry_title-letter-spacing">#blog-entries .post .blog-entry-header .entry-title a{letter-spacing: ' + dataAndEvents + "px;}</style>";3241 if ( $child.length ) {3242 $child.replaceWith( img );3243 } else {3244 $( "head" ).append( img );3245 }3246 } else {3247 $child.remove();3248 }3249 } );3250 } ), api( "blog_entry_title_tablet_typography[letter-spacing]", function( $swipe ) {3251 $swipe.bind( function( dataAndEvents ) {3252 var $child = $( ".customizer-typography-blog_entry_title-tablet-letter-spacing" );3253 if ( dataAndEvents ) {3254 /** @type {string} */3255 var img = '<style class="customizer-typography-blog_entry_title-tablet-letter-spacing">@media (max-width: 768px){#blog-entries .post .blog-entry-header .entry-title a{letter-spacing: ' + dataAndEvents + "px;}}</style>";3256 if ( $child.length ) {3257 $child.replaceWith( img );3258 } else {3259 $( "head" ).append( img );3260 }3261 } else {3262 $child.remove();3263 }3264 } );3265 } ), api( "blog_entry_title_mobile_typography[letter-spacing]", function( $swipe ) {3266 $swipe.bind( function( dataAndEvents ) {3267 var $child = $( ".customizer-typography-blog_entry_title-mobile-letter-spacing" );3268 if ( dataAndEvents ) {3269 /** @type {string} */3270 var img = '<style class="customizer-typography-blog_entry_title-mobile-letter-spacing">@media (max-width: 480px){#blog-entries .post .blog-entry-header .entry-title a{letter-spacing: ' + dataAndEvents + "px;}}</style>";3271 if ( $child.length ) {3272 $child.replaceWith( img );3273 } else {3274 $( "head" ).append( img );3275 }3276 } else {3277 $child.remove();3278 }3279 } );3280 } ), api( "blog_entry_title_typography[text-transform]", function( $swipe ) {3281 $swipe.bind( function( dataAndEvents ) {3282 var $child = $( ".customizer-typography-blog_entry_title-text-transform" );3283 if ( dataAndEvents ) {3284 /** @type {string} */3285 var img = '<style class="customizer-typography-blog_entry_title-text-transform">#blog-entries .post .blog-entry-header .entry-title a{text-transform: ' + dataAndEvents + ";}</style>";3286 if ( $child.length ) {3287 $child.replaceWith( img );3288 } else {3289 $( "head" ).append( img );3290 }3291 } else {3292 $child.remove();3293 }3294 } );3295 } ), api( "blog_post_title_typography[font-family]", function( $swipe ) {3296 $swipe.bind( function( pair ) {3297 if ( pair ) {3298 /** @type {string} */3299 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-blog_post_title-font-family" );3300 var fontSize = pair.replace( " ", "%20" );3301 fontSize = fontSize.replace( ",", "%2C" );3302 /** @type {string} */3303 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;3304 if ( $( "#" + idfirst ).length ) {3305 $( "#" + idfirst ).attr( "href", fontSize );3306 } else {3307 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );3308 }3309 }3310 var $child = $( ".customizer-typography-blog_post_title-font-family" );3311 if ( pair ) {3312 /** @type {string} */3313 var img = '<style class="customizer-typography-blog_post_title-font-family">.single-post .entry-title{font-family: ' + pair + ";}</style>";3314 if ( $child.length ) {3315 $child.replaceWith( img );3316 } else {3317 $( "head" ).append( img );3318 }3319 } else {3320 $child.remove();3321 }3322 } );3323 } ), api( "blog_post_title_typography[font-weight]", function( $swipe ) {3324 $swipe.bind( function( dataAndEvents ) {3325 var $child = $( ".customizer-typography-blog_post_title-font-weight" );3326 if ( dataAndEvents ) {3327 /** @type {string} */3328 var img = '<style class="customizer-typography-blog_post_title-font-weight">.single-post .entry-title{font-weight: ' + dataAndEvents + ";}</style>";3329 if ( $child.length ) {3330 $child.replaceWith( img );3331 } else {3332 $( "head" ).append( img );3333 }3334 } else {3335 $child.remove();3336 }3337 } );3338 } ), api( "blog_post_title_typography[font-style]", function( $swipe ) {3339 $swipe.bind( function( dataAndEvents ) {3340 var $child = $( ".customizer-typography-blog_post_title-font-style" );3341 if ( dataAndEvents ) {3342 /** @type {string} */3343 var img = '<style class="customizer-typography-blog_post_title-font-style">.single-post .entry-title{font-style: ' + dataAndEvents + ";}</style>";3344 if ( $child.length ) {3345 $child.replaceWith( img );3346 } else {3347 $( "head" ).append( img );3348 }3349 } else {3350 $child.remove();3351 }3352 } );3353 } ), api( "blog_post_title_typography[font-size]", function( $swipe ) {3354 $swipe.bind( function( dataAndEvents ) {3355 var $child = $( ".customizer-typography-blog_post_title-font-size" );3356 if ( dataAndEvents ) {3357 /** @type {string} */3358 var img = '<style class="customizer-typography-blog_post_title-font-size">.single-post .entry-title{font-size: ' + dataAndEvents + ";}</style>";3359 if ( $child.length ) {3360 $child.replaceWith( img );3361 } else {3362 $( "head" ).append( img );3363 }3364 } else {3365 $child.remove();3366 }3367 } );3368 } ), api( "blog_post_title_tablet_typography[font-size]", function( $swipe ) {3369 $swipe.bind( function( dataAndEvents ) {3370 var $child = $( ".customizer-typography-blog_post_title-tablet-font-size" );3371 if ( dataAndEvents ) {3372 /** @type {string} */3373 var img = '<style class="customizer-typography-blog_post_title-tablet-font-size">@media (max-width: 768px){.single-post .entry-title{font-size: ' + dataAndEvents + ";}}</style>";3374 if ( $child.length ) {3375 $child.replaceWith( img );3376 } else {3377 $( "head" ).append( img );3378 }3379 } else {3380 $child.remove();3381 }3382 } );3383 } ), api( "blog_post_title_mobile_typography[font-size]", function( $swipe ) {3384 $swipe.bind( function( dataAndEvents ) {3385 var $child = $( ".customizer-typography-blog_post_title-mobile-font-size" );3386 if ( dataAndEvents ) {3387 /** @type {string} */3388 var img = '<style class="customizer-typography-blog_post_title-mobile-font-size">@media (max-width: 480px){.single-post .entry-title{font-size: ' + dataAndEvents + ";}}</style>";3389 if ( $child.length ) {3390 $child.replaceWith( img );3391 } else {3392 $( "head" ).append( img );3393 }3394 } else {3395 $child.remove();3396 }3397 } );3398 } ), api( "blog_post_title_typography[color]", function( $swipe ) {3399 $swipe.bind( function( dataAndEvents ) {3400 var $child = $( ".customizer-typography-blog_post_title-color" );3401 if ( dataAndEvents ) {3402 /** @type {string} */3403 var img = '<style class="customizer-typography-blog_post_title-color">.single-post .entry-title{color: ' + dataAndEvents + ";}</style>";3404 if ( $child.length ) {3405 $child.replaceWith( img );3406 } else {3407 $( "head" ).append( img );3408 }3409 } else {3410 $child.remove();3411 }3412 } );3413 } ), api( "blog_post_title_typography[line-height]", function( $swipe ) {3414 $swipe.bind( function( dataAndEvents ) {3415 var $child = $( ".customizer-typography-blog_post_title-line-height" );3416 if ( dataAndEvents ) {3417 /** @type {string} */3418 var img = '<style class="customizer-typography-blog_post_title-line-height">.single-post .entry-title{line-height: ' + dataAndEvents + ";}</style>";3419 if ( $child.length ) {3420 $child.replaceWith( img );3421 } else {3422 $( "head" ).append( img );3423 }3424 } else {3425 $child.remove();3426 }3427 } );3428 } ), api( "blog_post_title_tablet_typography[line-height]", function( $swipe ) {3429 $swipe.bind( function( dataAndEvents ) {3430 var $child = $( ".customizer-typography-blog_post_title-tablet-line-height" );3431 if ( dataAndEvents ) {3432 /** @type {string} */3433 var img = '<style class="customizer-typography-blog_post_title-tablet-line-height">@media (max-width: 768px){.single-post .entry-title{line-height: ' + dataAndEvents + ";}}</style>";3434 if ( $child.length ) {3435 $child.replaceWith( img );3436 } else {3437 $( "head" ).append( img );3438 }3439 } else {3440 $child.remove();3441 }3442 } );3443 } ), api( "blog_post_title_mobile_typography[line-height]", function( $swipe ) {3444 $swipe.bind( function( dataAndEvents ) {3445 var $child = $( ".customizer-typography-blog_post_title-mobile-line-height" );3446 if ( dataAndEvents ) {3447 /** @type {string} */3448 var img = '<style class="customizer-typography-blog_post_title-mobile-line-height">@media (max-width: 480px){.single-post .entry-title{line-height: ' + dataAndEvents + ";}}</style>";3449 if ( $child.length ) {3450 $child.replaceWith( img );3451 } else {3452 $( "head" ).append( img );3453 }3454 } else {3455 $child.remove();3456 }3457 } );3458 } ), api( "blog_post_title_typography[letter-spacing]", function( $swipe ) {3459 $swipe.bind( function( dataAndEvents ) {3460 var $child = $( ".customizer-typography-blog_post_title-letter-spacing" );3461 if ( dataAndEvents ) {3462 /** @type {string} */3463 var img = '<style class="customizer-typography-blog_post_title-letter-spacing">.single-post .entry-title{letter-spacing: ' + dataAndEvents + "px;}</style>";3464 if ( $child.length ) {3465 $child.replaceWith( img );3466 } else {3467 $( "head" ).append( img );3468 }3469 } else {3470 $child.remove();3471 }3472 } );3473 } ), api( "blog_post_title_tablet_typography[letter-spacing]", function( $swipe ) {3474 $swipe.bind( function( dataAndEvents ) {3475 var $child = $( ".customizer-typography-blog_post_title-tablet-letter-spacing" );3476 if ( dataAndEvents ) {3477 /** @type {string} */3478 var img = '<style class="customizer-typography-blog_post_title-tablet-letter-spacing">@media (max-width: 768px){.single-post .entry-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";3479 if ( $child.length ) {3480 $child.replaceWith( img );3481 } else {3482 $( "head" ).append( img );3483 }3484 } else {3485 $child.remove();3486 }3487 } );3488 } ), api( "blog_post_title_mobile_typography[letter-spacing]", function( $swipe ) {3489 $swipe.bind( function( dataAndEvents ) {3490 var $child = $( ".customizer-typography-blog_post_title-mobile-letter-spacing" );3491 if ( dataAndEvents ) {3492 /** @type {string} */3493 var img = '<style class="customizer-typography-blog_post_title-mobile-letter-spacing">@media (max-width: 480px){.single-post .entry-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";3494 if ( $child.length ) {3495 $child.replaceWith( img );3496 } else {3497 $( "head" ).append( img );3498 }3499 } else {3500 $child.remove();3501 }3502 } );3503 } ), api( "blog_post_title_typography[text-transform]", function( $swipe ) {3504 $swipe.bind( function( dataAndEvents ) {3505 var $child = $( ".customizer-typography-blog_post_title-text-transform" );3506 if ( dataAndEvents ) {3507 /** @type {string} */3508 var img = '<style class="customizer-typography-blog_post_title-text-transform">.single-post .entry-title{text-transform: ' + dataAndEvents + ";}</style>";3509 if ( $child.length ) {3510 $child.replaceWith( img );3511 } else {3512 $( "head" ).append( img );3513 }3514 } else {3515 $child.remove();3516 }3517 } );3518 } ), api( "sidebar_widget_title_typography[font-family]", function( $swipe ) {3519 $swipe.bind( function( pair ) {3520 if ( pair ) {3521 /** @type {string} */3522 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-sidebar_widget_title-font-family" );3523 var fontSize = pair.replace( " ", "%20" );3524 fontSize = fontSize.replace( ",", "%2C" );3525 /** @type {string} */3526 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;3527 if ( $( "#" + idfirst ).length ) {3528 $( "#" + idfirst ).attr( "href", fontSize );3529 } else {3530 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );3531 }3532 }3533 var $child = $( ".customizer-typography-sidebar_widget_title-font-family" );3534 if ( pair ) {3535 /** @type {string} */3536 var img = '<style class="customizer-typography-sidebar_widget_title-font-family">.sidebar-box .widget-title{font-family: ' + pair + ";}</style>";3537 if ( $child.length ) {3538 $child.replaceWith( img );3539 } else {3540 $( "head" ).append( img );3541 }3542 } else {3543 $child.remove();3544 }3545 } );3546 } ), api( "sidebar_widget_title_typography[font-weight]", function( $swipe ) {3547 $swipe.bind( function( dataAndEvents ) {3548 var $child = $( ".customizer-typography-sidebar_widget_title-font-weight" );3549 if ( dataAndEvents ) {3550 /** @type {string} */3551 var img = '<style class="customizer-typography-sidebar_widget_title-font-weight">.sidebar-box .widget-title{font-weight: ' + dataAndEvents + ";}</style>";3552 if ( $child.length ) {3553 $child.replaceWith( img );3554 } else {3555 $( "head" ).append( img );3556 }3557 } else {3558 $child.remove();3559 }3560 } );3561 } ), api( "sidebar_widget_title_typography[font-style]", function( $swipe ) {3562 $swipe.bind( function( dataAndEvents ) {3563 var $child = $( ".customizer-typography-sidebar_widget_title-font-style" );3564 if ( dataAndEvents ) {3565 /** @type {string} */3566 var img = '<style class="customizer-typography-sidebar_widget_title-font-style">.sidebar-box .widget-title{font-style: ' + dataAndEvents + ";}</style>";3567 if ( $child.length ) {3568 $child.replaceWith( img );3569 } else {3570 $( "head" ).append( img );3571 }3572 } else {3573 $child.remove();3574 }3575 } );3576 } ), api( "sidebar_widget_title_typography[font-size]", function( $swipe ) {3577 $swipe.bind( function( dataAndEvents ) {3578 var $child = $( ".customizer-typography-sidebar_widget_title-font-size" );3579 if ( dataAndEvents ) {3580 /** @type {string} */3581 var img = '<style class="customizer-typography-sidebar_widget_title-font-size">.sidebar-box .widget-title{font-size: ' + dataAndEvents + ";}</style>";3582 if ( $child.length ) {3583 $child.replaceWith( img );3584 } else {3585 $( "head" ).append( img );3586 }3587 } else {3588 $child.remove();3589 }3590 } );3591 } ), api( "sidebar_widget_title_tablet_typography[font-size]", function( $swipe ) {3592 $swipe.bind( function( dataAndEvents ) {3593 var $child = $( ".customizer-typography-sidebar_widget_title-tablet-font-size" );3594 if ( dataAndEvents ) {3595 /** @type {string} */3596 var img = '<style class="customizer-typography-sidebar_widget_title-tablet-font-size">@media (max-width: 768px){.sidebar-box .widget-title{font-size: ' + dataAndEvents + ";}}</style>";3597 if ( $child.length ) {3598 $child.replaceWith( img );3599 } else {3600 $( "head" ).append( img );3601 }3602 } else {3603 $child.remove();3604 }3605 } );3606 } ), api( "sidebar_widget_title_mobile_typography[font-size]", function( $swipe ) {3607 $swipe.bind( function( dataAndEvents ) {3608 var $child = $( ".customizer-typography-sidebar_widget_title-mobile-font-size" );3609 if ( dataAndEvents ) {3610 /** @type {string} */3611 var img = '<style class="customizer-typography-sidebar_widget_title-mobile-font-size">@media (max-width: 480px){.sidebar-box .widget-title{font-size: ' + dataAndEvents + ";}}</style>";3612 if ( $child.length ) {3613 $child.replaceWith( img );3614 } else {3615 $( "head" ).append( img );3616 }3617 } else {3618 $child.remove();3619 }3620 } );3621 } ), api( "sidebar_widget_title_typography[color]", function( $swipe ) {3622 $swipe.bind( function( dataAndEvents ) {3623 var $child = $( ".customizer-typography-sidebar_widget_title-color" );3624 if ( dataAndEvents ) {3625 /** @type {string} */3626 var img = '<style class="customizer-typography-sidebar_widget_title-color">.sidebar-box .widget-title{color: ' + dataAndEvents + ";}</style>";3627 if ( $child.length ) {3628 $child.replaceWith( img );3629 } else {3630 $( "head" ).append( img );3631 }3632 } else {3633 $child.remove();3634 }3635 } );3636 } ), api( "sidebar_widget_title_typography[line-height]", function( $swipe ) {3637 $swipe.bind( function( dataAndEvents ) {3638 var $child = $( ".customizer-typography-sidebar_widget_title-line-height" );3639 if ( dataAndEvents ) {3640 /** @type {string} */3641 var img = '<style class="customizer-typography-sidebar_widget_title-line-height">.sidebar-box .widget-title{line-height: ' + dataAndEvents + ";}</style>";3642 if ( $child.length ) {3643 $child.replaceWith( img );3644 } else {3645 $( "head" ).append( img );3646 }3647 } else {3648 $child.remove();3649 }3650 } );3651 } ), api( "sidebar_widget_title_tablet_typography[line-height]", function( $swipe ) {3652 $swipe.bind( function( dataAndEvents ) {3653 var $child = $( ".customizer-typography-sidebar_widget_title-tablet-line-height" );3654 if ( dataAndEvents ) {3655 /** @type {string} */3656 var img = '<style class="customizer-typography-sidebar_widget_title-tablet-line-height">@media (max-width: 768px){.sidebar-box .widget-title{line-height: ' + dataAndEvents + ";}}</style>";3657 if ( $child.length ) {3658 $child.replaceWith( img );3659 } else {3660 $( "head" ).append( img );3661 }3662 } else {3663 $child.remove();3664 }3665 } );3666 } ), api( "sidebar_widget_title_mobile_typography[line-height]", function( $swipe ) {3667 $swipe.bind( function( dataAndEvents ) {3668 var $child = $( ".customizer-typography-sidebar_widget_title-mobile-line-height" );3669 if ( dataAndEvents ) {3670 /** @type {string} */3671 var img = '<style class="customizer-typography-sidebar_widget_title-mobile-line-height">@media (max-width: 480px){.sidebar-box .widget-title{line-height: ' + dataAndEvents + ";}}</style>";3672 if ( $child.length ) {3673 $child.replaceWith( img );3674 } else {3675 $( "head" ).append( img );3676 }3677 } else {3678 $child.remove();3679 }3680 } );3681 } ), api( "sidebar_widget_title_typography[letter-spacing]", function( $swipe ) {3682 $swipe.bind( function( dataAndEvents ) {3683 var $child = $( ".customizer-typography-sidebar_widget_title-letter-spacing" );3684 if ( dataAndEvents ) {3685 /** @type {string} */3686 var img = '<style class="customizer-typography-sidebar_widget_title-letter-spacing">.sidebar-box .widget-title{letter-spacing: ' + dataAndEvents + "px;}</style>";3687 if ( $child.length ) {3688 $child.replaceWith( img );3689 } else {3690 $( "head" ).append( img );3691 }3692 } else {3693 $child.remove();3694 }3695 } );3696 } ), api( "sidebar_widget_title_tablet_typography[letter-spacing]", function( $swipe ) {3697 $swipe.bind( function( dataAndEvents ) {3698 var $child = $( ".customizer-typography-sidebar_widget_title-tablet-letter-spacing" );3699 if ( dataAndEvents ) {3700 /** @type {string} */3701 var img = '<style class="customizer-typography-sidebar_widget_title-tablet-letter-spacing">@media (max-width: 768px){.sidebar-box .widget-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";3702 if ( $child.length ) {3703 $child.replaceWith( img );3704 } else {3705 $( "head" ).append( img );3706 }3707 } else {3708 $child.remove();3709 }3710 } );3711 } ), api( "sidebar_widget_title_mobile_typography[letter-spacing]", function( $swipe ) {3712 $swipe.bind( function( dataAndEvents ) {3713 var $child = $( ".customizer-typography-sidebar_widget_title-mobile-letter-spacing" );3714 if ( dataAndEvents ) {3715 /** @type {string} */3716 var img = '<style class="customizer-typography-sidebar_widget_title-mobile-letter-spacing">@media (max-width: 480px){.sidebar-box .widget-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";3717 if ( $child.length ) {3718 $child.replaceWith( img );3719 } else {3720 $( "head" ).append( img );3721 }3722 } else {3723 $child.remove();3724 }3725 } );3726 } ), api( "sidebar_widget_title_typography[text-transform]", function( $swipe ) {3727 $swipe.bind( function( dataAndEvents ) {3728 var $child = $( ".customizer-typography-sidebar_widget_title-text-transform" );3729 if ( dataAndEvents ) {3730 /** @type {string} */3731 var img = '<style class="customizer-typography-sidebar_widget_title-text-transform">.sidebar-box .widget-title{text-transform: ' + dataAndEvents + ";}</style>";3732 if ( $child.length ) {3733 $child.replaceWith( img );3734 } else {3735 $( "head" ).append( img );3736 }3737 } else {3738 $child.remove();3739 }3740 } );3741 } ), api( "widgets_typography[font-family]", function( $swipe ) {3742 $swipe.bind( function( pair ) {3743 if ( pair ) {3744 /** @type {string} */3745 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-widgets-font-family" );3746 var fontSize = pair.replace( " ", "%20" );3747 fontSize = fontSize.replace( ",", "%2C" );3748 /** @type {string} */3749 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;3750 if ( $( "#" + idfirst ).length ) {3751 $( "#" + idfirst ).attr( "href", fontSize );3752 } else {3753 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );3754 }3755 }3756 var $child = $( ".customizer-typography-widgets-font-family" );3757 if ( pair ) {3758 /** @type {string} */3759 var img = '<style class="customizer-typography-widgets-font-family">.sidebar-box, .footer-box{font-family: ' + pair + ";}</style>";3760 if ( $child.length ) {3761 $child.replaceWith( img );3762 } else {3763 $( "head" ).append( img );3764 }3765 } else {3766 $child.remove();3767 }3768 } );3769 } ), api( "widgets_typography[font-weight]", function( $swipe ) {3770 $swipe.bind( function( dataAndEvents ) {3771 var $child = $( ".customizer-typography-widgets-font-weight" );3772 if ( dataAndEvents ) {3773 /** @type {string} */3774 var img = '<style class="customizer-typography-widgets-font-weight">.sidebar-box, .footer-box{font-weight: ' + dataAndEvents + ";}</style>";3775 if ( $child.length ) {3776 $child.replaceWith( img );3777 } else {3778 $( "head" ).append( img );3779 }3780 } else {3781 $child.remove();3782 }3783 } );3784 } ), api( "widgets_typography[font-style]", function( $swipe ) {3785 $swipe.bind( function( dataAndEvents ) {3786 var $child = $( ".customizer-typography-widgets-font-style" );3787 if ( dataAndEvents ) {3788 /** @type {string} */3789 var img = '<style class="customizer-typography-widgets-font-style">.sidebar-box, .footer-box{font-style: ' + dataAndEvents + ";}</style>";3790 if ( $child.length ) {3791 $child.replaceWith( img );3792 } else {3793 $( "head" ).append( img );3794 }3795 } else {3796 $child.remove();3797 }3798 } );3799 } ), api( "widgets_typography[font-size]", function( $swipe ) {3800 $swipe.bind( function( dataAndEvents ) {3801 var $child = $( ".customizer-typography-widgets-font-size" );3802 if ( dataAndEvents ) {3803 /** @type {string} */3804 var img = '<style class="customizer-typography-widgets-font-size">.sidebar-box, .footer-box{font-size: ' + dataAndEvents + ";}</style>";3805 if ( $child.length ) {3806 $child.replaceWith( img );3807 } else {3808 $( "head" ).append( img );3809 }3810 } else {3811 $child.remove();3812 }3813 } );3814 } ), api( "widgets_tablet_typography[font-size]", function( $swipe ) {3815 $swipe.bind( function( dataAndEvents ) {3816 var $child = $( ".customizer-typography-widgets-tablet-font-size" );3817 if ( dataAndEvents ) {3818 /** @type {string} */3819 var img = '<style class="customizer-typography-widgets-tablet-font-size">@media (max-width: 768px){.sidebar-box, .footer-box{font-size: ' + dataAndEvents + ";}}</style>";3820 if ( $child.length ) {3821 $child.replaceWith( img );3822 } else {3823 $( "head" ).append( img );3824 }3825 } else {3826 $child.remove();3827 }3828 } );3829 } ), api( "widgets_mobile_typography[font-size]", function( $swipe ) {3830 $swipe.bind( function( dataAndEvents ) {3831 var $child = $( ".customizer-typography-widgets-mobile-font-size" );3832 if ( dataAndEvents ) {3833 /** @type {string} */3834 var img = '<style class="customizer-typography-widgets-mobile-font-size">@media (max-width: 480px){.sidebar-box, .footer-box{font-size: ' + dataAndEvents + ";}}</style>";3835 if ( $child.length ) {3836 $child.replaceWith( img );3837 } else {3838 $( "head" ).append( img );3839 }3840 } else {3841 $child.remove();3842 }3843 } );3844 } ), api( "widgets_typography[color]", function( $swipe ) {3845 $swipe.bind( function( dataAndEvents ) {3846 var $child = $( ".customizer-typography-widgets-color" );3847 if ( dataAndEvents ) {3848 /** @type {string} */3849 var img = '<style class="customizer-typography-widgets-color">.sidebar-box, .footer-box{color: ' + dataAndEvents + ";}</style>";3850 if ( $child.length ) {3851 $child.replaceWith( img );3852 } else {3853 $( "head" ).append( img );3854 }3855 } else {3856 $child.remove();3857 }3858 } );3859 } ), api( "widgets_typography[line-height]", function( $swipe ) {3860 $swipe.bind( function( dataAndEvents ) {3861 var $child = $( ".customizer-typography-widgets-line-height" );3862 if ( dataAndEvents ) {3863 /** @type {string} */3864 var img = '<style class="customizer-typography-widgets-line-height">.sidebar-box, .footer-box{line-height: ' + dataAndEvents + ";}</style>";3865 if ( $child.length ) {3866 $child.replaceWith( img );3867 } else {3868 $( "head" ).append( img );3869 }3870 } else {3871 $child.remove();3872 }3873 } );3874 } ), api( "widgets_tablet_typography[line-height]", function( $swipe ) {3875 $swipe.bind( function( dataAndEvents ) {3876 var $child = $( ".customizer-typography-widgets-tablet-line-height" );3877 if ( dataAndEvents ) {3878 /** @type {string} */3879 var img = '<style class="customizer-typography-widgets-tablet-line-height">@media (max-width: 768px){.sidebar-box, .footer-box{line-height: ' + dataAndEvents + ";}}</style>";3880 if ( $child.length ) {3881 $child.replaceWith( img );3882 } else {3883 $( "head" ).append( img );3884 }3885 } else {3886 $child.remove();3887 }3888 } );3889 } ), api( "widgets_mobile_typography[line-height]", function( $swipe ) {3890 $swipe.bind( function( dataAndEvents ) {3891 var $child = $( ".customizer-typography-widgets-mobile-line-height" );3892 if ( dataAndEvents ) {3893 /** @type {string} */3894 var img = '<style class="customizer-typography-widgets-mobile-line-height">@media (max-width: 480px){.sidebar-box, .footer-box{line-height: ' + dataAndEvents + ";}}</style>";3895 if ( $child.length ) {3896 $child.replaceWith( img );3897 } else {3898 $( "head" ).append( img );3899 }3900 } else {3901 $child.remove();3902 }3903 } );3904 } ), api( "widgets_typography[letter-spacing]", function( $swipe ) {3905 $swipe.bind( function( dataAndEvents ) {3906 var $child = $( ".customizer-typography-widgets-letter-spacing" );3907 if ( dataAndEvents ) {3908 /** @type {string} */3909 var img = '<style class="customizer-typography-widgets-letter-spacing">.sidebar-box, .footer-box{letter-spacing: ' + dataAndEvents + "px;}</style>";3910 if ( $child.length ) {3911 $child.replaceWith( img );3912 } else {3913 $( "head" ).append( img );3914 }3915 } else {3916 $child.remove();3917 }3918 } );3919 } ), api( "widgets_tablet_typography[letter-spacing]", function( $swipe ) {3920 $swipe.bind( function( dataAndEvents ) {3921 var $child = $( ".customizer-typography-widgets-tablet-letter-spacing" );3922 if ( dataAndEvents ) {3923 /** @type {string} */3924 var img = '<style class="customizer-typography-widgets-tablet-letter-spacing">@media (max-width: 768px){.sidebar-box, .footer-box{letter-spacing: ' + dataAndEvents + "px;}}</style>";3925 if ( $child.length ) {3926 $child.replaceWith( img );3927 } else {3928 $( "head" ).append( img );3929 }3930 } else {3931 $child.remove();3932 }3933 } );3934 } ), api( "widgets_mobile_typography[letter-spacing]", function( $swipe ) {3935 $swipe.bind( function( dataAndEvents ) {3936 var $child = $( ".customizer-typography-widgets-mobile-letter-spacing" );3937 if ( dataAndEvents ) {3938 /** @type {string} */3939 var img = '<style class="customizer-typography-widgets-mobile-letter-spacing">@media (max-width: 480px){.sidebar-box, .footer-box{letter-spacing: ' + dataAndEvents + "px;}}</style>";3940 if ( $child.length ) {3941 $child.replaceWith( img );3942 } else {3943 $( "head" ).append( img );3944 }3945 } else {3946 $child.remove();3947 }3948 } );3949 } ), api( "widgets_typography[text-transform]", function( $swipe ) {3950 $swipe.bind( function( dataAndEvents ) {3951 var $child = $( ".customizer-typography-widgets-text-transform" );3952 if ( dataAndEvents ) {3953 /** @type {string} */3954 var img = '<style class="customizer-typography-widgets-text-transform">.sidebar-box, .footer-box{text-transform: ' + dataAndEvents + ";}</style>";3955 if ( $child.length ) {3956 $child.replaceWith( img );3957 } else {3958 $( "head" ).append( img );3959 }3960 } else {3961 $child.remove();3962 }3963 } );3964 } ), api( "footer_widget_title_typography[font-family]", function( $swipe ) {3965 $swipe.bind( function( pair ) {3966 if ( pair ) {3967 /** @type {string} */3968 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-footer_widget_title-font-family" );3969 var fontSize = pair.replace( " ", "%20" );3970 fontSize = fontSize.replace( ",", "%2C" );3971 /** @type {string} */3972 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;3973 if ( $( "#" + idfirst ).length ) {3974 $( "#" + idfirst ).attr( "href", fontSize );3975 } else {3976 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );3977 }3978 }3979 var $child = $( ".customizer-typography-footer_widget_title-font-family" );3980 if ( pair ) {3981 /** @type {string} */3982 var img = '<style class="customizer-typography-footer_widget_title-font-family">#footer-widgets .footer-box .widget-title{font-family: ' + pair + ";}</style>";3983 if ( $child.length ) {3984 $child.replaceWith( img );3985 } else {3986 $( "head" ).append( img );3987 }3988 } else {3989 $child.remove();3990 }3991 } );3992 } ), api( "footer_widget_title_typography[font-weight]", function( $swipe ) {3993 $swipe.bind( function( dataAndEvents ) {3994 var $child = $( ".customizer-typography-footer_widget_title-font-weight" );3995 if ( dataAndEvents ) {3996 /** @type {string} */3997 var img = '<style class="customizer-typography-footer_widget_title-font-weight">#footer-widgets .footer-box .widget-title{font-weight: ' + dataAndEvents + ";}</style>";3998 if ( $child.length ) {3999 $child.replaceWith( img );4000 } else {4001 $( "head" ).append( img );4002 }4003 } else {4004 $child.remove();4005 }4006 } );4007 } ), api( "footer_widget_title_typography[font-style]", function( $swipe ) {4008 $swipe.bind( function( dataAndEvents ) {4009 var $child = $( ".customizer-typography-footer_widget_title-font-style" );4010 if ( dataAndEvents ) {4011 /** @type {string} */4012 var img = '<style class="customizer-typography-footer_widget_title-font-style">#footer-widgets .footer-box .widget-title{font-style: ' + dataAndEvents + ";}</style>";4013 if ( $child.length ) {4014 $child.replaceWith( img );4015 } else {4016 $( "head" ).append( img );4017 }4018 } else {4019 $child.remove();4020 }4021 } );4022 } ), api( "footer_widget_title_typography[font-size]", function( $swipe ) {4023 $swipe.bind( function( dataAndEvents ) {4024 var $child = $( ".customizer-typography-footer_widget_title-font-size" );4025 if ( dataAndEvents ) {4026 /** @type {string} */4027 var img = '<style class="customizer-typography-footer_widget_title-font-size">#footer-widgets .footer-box .widget-title{font-size: ' + dataAndEvents + ";}</style>";4028 if ( $child.length ) {4029 $child.replaceWith( img );4030 } else {4031 $( "head" ).append( img );4032 }4033 } else {4034 $child.remove();4035 }4036 } );4037 } ), api( "footer_widget_title_tablet_typography[font-size]", function( $swipe ) {4038 $swipe.bind( function( dataAndEvents ) {4039 var $child = $( ".customizer-typography-footer_widget_title-tablet-font-size" );4040 if ( dataAndEvents ) {4041 /** @type {string} */4042 var img = '<style class="customizer-typography-footer_widget_title-tablet-font-size">@media (max-width: 768px){#footer-widgets .footer-box .widget-title{font-size: ' + dataAndEvents + ";}}</style>";4043 if ( $child.length ) {4044 $child.replaceWith( img );4045 } else {4046 $( "head" ).append( img );4047 }4048 } else {4049 $child.remove();4050 }4051 } );4052 } ), api( "footer_widget_title_mobile_typography[font-size]", function( $swipe ) {4053 $swipe.bind( function( dataAndEvents ) {4054 var $child = $( ".customizer-typography-footer_widget_title-mobile-font-size" );4055 if ( dataAndEvents ) {4056 /** @type {string} */4057 var img = '<style class="customizer-typography-footer_widget_title-mobile-font-size">@media (max-width: 480px){#footer-widgets .footer-box .widget-title{font-size: ' + dataAndEvents + ";}}</style>";4058 if ( $child.length ) {4059 $child.replaceWith( img );4060 } else {4061 $( "head" ).append( img );4062 }4063 } else {4064 $child.remove();4065 }4066 } );4067 } ), api( "footer_widget_title_typography[color]", function( $swipe ) {4068 $swipe.bind( function( dataAndEvents ) {4069 var $child = $( ".customizer-typography-footer_widget_title-color" );4070 if ( dataAndEvents ) {4071 /** @type {string} */4072 var img = '<style class="customizer-typography-footer_widget_title-color">#footer-widgets .footer-box .widget-title{color: ' + dataAndEvents + ";}</style>";4073 if ( $child.length ) {4074 $child.replaceWith( img );4075 } else {4076 $( "head" ).append( img );4077 }4078 } else {4079 $child.remove();4080 }4081 } );4082 } ), api( "footer_widget_title_typography[line-height]", function( $swipe ) {4083 $swipe.bind( function( dataAndEvents ) {4084 var $child = $( ".customizer-typography-footer_widget_title-line-height" );4085 if ( dataAndEvents ) {4086 /** @type {string} */4087 var img = '<style class="customizer-typography-footer_widget_title-line-height">#footer-widgets .footer-box .widget-title{line-height: ' + dataAndEvents + ";}</style>";4088 if ( $child.length ) {4089 $child.replaceWith( img );4090 } else {4091 $( "head" ).append( img );4092 }4093 } else {4094 $child.remove();4095 }4096 } );4097 } ), api( "footer_widget_title_tablet_typography[line-height]", function( $swipe ) {4098 $swipe.bind( function( dataAndEvents ) {4099 var $child = $( ".customizer-typography-footer_widget_title-tablet-line-height" );4100 if ( dataAndEvents ) {4101 /** @type {string} */4102 var img = '<style class="customizer-typography-footer_widget_title-tablet-line-height">@media (max-width: 768px){#footer-widgets .footer-box .widget-title{line-height: ' + dataAndEvents + ";}}</style>";4103 if ( $child.length ) {4104 $child.replaceWith( img );4105 } else {4106 $( "head" ).append( img );4107 }4108 } else {4109 $child.remove();4110 }4111 } );4112 } ), api( "footer_widget_title_mobile_typography[line-height]", function( $swipe ) {4113 $swipe.bind( function( dataAndEvents ) {4114 var $child = $( ".customizer-typography-footer_widget_title-mobile-line-height" );4115 if ( dataAndEvents ) {4116 /** @type {string} */4117 var img = '<style class="customizer-typography-footer_widget_title-mobile-line-height">@media (max-width: 480px){#footer-widgets .footer-box .widget-title{line-height: ' + dataAndEvents + ";}}</style>";4118 if ( $child.length ) {4119 $child.replaceWith( img );4120 } else {4121 $( "head" ).append( img );4122 }4123 } else {4124 $child.remove();4125 }4126 } );4127 } ), api( "footer_widget_title_typography[letter-spacing]", function( $swipe ) {4128 $swipe.bind( function( dataAndEvents ) {4129 var $child = $( ".customizer-typography-footer_widget_title-letter-spacing" );4130 if ( dataAndEvents ) {4131 /** @type {string} */4132 var img = '<style class="customizer-typography-footer_widget_title-letter-spacing">#footer-widgets .footer-box .widget-title{letter-spacing: ' + dataAndEvents + "px;}</style>";4133 if ( $child.length ) {4134 $child.replaceWith( img );4135 } else {4136 $( "head" ).append( img );4137 }4138 } else {4139 $child.remove();4140 }4141 } );4142 } ), api( "footer_widget_title_tablet_typography[letter-spacing]", function( $swipe ) {4143 $swipe.bind( function( dataAndEvents ) {4144 var $child = $( ".customizer-typography-footer_widget_title-tablet-letter-spacing" );4145 if ( dataAndEvents ) {4146 /** @type {string} */4147 var img = '<style class="customizer-typography-footer_widget_title-tablet-letter-spacing">@media (max-width: 768px){#footer-widgets .footer-box .widget-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";4148 if ( $child.length ) {4149 $child.replaceWith( img );4150 } else {4151 $( "head" ).append( img );4152 }4153 } else {4154 $child.remove();4155 }4156 } );4157 } ), api( "footer_widget_title_mobile_typography[letter-spacing]", function( $swipe ) {4158 $swipe.bind( function( dataAndEvents ) {4159 var $child = $( ".customizer-typography-footer_widget_title-mobile-letter-spacing" );4160 if ( dataAndEvents ) {4161 /** @type {string} */4162 var img = '<style class="customizer-typography-footer_widget_title-mobile-letter-spacing">@media (max-width: 480px){#footer-widgets .footer-box .widget-title{letter-spacing: ' + dataAndEvents + "px;}}</style>";4163 if ( $child.length ) {4164 $child.replaceWith( img );4165 } else {4166 $( "head" ).append( img );4167 }4168 } else {4169 $child.remove();4170 }4171 } );4172 } ), api( "footer_widget_title_typography[text-transform]", function( $swipe ) {4173 $swipe.bind( function( dataAndEvents ) {4174 var $child = $( ".customizer-typography-footer_widget_title-text-transform" );4175 if ( dataAndEvents ) {4176 /** @type {string} */4177 var img = '<style class="customizer-typography-footer_widget_title-text-transform">#footer-widgets .footer-box .widget-title{text-transform: ' + dataAndEvents + ";}</style>";4178 if ( $child.length ) {4179 $child.replaceWith( img );4180 } else {4181 $( "head" ).append( img );4182 }4183 } else {4184 $child.remove();4185 }4186 } );4187 } ), api( "copyright_typography[font-family]", function( $swipe ) {4188 $swipe.bind( function( pair ) {4189 if ( pair ) {4190 /** @type {string} */4191 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-copyright-font-family" );4192 var fontSize = pair.replace( " ", "%20" );4193 fontSize = fontSize.replace( ",", "%2C" );4194 /** @type {string} */4195 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;4196 if ( $( "#" + idfirst ).length ) {4197 $( "#" + idfirst ).attr( "href", fontSize );4198 } else {4199 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );4200 }4201 }4202 var $child = $( ".customizer-typography-copyright-font-family" );4203 if ( pair ) {4204 /** @type {string} */4205 var img = '<style class="customizer-typography-copyright-font-family">#footer-bottom #copyright{font-family: ' + pair + ";}</style>";4206 if ( $child.length ) {4207 $child.replaceWith( img );4208 } else {4209 $( "head" ).append( img );4210 }4211 } else {4212 $child.remove();4213 }4214 } );4215 } ), api( "copyright_typography[font-weight]", function( $swipe ) {4216 $swipe.bind( function( dataAndEvents ) {4217 var $child = $( ".customizer-typography-copyright-font-weight" );4218 if ( dataAndEvents ) {4219 /** @type {string} */4220 var img = '<style class="customizer-typography-copyright-font-weight">#footer-bottom #copyright{font-weight: ' + dataAndEvents + ";}</style>";4221 if ( $child.length ) {4222 $child.replaceWith( img );4223 } else {4224 $( "head" ).append( img );4225 }4226 } else {4227 $child.remove();4228 }4229 } );4230 } ), api( "copyright_typography[font-style]", function( $swipe ) {4231 $swipe.bind( function( dataAndEvents ) {4232 var $child = $( ".customizer-typography-copyright-font-style" );4233 if ( dataAndEvents ) {4234 /** @type {string} */4235 var img = '<style class="customizer-typography-copyright-font-style">#footer-bottom #copyright{font-style: ' + dataAndEvents + ";}</style>";4236 if ( $child.length ) {4237 $child.replaceWith( img );4238 } else {4239 $( "head" ).append( img );4240 }4241 } else {4242 $child.remove();4243 }4244 } );4245 } ), api( "copyright_typography[font-size]", function( $swipe ) {4246 $swipe.bind( function( dataAndEvents ) {4247 var $child = $( ".customizer-typography-copyright-font-size" );4248 if ( dataAndEvents ) {4249 /** @type {string} */4250 var img = '<style class="customizer-typography-copyright-font-size">#footer-bottom #copyright{font-size: ' + dataAndEvents + ";}</style>";4251 if ( $child.length ) {4252 $child.replaceWith( img );4253 } else {4254 $( "head" ).append( img );4255 }4256 } else {4257 $child.remove();4258 }4259 } );4260 } ), api( "copyright_tablet_typography[font-size]", function( $swipe ) {4261 $swipe.bind( function( dataAndEvents ) {4262 var $child = $( ".customizer-typography-copyright-tablet-font-size" );4263 if ( dataAndEvents ) {4264 /** @type {string} */4265 var img = '<style class="customizer-typography-copyright-tablet-font-size">@media (max-width: 768px){#footer-bottom #copyright{font-size: ' + dataAndEvents + ";}}</style>";4266 if ( $child.length ) {4267 $child.replaceWith( img );4268 } else {4269 $( "head" ).append( img );4270 }4271 } else {4272 $child.remove();4273 }4274 } );4275 } ), api( "copyright_mobile_typography[font-size]", function( $swipe ) {4276 $swipe.bind( function( dataAndEvents ) {4277 var $child = $( ".customizer-typography-copyright-mobile-font-size" );4278 if ( dataAndEvents ) {4279 /** @type {string} */4280 var img = '<style class="customizer-typography-copyright-mobile-font-size">@media (max-width: 480px){#footer-bottom #copyright{font-size: ' + dataAndEvents + ";}}</style>";4281 if ( $child.length ) {4282 $child.replaceWith( img );4283 } else {4284 $( "head" ).append( img );4285 }4286 } else {4287 $child.remove();4288 }4289 } );4290 } ), api( "copyright_typography[color]", function( $swipe ) {4291 $swipe.bind( function( dataAndEvents ) {4292 var $child = $( ".customizer-typography-copyright-color" );4293 if ( dataAndEvents ) {4294 /** @type {string} */4295 var img = '<style class="customizer-typography-copyright-color">#footer-bottom #copyright{color: ' + dataAndEvents + ";}</style>";4296 if ( $child.length ) {4297 $child.replaceWith( img );4298 } else {4299 $( "head" ).append( img );4300 }4301 } else {4302 $child.remove();4303 }4304 } );4305 } ), api( "copyright_typography[line-height]", function( $swipe ) {4306 $swipe.bind( function( dataAndEvents ) {4307 var $child = $( ".customizer-typography-copyright-line-height" );4308 if ( dataAndEvents ) {4309 /** @type {string} */4310 var img = '<style class="customizer-typography-copyright-line-height">#footer-bottom #copyright{line-height: ' + dataAndEvents + ";}</style>";4311 if ( $child.length ) {4312 $child.replaceWith( img );4313 } else {4314 $( "head" ).append( img );4315 }4316 } else {4317 $child.remove();4318 }4319 } );4320 } ), api( "copyright_tablet_typography[line-height]", function( $swipe ) {4321 $swipe.bind( function( dataAndEvents ) {4322 var $child = $( ".customizer-typography-copyright-tablet-line-height" );4323 if ( dataAndEvents ) {4324 /** @type {string} */4325 var img = '<style class="customizer-typography-copyright-tablet-line-height">@media (max-width: 768px){#footer-bottom #copyright{line-height: ' + dataAndEvents + ";}}</style>";4326 if ( $child.length ) {4327 $child.replaceWith( img );4328 } else {4329 $( "head" ).append( img );4330 }4331 } else {4332 $child.remove();4333 }4334 } );4335 } ), api( "copyright_mobile_typography[line-height]", function( $swipe ) {4336 $swipe.bind( function( dataAndEvents ) {4337 var $child = $( ".customizer-typography-copyright-mobile-line-height" );4338 if ( dataAndEvents ) {4339 /** @type {string} */4340 var img = '<style class="customizer-typography-copyright-mobile-line-height">@media (max-width: 480px){#footer-bottom #copyright{line-height: ' + dataAndEvents + ";}}</style>";4341 if ( $child.length ) {4342 $child.replaceWith( img );4343 } else {4344 $( "head" ).append( img );4345 }4346 } else {4347 $child.remove();4348 }4349 } );4350 } ), api( "copyright_typography[letter-spacing]", function( $swipe ) {4351 $swipe.bind( function( dataAndEvents ) {4352 var $child = $( ".customizer-typography-copyright-letter-spacing" );4353 if ( dataAndEvents ) {4354 /** @type {string} */4355 var img = '<style class="customizer-typography-copyright-letter-spacing">#footer-bottom #copyright{letter-spacing: ' + dataAndEvents + "px;}</style>";4356 if ( $child.length ) {4357 $child.replaceWith( img );4358 } else {4359 $( "head" ).append( img );4360 }4361 } else {4362 $child.remove();4363 }4364 } );4365 } ), api( "copyright_tablet_typography[letter-spacing]", function( $swipe ) {4366 $swipe.bind( function( dataAndEvents ) {4367 var $child = $( ".customizer-typography-copyright-tablet-letter-spacing" );4368 if ( dataAndEvents ) {4369 /** @type {string} */4370 var img = '<style class="customizer-typography-copyright-tablet-letter-spacing">@media (max-width: 768px){#footer-bottom #copyright{letter-spacing: ' + dataAndEvents + "px;}}</style>";4371 if ( $child.length ) {4372 $child.replaceWith( img );4373 } else {4374 $( "head" ).append( img );4375 }4376 } else {4377 $child.remove();4378 }4379 } );4380 } ), api( "copyright_mobile_typography[letter-spacing]", function( $swipe ) {4381 $swipe.bind( function( dataAndEvents ) {4382 var $child = $( ".customizer-typography-copyright-mobile-letter-spacing" );4383 if ( dataAndEvents ) {4384 /** @type {string} */4385 var img = '<style class="customizer-typography-copyright-mobile-letter-spacing">@media (max-width: 480px){#footer-bottom #copyright{letter-spacing: ' + dataAndEvents + "px;}}</style>";4386 if ( $child.length ) {4387 $child.replaceWith( img );4388 } else {4389 $( "head" ).append( img );4390 }4391 } else {4392 $child.remove();4393 }4394 } );4395 } ), api( "copyright_typography[text-transform]", function( $swipe ) {4396 $swipe.bind( function( dataAndEvents ) {4397 var $child = $( ".customizer-typography-copyright-text-transform" );4398 if ( dataAndEvents ) {4399 /** @type {string} */4400 var img = '<style class="customizer-typography-copyright-text-transform">#footer-bottom #copyright{text-transform: ' + dataAndEvents + ";}</style>";4401 if ( $child.length ) {4402 $child.replaceWith( img );4403 } else {4404 $( "head" ).append( img );4405 }4406 } else {4407 $child.remove();4408 }4409 } );4410 } ), api( "footer_menu_typography[font-family]", function( $swipe ) {4411 $swipe.bind( function( pair ) {4412 if ( pair ) {4413 /** @type {string} */4414 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-footer_menu-font-family" );4415 var fontSize = pair.replace( " ", "%20" );4416 fontSize = fontSize.replace( ",", "%2C" );4417 /** @type {string} */4418 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;4419 if ( $( "#" + idfirst ).length ) {4420 $( "#" + idfirst ).attr( "href", fontSize );4421 } else {4422 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );4423 }4424 }4425 var $child = $( ".customizer-typography-footer_menu-font-family" );4426 if ( pair ) {4427 /** @type {string} */4428 var img = '<style class="customizer-typography-footer_menu-font-family">#footer-bottom #footer-bottom-menu{font-family: ' + pair + ";}</style>";4429 if ( $child.length ) {4430 $child.replaceWith( img );4431 } else {4432 $( "head" ).append( img );4433 }4434 } else {4435 $child.remove();4436 }4437 } );4438 } ), api( "footer_menu_typography[font-weight]", function( $swipe ) {4439 $swipe.bind( function( dataAndEvents ) {4440 var $child = $( ".customizer-typography-footer_menu-font-weight" );4441 if ( dataAndEvents ) {4442 /** @type {string} */4443 var img = '<style class="customizer-typography-footer_menu-font-weight">#footer-bottom #footer-bottom-menu{font-weight: ' + dataAndEvents + ";}</style>";4444 if ( $child.length ) {4445 $child.replaceWith( img );4446 } else {4447 $( "head" ).append( img );4448 }4449 } else {4450 $child.remove();4451 }4452 } );4453 } ), api( "footer_menu_typography[font-style]", function( $swipe ) {4454 $swipe.bind( function( dataAndEvents ) {4455 var $child = $( ".customizer-typography-footer_menu-font-style" );4456 if ( dataAndEvents ) {4457 /** @type {string} */4458 var img = '<style class="customizer-typography-footer_menu-font-style">#footer-bottom #footer-bottom-menu{font-style: ' + dataAndEvents + ";}</style>";4459 if ( $child.length ) {4460 $child.replaceWith( img );4461 } else {4462 $( "head" ).append( img );4463 }4464 } else {4465 $child.remove();4466 }4467 } );4468 } ), api( "footer_menu_typography[font-size]", function( $swipe ) {4469 $swipe.bind( function( dataAndEvents ) {4470 var $child = $( ".customizer-typography-footer_menu-font-size" );4471 if ( dataAndEvents ) {4472 /** @type {string} */4473 var img = '<style class="customizer-typography-footer_menu-font-size">#footer-bottom #footer-bottom-menu{font-size: ' + dataAndEvents + ";}</style>";4474 if ( $child.length ) {4475 $child.replaceWith( img );4476 } else {4477 $( "head" ).append( img );4478 }4479 } else {4480 $child.remove();4481 }4482 } );4483 } ), api( "footer_menu_tablet_typography[font-size]", function( $swipe ) {4484 $swipe.bind( function( dataAndEvents ) {4485 var $child = $( ".customizer-typography-footer_menu-tablet-font-size" );4486 if ( dataAndEvents ) {4487 /** @type {string} */4488 var img = '<style class="customizer-typography-footer_menu-tablet-font-size">@media (max-width: 768px){#footer-bottom #footer-bottom-menu{font-size: ' + dataAndEvents + ";}}</style>";4489 if ( $child.length ) {4490 $child.replaceWith( img );4491 } else {4492 $( "head" ).append( img );4493 }4494 } else {4495 $child.remove();4496 }4497 } );4498 } ), api( "footer_menu_mobile_typography[font-size]", function( $swipe ) {4499 $swipe.bind( function( dataAndEvents ) {4500 var $child = $( ".customizer-typography-footer_menu-mobile-font-size" );4501 if ( dataAndEvents ) {4502 /** @type {string} */4503 var img = '<style class="customizer-typography-footer_menu-mobile-font-size">@media (max-width: 480px){#footer-bottom #footer-bottom-menu{font-size: ' + dataAndEvents + ";}}</style>";4504 if ( $child.length ) {4505 $child.replaceWith( img );4506 } else {4507 $( "head" ).append( img );4508 }4509 } else {4510 $child.remove();4511 }4512 } );4513 } ), api( "footer_menu_typography[color]", function( $swipe ) {4514 $swipe.bind( function( dataAndEvents ) {4515 var $child = $( ".customizer-typography-footer_menu-color" );4516 if ( dataAndEvents ) {4517 /** @type {string} */4518 var img = '<style class="customizer-typography-footer_menu-color">#footer-bottom #footer-bottom-menu{color: ' + dataAndEvents + ";}</style>";4519 if ( $child.length ) {4520 $child.replaceWith( img );4521 } else {4522 $( "head" ).append( img );4523 }4524 } else {4525 $child.remove();4526 }4527 } );4528 } ), api( "footer_menu_typography[line-height]", function( $swipe ) {4529 $swipe.bind( function( dataAndEvents ) {4530 var $child = $( ".customizer-typography-footer_menu-line-height" );4531 if ( dataAndEvents ) {4532 /** @type {string} */4533 var img = '<style class="customizer-typography-footer_menu-line-height">#footer-bottom #footer-bottom-menu{line-height: ' + dataAndEvents + ";}</style>";4534 if ( $child.length ) {4535 $child.replaceWith( img );4536 } else {4537 $( "head" ).append( img );4538 }4539 } else {4540 $child.remove();4541 }4542 } );4543 } ), api( "footer_menu_tablet_typography[line-height]", function( $swipe ) {4544 $swipe.bind( function( dataAndEvents ) {4545 var $child = $( ".customizer-typography-footer_menu-tablet-line-height" );4546 if ( dataAndEvents ) {4547 /** @type {string} */4548 var img = '<style class="customizer-typography-footer_menu-tablet-line-height">@media (max-width: 768px){#footer-bottom #footer-bottom-menu{line-height: ' + dataAndEvents + ";}}</style>";4549 if ( $child.length ) {4550 $child.replaceWith( img );4551 } else {4552 $( "head" ).append( img );4553 }4554 } else {4555 $child.remove();4556 }4557 } );4558 } ), api( "footer_menu_mobile_typography[line-height]", function( $swipe ) {4559 $swipe.bind( function( dataAndEvents ) {4560 var $child = $( ".customizer-typography-footer_menu-mobile-line-height" );4561 if ( dataAndEvents ) {4562 /** @type {string} */4563 var img = '<style class="customizer-typography-footer_menu-mobile-line-height">@media (max-width: 480px){#footer-bottom #footer-bottom-menu{line-height: ' + dataAndEvents + ";}}</style>";4564 if ( $child.length ) {4565 $child.replaceWith( img );4566 } else {4567 $( "head" ).append( img );4568 }4569 } else {4570 $child.remove();4571 }4572 } );4573 } ), api( "footer_menu_typography[letter-spacing]", function( $swipe ) {4574 $swipe.bind( function( dataAndEvents ) {4575 var $child = $( ".customizer-typography-footer_menu-letter-spacing" );4576 if ( dataAndEvents ) {4577 /** @type {string} */4578 var img = '<style class="customizer-typography-footer_menu-letter-spacing">#footer-bottom #footer-bottom-menu{letter-spacing: ' + dataAndEvents + "px;}</style>";4579 if ( $child.length ) {4580 $child.replaceWith( img );4581 } else {4582 $( "head" ).append( img );4583 }4584 } else {4585 $child.remove();4586 }4587 } );4588 } ), api( "footer_menu_tablet_typography[letter-spacing]", function( $swipe ) {4589 $swipe.bind( function( dataAndEvents ) {4590 var $child = $( ".customizer-typography-footer_menu-tablet-letter-spacing" );4591 if ( dataAndEvents ) {4592 /** @type {string} */4593 var img = '<style class="customizer-typography-footer_menu-tablet-letter-spacing">@media (max-width: 768px){#footer-bottom #footer-bottom-menu{letter-spacing: ' + dataAndEvents + "px;}}</style>";4594 if ( $child.length ) {4595 $child.replaceWith( img );4596 } else {4597 $( "head" ).append( img );4598 }4599 } else {4600 $child.remove();4601 }4602 } );4603 } ), api( "footer_menu_mobile_typography[letter-spacing]", function( $swipe ) {4604 $swipe.bind( function( dataAndEvents ) {4605 var $child = $( ".customizer-typography-footer_menu-mobile-letter-spacing" );4606 if ( dataAndEvents ) {4607 /** @type {string} */4608 var img = '<style class="customizer-typography-footer_menu-mobile-letter-spacing">@media (max-width: 480px){#footer-bottom #footer-bottom-menu{letter-spacing: ' + dataAndEvents + "px;}}</style>";4609 if ( $child.length ) {4610 $child.replaceWith( img );4611 } else {4612 $( "head" ).append( img );4613 }4614 } else {4615 $child.remove();4616 }4617 } );4618 } ), api( "footer_menu_typography[text-transform]", function( $swipe ) {4619 $swipe.bind( function( dataAndEvents ) {4620 var $child = $( ".customizer-typography-footer_menu-text-transform" );4621 if ( dataAndEvents ) {4622 /** @type {string} */4623 var img = '<style class="customizer-typography-footer_menu-text-transform">#footer-bottom #footer-bottom-menu{text-transform: ' + dataAndEvents + ";}</style>";4624 if ( $child.length ) {4625 $child.replaceWith( img );4626 } else {4627 $( "head" ).append( img );4628 }4629 } else {4630 $child.remove();4631 }4632 } );4633 } ), api( "woo_product_title_typography[font-family]", function( $swipe ) {4634 $swipe.bind( function( pair ) {4635 if ( pair ) {4636 /** @type {string} */4637 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-product-title-font-family" );4638 var fontSize = pair.replace( " ", "%20" );4639 fontSize = fontSize.replace( ",", "%2C" );4640 /** @type {string} */4641 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;4642 if ( $( "#" + idfirst ).length ) {4643 $( "#" + idfirst ).attr( "href", fontSize );4644 } else {4645 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );4646 }4647 }4648 var $child = $( ".customizer-typography-product-title-font-family" );4649 if ( pair ) {4650 /** @type {string} */4651 var img = '<style class="customizer-typography-product-title-font-family">.woocommerce div.product .product_title{font-family: ' + pair + ";}</style>";4652 if ( $child.length ) {4653 $child.replaceWith( img );4654 } else {4655 $( "head" ).append( img );4656 }4657 } else {4658 $child.remove();4659 }4660 } );4661 } ), api( "woo_product_title_typography[font-weight]", function( $swipe ) {4662 $swipe.bind( function( dataAndEvents ) {4663 var $child = $( ".customizer-typography-product-title-font-weight" );4664 if ( dataAndEvents ) {4665 /** @type {string} */4666 var img = '<style class="customizer-typography-product-title-font-weight">.woocommerce div.product .product_title{font-weight: ' + dataAndEvents + ";}</style>";4667 if ( $child.length ) {4668 $child.replaceWith( img );4669 } else {4670 $( "head" ).append( img );4671 }4672 } else {4673 $child.remove();4674 }4675 } );4676 } ), api( "woo_product_title_typography[font-style]", function( $swipe ) {4677 $swipe.bind( function( dataAndEvents ) {4678 var $child = $( ".customizer-typography-product-title-font-style" );4679 if ( dataAndEvents ) {4680 /** @type {string} */4681 var img = '<style class="customizer-typography-product-title-font-style">.woocommerce div.product .product_title{font-style: ' + dataAndEvents + ";}</style>";4682 if ( $child.length ) {4683 $child.replaceWith( img );4684 } else {4685 $( "head" ).append( img );4686 }4687 } else {4688 $child.remove();4689 }4690 } );4691 } ), api( "woo_product_title_typography[font-size]", function( $swipe ) {4692 $swipe.bind( function( dataAndEvents ) {4693 var $child = $( ".customizer-typography-product-title-font-size" );4694 if ( dataAndEvents ) {4695 /** @type {string} */4696 var img = '<style class="customizer-typography-product-title-font-size">.woocommerce div.product .product_title{font-size: ' + dataAndEvents + ";}</style>";4697 if ( $child.length ) {4698 $child.replaceWith( img );4699 } else {4700 $( "head" ).append( img );4701 }4702 } else {4703 $child.remove();4704 }4705 } );4706 } ), api( "woo_product_title_tablet_typography[font-size]", function( $swipe ) {4707 $swipe.bind( function( dataAndEvents ) {4708 var $child = $( ".customizer-typography-woo_product_title-tablet-font-size" );4709 if ( dataAndEvents ) {4710 /** @type {string} */4711 var img = '<style class="customizer-typography-woo_product_title-tablet-font-size">@media (max-width: 768px){.woocommerce div.product .product_title{font-size: ' + dataAndEvents + ";}}</style>";4712 if ( $child.length ) {4713 $child.replaceWith( img );4714 } else {4715 $( "head" ).append( img );4716 }4717 } else {4718 $child.remove();4719 }4720 } );4721 } ), api( "woo_product_title_mobile_typography[font-size]", function( $swipe ) {4722 $swipe.bind( function( dataAndEvents ) {4723 var $child = $( ".customizer-typography-woo_product_title-mobile-font-size" );4724 if ( dataAndEvents ) {4725 /** @type {string} */4726 var img = '<style class="customizer-typography-woo_product_title-mobile-font-size">@media (max-width: 480px){.woocommerce div.product .product_title{font-size: ' + dataAndEvents + ";}}</style>";4727 if ( $child.length ) {4728 $child.replaceWith( img );4729 } else {4730 $( "head" ).append( img );4731 }4732 } else {4733 $child.remove();4734 }4735 } );4736 } ), api( "woo_product_title_typography[color]", function( $swipe ) {4737 $swipe.bind( function( dataAndEvents ) {4738 var $child = $( ".customizer-typography-product-title-color" );4739 if ( dataAndEvents ) {4740 /** @type {string} */4741 var img = '<style class="customizer-typography-product-title-color">.woocommerce div.product .product_title{color: ' + dataAndEvents + ";}</style>";4742 if ( $child.length ) {4743 $child.replaceWith( img );4744 } else {4745 $( "head" ).append( img );4746 }4747 } else {4748 $child.remove();4749 }4750 } );4751 } ), api( "woo_product_title_typography[line-height]", function( $swipe ) {4752 $swipe.bind( function( dataAndEvents ) {4753 var $child = $( ".customizer-typography-product-title-line-height" );4754 if ( dataAndEvents ) {4755 /** @type {string} */4756 var img = '<style class="customizer-typography-product-title-line-height">.woocommerce div.product .product_title{line-height: ' + dataAndEvents + ";}</style>";4757 if ( $child.length ) {4758 $child.replaceWith( img );4759 } else {4760 $( "head" ).append( img );4761 }4762 } else {4763 $child.remove();4764 }4765 } );4766 } ), api( "woo_product_title_tablet_typography[line-height]", function( $swipe ) {4767 $swipe.bind( function( dataAndEvents ) {4768 var $child = $( ".customizer-typography-woo_product_title-tablet-line-height" );4769 if ( dataAndEvents ) {4770 /** @type {string} */4771 var img = '<style class="customizer-typography-woo_product_title-tablet-line-height">@media (max-width: 768px){.woocommerce div.product .product_title{line-height: ' + dataAndEvents + ";}}</style>";4772 if ( $child.length ) {4773 $child.replaceWith( img );4774 } else {4775 $( "head" ).append( img );4776 }4777 } else {4778 $child.remove();4779 }4780 } );4781 } ), api( "woo_product_title_mobile_typography[line-height]", function( $swipe ) {4782 $swipe.bind( function( dataAndEvents ) {4783 var $child = $( ".customizer-typography-woo_product_title-mobile-line-height" );4784 if ( dataAndEvents ) {4785 /** @type {string} */4786 var img = '<style class="customizer-typography-woo_product_title-mobile-line-height">@media (max-width: 480px){.woocommerce div.product .product_title{line-height: ' + dataAndEvents + ";}}</style>";4787 if ( $child.length ) {4788 $child.replaceWith( img );4789 } else {4790 $( "head" ).append( img );4791 }4792 } else {4793 $child.remove();4794 }4795 } );4796 } ), api( "woo_product_title_typography[letter-spacing]", function( $swipe ) {4797 $swipe.bind( function( dataAndEvents ) {4798 var $child = $( ".customizer-typography-product-title-letter-spacing" );4799 if ( dataAndEvents ) {4800 /** @type {string} */4801 var img = '<style class="customizer-typography-product-title-letter-spacing">.woocommerce div.product .product_title{letter-spacing: ' + dataAndEvents + "px;}</style>";4802 if ( $child.length ) {4803 $child.replaceWith( img );4804 } else {4805 $( "head" ).append( img );4806 }4807 } else {4808 $child.remove();4809 }4810 } );4811 } ), api( "woo_product_title_tablet_typography[letter-spacing]", function( $swipe ) {4812 $swipe.bind( function( dataAndEvents ) {4813 var $child = $( ".customizer-typography-woo_product_title-tablet-letter-spacing" );4814 if ( dataAndEvents ) {4815 /** @type {string} */4816 var img = '<style class="customizer-typography-woo_product_title-tablet-letter-spacing">@media (max-width: 768px){.woocommerce div.product .product_title{letter-spacing: ' + dataAndEvents + "px;}}</style>";4817 if ( $child.length ) {4818 $child.replaceWith( img );4819 } else {4820 $( "head" ).append( img );4821 }4822 } else {4823 $child.remove();4824 }4825 } );4826 } ), api( "woo_product_title_mobile_typography[letter-spacing]", function( $swipe ) {4827 $swipe.bind( function( dataAndEvents ) {4828 var $child = $( ".customizer-typography-woo_product_title-mobile-letter-spacing" );4829 if ( dataAndEvents ) {4830 /** @type {string} */4831 var img = '<style class="customizer-typography-woo_product_title-mobile-letter-spacing">@media (max-width: 480px){.woocommerce div.product .product_title{letter-spacing: ' + dataAndEvents + "px;}}</style>";4832 if ( $child.length ) {4833 $child.replaceWith( img );4834 } else {4835 $( "head" ).append( img );4836 }4837 } else {4838 $child.remove();4839 }4840 } );4841 } ), api( "woo_product_title_typography[text-transform]", function( $swipe ) {4842 $swipe.bind( function( dataAndEvents ) {4843 var $child = $( ".customizer-typography-product-title-text-transform" );4844 if ( dataAndEvents ) {4845 /** @type {string} */4846 var img = '<style class="customizer-typography-product-title-text-transform">.woocommerce div.product .product_title{text-transform: ' + dataAndEvents + ";}</style>";4847 if ( $child.length ) {4848 $child.replaceWith( img );4849 } else {4850 $( "head" ).append( img );4851 }4852 } else {4853 $child.remove();4854 }4855 } );4856 } ), api( "woo_product_price_typography[font-family]", function( $swipe ) {4857 $swipe.bind( function( pair ) {4858 if ( pair ) {4859 /** @type {string} */4860 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-product-price-font-family" );4861 var fontSize = pair.replace( " ", "%20" );4862 fontSize = fontSize.replace( ",", "%2C" );4863 /** @type {string} */4864 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;4865 if ( $( "#" + idfirst ).length ) {4866 $( "#" + idfirst ).attr( "href", fontSize );4867 } else {4868 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );4869 }4870 }4871 var $child = $( ".customizer-typography-product-price-font-family" );4872 if ( pair ) {4873 /** @type {string} */4874 var img = '<style class="customizer-typography-product-price-font-family">.woocommerce div.product p.price{font-family: ' + pair + ";}</style>";4875 if ( $child.length ) {4876 $child.replaceWith( img );4877 } else {4878 $( "head" ).append( img );4879 }4880 } else {4881 $child.remove();4882 }4883 } );4884 } ), api( "woo_product_price_typography[font-weight]", function( $swipe ) {4885 $swipe.bind( function( dataAndEvents ) {4886 var $child = $( ".customizer-typography-product-price-font-weight" );4887 if ( dataAndEvents ) {4888 /** @type {string} */4889 var img = '<style class="customizer-typography-product-price-font-weight">.woocommerce div.product p.price{font-weight: ' + dataAndEvents + ";}</style>";4890 if ( $child.length ) {4891 $child.replaceWith( img );4892 } else {4893 $( "head" ).append( img );4894 }4895 } else {4896 $child.remove();4897 }4898 } );4899 } ), api( "woo_product_price_typography[font-style]", function( $swipe ) {4900 $swipe.bind( function( dataAndEvents ) {4901 var $child = $( ".customizer-typography-product-price-font-style" );4902 if ( dataAndEvents ) {4903 /** @type {string} */4904 var img = '<style class="customizer-typography-product-price-font-style">.woocommerce div.product p.price{font-style: ' + dataAndEvents + ";}</style>";4905 if ( $child.length ) {4906 $child.replaceWith( img );4907 } else {4908 $( "head" ).append( img );4909 }4910 } else {4911 $child.remove();4912 }4913 } );4914 } ), api( "woo_product_price_typography[font-size]", function( $swipe ) {4915 $swipe.bind( function( dataAndEvents ) {4916 var $child = $( ".customizer-typography-product-price-font-size" );4917 if ( dataAndEvents ) {4918 /** @type {string} */4919 var img = '<style class="customizer-typography-product-price-font-size">.woocommerce div.product p.price{font-size: ' + dataAndEvents + ";}</style>";4920 if ( $child.length ) {4921 $child.replaceWith( img );4922 } else {4923 $( "head" ).append( img );4924 }4925 } else {4926 $child.remove();4927 }4928 } );4929 } ), api( "woo_product_price_tablet_typography[font-size]", function( $swipe ) {4930 $swipe.bind( function( dataAndEvents ) {4931 var $child = $( ".customizer-typography-product-price-tablet-font-size" );4932 if ( dataAndEvents ) {4933 /** @type {string} */4934 var img = '<style class="customizer-typography-product-price-tablet-font-size">@media (max-width: 768px){.woocommerce div.product p.price{font-size: ' + dataAndEvents + ";}}</style>";4935 if ( $child.length ) {4936 $child.replaceWith( img );4937 } else {4938 $( "head" ).append( img );4939 }4940 } else {4941 $child.remove();4942 }4943 } );4944 } ), api( "woo_product_price_mobile_typography[font-size]", function( $swipe ) {4945 $swipe.bind( function( dataAndEvents ) {4946 var $child = $( ".customizer-typography-product-price-mobile-font-size" );4947 if ( dataAndEvents ) {4948 /** @type {string} */4949 var img = '<style class="customizer-typography-product-price-mobile-font-size">@media (max-width: 480px){.woocommerce div.product p.price{font-size: ' + dataAndEvents + ";}}</style>";4950 if ( $child.length ) {4951 $child.replaceWith( img );4952 } else {4953 $( "head" ).append( img );4954 }4955 } else {4956 $child.remove();4957 }4958 } );4959 } ), api( "woo_product_price_typography[line-height]", function( $swipe ) {4960 $swipe.bind( function( dataAndEvents ) {4961 var $child = $( ".customizer-typography-product-price-line-height" );4962 if ( dataAndEvents ) {4963 /** @type {string} */4964 var img = '<style class="customizer-typography-product-price-line-height">.woocommerce div.product p.price{line-height: ' + dataAndEvents + ";}</style>";4965 if ( $child.length ) {4966 $child.replaceWith( img );4967 } else {4968 $( "head" ).append( img );4969 }4970 } else {4971 $child.remove();4972 }4973 } );4974 } ), api( "woo_product_price_tablet_typography[line-height]", function( $swipe ) {4975 $swipe.bind( function( dataAndEvents ) {4976 var $child = $( ".customizer-typography-product-price-tablet-line-height" );4977 if ( dataAndEvents ) {4978 /** @type {string} */4979 var img = '<style class="customizer-typography-product-price-tablet-line-height">@media (max-width: 768px){.woocommerce div.product p.price{line-height: ' + dataAndEvents + ";}}</style>";4980 if ( $child.length ) {4981 $child.replaceWith( img );4982 } else {4983 $( "head" ).append( img );4984 }4985 } else {4986 $child.remove();4987 }4988 } );4989 } ), api( "woo_product_price_mobile_typography[line-height]", function( $swipe ) {4990 $swipe.bind( function( dataAndEvents ) {4991 var $child = $( ".customizer-typography-product-price-mobile-line-height" );4992 if ( dataAndEvents ) {4993 /** @type {string} */4994 var img = '<style class="customizer-typography-product-price-mobile-line-height">@media (max-width: 480px){.woocommerce div.product p.price{line-height: ' + dataAndEvents + ";}}</style>";4995 if ( $child.length ) {4996 $child.replaceWith( img );4997 } else {4998 $( "head" ).append( img );4999 }5000 } else {5001 $child.remove();5002 }5003 } );5004 } ), api( "woo_product_price_typography[letter-spacing]", function( $swipe ) {5005 $swipe.bind( function( dataAndEvents ) {5006 var $child = $( ".customizer-typography-product-price-letter-spacing" );5007 if ( dataAndEvents ) {5008 /** @type {string} */5009 var img = '<style class="customizer-typography-product-price-letter-spacing">.woocommerce div.product p.price{letter-spacing: ' + dataAndEvents + "px;}</style>";5010 if ( $child.length ) {5011 $child.replaceWith( img );5012 } else {5013 $( "head" ).append( img );5014 }5015 } else {5016 $child.remove();5017 }5018 } );5019 } ), api( "woo_product_price_tablet_typography[letter-spacing]", function( $swipe ) {5020 $swipe.bind( function( dataAndEvents ) {5021 var $child = $( ".customizer-typography-product-price-tablet-letter-spacing" );5022 if ( dataAndEvents ) {5023 /** @type {string} */5024 var img = '<style class="customizer-typography-product-price-tablet-letter-spacing">@media (max-width: 768px){.woocommerce div.product p.price{letter-spacing: ' + dataAndEvents + "px;}}</style>";5025 if ( $child.length ) {5026 $child.replaceWith( img );5027 } else {5028 $( "head" ).append( img );5029 }5030 } else {5031 $child.remove();5032 }5033 } );5034 } ), api( "woo_product_price_mobile_typography[letter-spacing]", function( $swipe ) {5035 $swipe.bind( function( dataAndEvents ) {5036 var $child = $( ".customizer-typography-product-price-mobile-letter-spacing" );5037 if ( dataAndEvents ) {5038 /** @type {string} */5039 var img = '<style class="customizer-typography-product-price-mobile-letter-spacing">@media (max-width: 480px){.woocommerce div.product p.price{letter-spacing: ' + dataAndEvents + "px;}}</style>";5040 if ( $child.length ) {5041 $child.replaceWith( img );5042 } else {5043 $( "head" ).append( img );5044 }5045 } else {5046 $child.remove();5047 }5048 } );5049 } ), api( "woo_product_price_typography[text-transform]", function( $swipe ) {5050 $swipe.bind( function( dataAndEvents ) {5051 var $child = $( ".customizer-typography-product-price-text-transform" );5052 if ( dataAndEvents ) {5053 /** @type {string} */5054 var img = '<style class="customizer-typography-product-price-text-transform">.woocommerce div.product p.price{text-transform: ' + dataAndEvents + ";}</style>";5055 if ( $child.length ) {5056 $child.replaceWith( img );5057 } else {5058 $( "head" ).append( img );5059 }5060 } else {5061 $child.remove();5062 }5063 } );5064 } ), api( "woo_product_add_to_cart_typography[font-family]", function( $swipe ) {5065 $swipe.bind( function( pair ) {5066 if ( pair ) {5067 /** @type {string} */5068 var idfirst = ( pair.trim().toLowerCase().replace( " ", "-" ), "customizer-typography-add-to-cart-font-family" );5069 var fontSize = pair.replace( " ", "%20" );5070 fontSize = fontSize.replace( ",", "%2C" );5071 /** @type {string} */5072 fontSize = oceanwp.googleFontsUrl + "/css?family=" + pair + ":" + oceanwp.googleFontsWeight;5073 if ( $( "#" + idfirst ).length ) {5074 $( "#" + idfirst ).attr( "href", fontSize );5075 } else {5076 $( "head" ).append( '<link id="' + idfirst + '" rel="stylesheet" type="text/css" href="' + fontSize + '">' );5077 }5078 }5079 var $child = $( ".customizer-typography-add-to-cart-font-family" );5080 if ( pair ) {5081 /** @type {string} */5082 var img = '<style class="customizer-typography-add-to-cart-font-family">.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{font-family: ' + pair + ";}</style>";5083 if ( $child.length ) {5084 $child.replaceWith( img );5085 } else {5086 $( "head" ).append( img );5087 }5088 } else {5089 $child.remove();5090 }5091 } );5092 } ), api( "woo_product_add_to_cart_typography[font-weight]", function( $swipe ) {5093 $swipe.bind( function( dataAndEvents ) {5094 var $child = $( ".customizer-typography-add-to-cart-font-weight" );5095 if ( dataAndEvents ) {5096 /** @type {string} */5097 var img = '<style class="customizer-typography-add-to-cart-font-weight">.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{font-weight: ' + dataAndEvents + ";}</style>";5098 if ( $child.length ) {5099 $child.replaceWith( img );5100 } else {5101 $( "head" ).append( img );5102 }5103 } else {5104 $child.remove();5105 }5106 } );5107 } ), api( "woo_product_add_to_cart_typography[font-style]", function( $swipe ) {5108 $swipe.bind( function( dataAndEvents ) {5109 var $child = $( ".customizer-typography-add-to-cart-font-style" );5110 if ( dataAndEvents ) {5111 /** @type {string} */5112 var img = '<style class="customizer-typography-add-to-cart-font-style">.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{font-style: ' + dataAndEvents + ";}</style>";5113 if ( $child.length ) {5114 $child.replaceWith( img );5115 } else {5116 $( "head" ).append( img );5117 }5118 } else {5119 $child.remove();5120 }5121 } );5122 } ), api( "woo_product_add_to_cart_typography[font-size]", function( $swipe ) {5123 $swipe.bind( function( dataAndEvents ) {5124 var $child = $( ".customizer-typography-add-to-cart-font-size" );5125 if ( dataAndEvents ) {5126 /** @type {string} */5127 var img = '<style class="customizer-typography-add-to-cart-font-size">.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{font-size: ' + dataAndEvents + ";}</style>";5128 if ( $child.length ) {5129 $child.replaceWith( img );5130 } else {5131 $( "head" ).append( img );5132 }5133 } else {5134 $child.remove();5135 }5136 } );5137 } ), api( "woo_product_add_to_cart_tablet_typography[font-size]", function( $swipe ) {5138 $swipe.bind( function( dataAndEvents ) {5139 var $child = $( ".customizer-typography-woo_product_add_to_cart-tablet-font-size" );5140 if ( dataAndEvents ) {5141 /** @type {string} */5142 var img = '<style class="customizer-typography-woo_product_add_to_cart-tablet-font-size">@media (max-width: 768px){.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{font-size: ' + dataAndEvents + ";}}</style>";5143 if ( $child.length ) {5144 $child.replaceWith( img );5145 } else {5146 $( "head" ).append( img );5147 }5148 } else {5149 $child.remove();5150 }5151 } );5152 } ), api( "woo_product_add_to_cart_mobile_typography[font-size]", function( $swipe ) {5153 $swipe.bind( function( dataAndEvents ) {5154 var $child = $( ".customizer-typography-woo_product_add_to_cart-mobile-font-size" );5155 if ( dataAndEvents ) {5156 /** @type {string} */5157 var img = '<style class="customizer-typography-woo_product_add_to_cart-mobile-font-size">@media (max-width: 480px){.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{font-size: ' + dataAndEvents + ";}}</style>";5158 if ( $child.length ) {5159 $child.replaceWith( img );5160 } else {5161 $( "head" ).append( img );5162 }5163 } else {5164 $child.remove();5165 }5166 } );5167 } ), api( "woo_product_add_to_cart_typography[color]", function( $swipe ) {5168 $swipe.bind( function( dataAndEvents ) {5169 var $child = $( ".customizer-typography-add-to-cart-color" );5170 if ( dataAndEvents ) {5171 /** @type {string} */5172 var img = '<style class="customizer-typography-add-to-cart-color">.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{color: ' + dataAndEvents + ";}</style>";5173 if ( $child.length ) {5174 $child.replaceWith( img );5175 } else {5176 $( "head" ).append( img );5177 }5178 } else {5179 $child.remove();5180 }5181 } );5182 } ), api( "woo_product_add_to_cart_typography[line-height]", function( $swipe ) {5183 $swipe.bind( function( dataAndEvents ) {5184 var $child = $( ".customizer-typography-add-to-cart-line-height" );5185 if ( dataAndEvents ) {5186 /** @type {string} */5187 var img = '<style class="customizer-typography-add-to-cart-line-height">.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{line-height: ' + dataAndEvents + ";}</style>";5188 if ( $child.length ) {5189 $child.replaceWith( img );5190 } else {5191 $( "head" ).append( img );5192 }5193 } else {5194 $child.remove();5195 }5196 } );5197 } ), api( "woo_product_add_to_cart_tablet_typography[line-height]", function( $swipe ) {5198 $swipe.bind( function( dataAndEvents ) {5199 var $child = $( ".customizer-typography-woo_product_add_to_cart-tablet-line-height" );5200 if ( dataAndEvents ) {5201 /** @type {string} */5202 var img = '<style class="customizer-typography-woo_product_add_to_cart-tablet-line-height">@media (max-width: 768px){.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{line-height: ' + dataAndEvents + ";}}</style>";5203 if ( $child.length ) {5204 $child.replaceWith( img );5205 } else {5206 $( "head" ).append( img );5207 }5208 } else {5209 $child.remove();5210 }5211 } );5212 } ), api( "woo_product_add_to_cart_mobile_typography[line-height]", function( $swipe ) {5213 $swipe.bind( function( dataAndEvents ) {5214 var $child = $( ".customizer-typography-woo_product_add_to_cart-mobile-line-height" );5215 if ( dataAndEvents ) {5216 /** @type {string} */5217 var img = '<style class="customizer-typography-woo_product_add_to_cart-mobile-line-height">@media (max-width: 480px){.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{line-height: ' + dataAndEvents + ";}}</style>";5218 if ( $child.length ) {5219 $child.replaceWith( img );5220 } else {5221 $( "head" ).append( img );5222 }5223 } else {5224 $child.remove();5225 }5226 } );5227 } ), api( "woo_product_add_to_cart_typography[letter-spacing]", function( $swipe ) {5228 $swipe.bind( function( dataAndEvents ) {5229 var $child = $( ".customizer-typography-add-to-cart-letter-spacing" );5230 if ( dataAndEvents ) {5231 /** @type {string} */5232 var img = '<style class="customizer-typography-add-to-cart-letter-spacing">.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{letter-spacing: ' + dataAndEvents + "px;}</style>";5233 if ( $child.length ) {5234 $child.replaceWith( img );5235 } else {5236 $( "head" ).append( img );5237 }5238 } else {5239 $child.remove();5240 }5241 } );5242 } ), api( "woo_product_add_to_cart_tablet_typography[letter-spacing]", function( $swipe ) {5243 $swipe.bind( function( dataAndEvents ) {5244 var $child = $( ".customizer-typography-woo_product_add_to_cart-tablet-letter-spacing" );5245 if ( dataAndEvents ) {5246 /** @type {string} */5247 var img = '<style class="customizer-typography-woo_product_add_to_cart-tablet-letter-spacing">@media (max-width: 768px){.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{letter-spacing: ' + dataAndEvents + "px;}}</style>";5248 if ( $child.length ) {5249 $child.replaceWith( img );5250 } else {5251 $( "head" ).append( img );5252 }5253 } else {5254 $child.remove();5255 }5256 } );5257 } ), api( "woo_product_add_to_cart_mobile_typography[letter-spacing]", function( $swipe ) {5258 $swipe.bind( function( dataAndEvents ) {5259 var $child = $( ".customizer-typography-woo_product_add_to_cart-mobile-letter-spacing" );5260 if ( dataAndEvents ) {5261 /** @type {string} */5262 var img = '<style class="customizer-typography-woo_product_add_to_cart-mobile-letter-spacing">@media (max-width: 480px){.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{letter-spacing: ' + dataAndEvents + "px;}}</style>";5263 if ( $child.length ) {5264 $child.replaceWith( img );5265 } else {5266 $( "head" ).append( img );5267 }5268 } else {5269 $child.remove();5270 }5271 } );5272 } ), api( "woo_product_add_to_cart_typography[text-transform]", function( $swipe ) {5273 $swipe.bind( function( dataAndEvents ) {5274 var $child = $( ".customizer-typography-add-to-cart-text-transform" );5275 if ( dataAndEvents ) {5276 /** @type {string} */5277 var img = '<style class="customizer-typography-add-to-cart-text-transform">.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .product-inner .added_to_cart{text-transform: ' + dataAndEvents + ";}</style>";5278 if ( $child.length ) {5279 $child.replaceWith( img );5280 } else {5281 $( "head" ).append( img );5282 }5283 } else {5284 $child.remove();5285 }5286 } );5287 } );...
server.js
Source:server.js
1var express = require('express')2var app = express()3var http = require('http')4app.use(express.static(__dirname + '/Web_design'));5var bookingnumber = 10006var bodyParser = require('body-parser')7app.use(bodyParser.urlencoded({ extended: true }))8var pg = require('pg')9var conString = "postgres://postgres:postgres@localhost:5432/AirCobra"10var client = new pg.Client(conString)11var email = ''12var price = 10000013var duration = '150:00:00'14var airline = ''15var flight = ''16var cl = ''17var size = ''18//EXPRESS JAVASCRIPT19app.set('view engine', 'ejs');20//GET21app.get('/', function(req, response) {22 response.sendFile('Web_design/i.html', {root: __dirname });23});24app.get('/sign_up.html', function(req, response){25 response.sendFile('Web_design/sign_up.html', {root: __dirname });26})27app.get('/wsign_up.html', function(req, response){28 response.sendFile('Web_design/wsign_up.html', {root: __dirname });29})30app.get('/login.html', function(req, response){31 response.sendFile('Web_design/login.html', {root: __dirname });32})33app.get('/wlogin.html', function(req, response){34 response.sendFile('Web_design/wlogin.html', {root: __dirname });35})36app.get('/booking.html', function(req, response){37 response.sendFile('Web_design/booking.html', {root: __dirname });38})39app.get('/ebooking.html', function(req, response){40 response.sendFile('Web_design/ebooking.html', {root: __dirname });41})42app.get('/abooking.html', function(req, response){43 response.sendFile('Web_design/abooking.html', {root: __dirname });44})45app.get('/wbooking.html', function(req, response){46 response.sendFile('Web_design/wbooking.html', {root: __dirname });47})48app.get('/i.html', function(req, response){49 response.sendFile('Web_design/i.html', {root: __dirname });50})51app.get('/admin', function(req, response){52 var customer = []53 var creditcard = []54 var flight = []55 var airline = []56 var airport = []57 var price = []58 var booking = []59 var values = []60 var text1 = "SELECT * FROM customer"61 var text2 = "SELECT * FROM creditcard"62 var text3 = "SELECT * FROM flight"63 var text4 = "SELECT * FROM airport"64 var text5 = "SELECT * FROM airline"65 var text6 = "SELECT * FROM booking"66 var text7 = "SELECT * FROM price"67 pg.connect(conString, function (err, client, done) {68 if (err) {69 return console.error('could not connect to postgres', err)70 } 71 client.query(text1, values, (err, res) => {72 if (err) {73 console.log (err.stack)74 done75 response.sendFile('Web_design/abooking.html', {root: __dirname })76 } else{77 console.log(res.rows[0])78 for(i = 0; i < res.rows.length; i++){79 customer.push({80 fn : res.rows[i].firstname,81 ln : res.rows[i].lastname,82 em : res.rows[i].email,83 ad : res.rows[i].address,84 hi : res.rows[i].hiata,85 })86 }87 }88 })89 client.query(text2, values, (err, res) => {90 if (err) {91 console.log (err.stack)92 done93 response.sendFile('Web_design/abooking.html', {root: __dirname })94 } else{95 console.log(res.rows[0])96 for(i = 0; i < res.rows.length; i++){97 creditcard.push({98 cn : res.rows[i].creditcardnumber,99 pa : res.rows[i].paymentaddress,100 em : res.rows[i].email,101 })102 }103 }104 })105 client.query(text3, values, (err, res) => {106 if (err) {107 console.log (err.stack)108 done109 response.sendFile('Web_design/abooking.html', {root: __dirname })110 } else{111 console.log(res.rows[0])112 for(i = 0; i < res.rows.length; i++){113 flight.push({114 ac : res.rows[i].airlinecode,115 fn : res.rows[i].flightnumber,116 ia : res.rows[i].iata,117 dt : res.rows[i].date,118 di : res.rows[i].diata,119 ddt : res.rows[i].ddate,120 fs : res.rows[i].fseat,121 es : res.rows[i].eseat122 })123 }124 }125 })126 client.query(text4, values, (err, res) => {127 if (err) {128 console.log (err.stack)129 done130 response.sendFile('Web_design/abooking.html', {root: __dirname })131 } else{132 console.log(res.rows[0])133 for(i = 0; i < res.rows.length; i++){134 airport.push({135 co : res.rows[i].country,136 ia : res.rows[i].iata,137 st : res.rows[i].state,138 ap : res.rows[i].apname139 })140 }141 }142 })143 client.query(text5, values, (err, res) => {144 if (err) {145 console.log (err.stack)146 done147 response.sendFile('Web_design/abooking.html', {root: __dirname })148 } else{149 console.log(res.rows[0])150 for(i = 0; i < res.rows.length; i++){151 airline.push({152 ai : res.rows[i].airlinecode,153 ia : res.rows[i].iata,154 fn : res.rows[i].fullname,155 co : res.rows[i].country_of_origin156 })157 }158 }159 })160 client.query(text6, values, (err, res) => {161 if (err) {162 console.log (err.stack)163 done164 response.sendFile('Web_design/abooking.html', {root: __dirname })165 } else{166 console.log(res.rows[0])167 for(i = 0; i < res.rows.length; i++){168 booking.push({169 bo : res.rows[i].bookingnumber,170 fl : res.rows[i].flightnumber,171 ai : res.rows[i].airlinecode,172 cn : res.rows[i].creditcardnumber,173 se : res.rows[i].seatclass,174 em : res.rows[i].email175 })176 }177 }178 })179 client.query(text7, values, (err, res) => {180 if (err) {181 console.log (err.stack)182 done183 response.sendFile('Web_design/abooking.html', {root: __dirname })184 } else{185 console.log(res.rows[0])186 for(i = 0; i < res.rows.length; i++){187 price.push({188 ac : res.rows[i].airlinecode,189 fn : res.rows[i].flightnumber,190 fp : res.rows[i].firstclassprice,191 ep : res.rows[i].economyclassprice192 })193 }194 done195 response.render('pages/admin',{cust : customer,196 book : booking,197 cred : creditcard,198 price : price,199 airl : airline,200 airp : airport,201 flight : flight })202 }203 })204 })205})206app.get('/manage', function(req, response){207 pg.connect(conString, function (err, client, done) {208 if (err) {209 return console.error('could not connect to postgres', err)210 } 211 const text4 = 'SELECT booking.bookingnumber as b,booking.flightnumber as f,booking.airlinecode as a,booking.creditcardnumber as c,booking.seatclass as s FROM booking WHERE email = $1'212 const values4 = [email]213 client.query(text4, values4, (err, res) => {214 if (err) {215 console.log (err.stack)216 response.sendFile('Web_design/abooking.html', {root: __dirname })217 done218 } else{219 console.log(res.rows[0])220 var result = []221 for(i = 0; i < res.rows.length; i++){222 result.push({223 bn : res.rows[i].b,224 fl : res.rows[i].f,225 ac : res.rows[i].a,226 cn : res.rows[i].c,227 se : res.rows[i].s,228 })229 }230 console.log(result)231 response.render('pages/manage',{drinks : result})232 }233 })234 })235})236app.get('/update', function(req, response){237 pg.connect(conString, function (err, client, done) {238 if (err) {239 return console.error('could not connect to postgres', err)240 } 241 var text4 = 'SELECT customer.firstname as f,customer.lastname as l,customer.address as a,customer.hiata as h FROM customer where email = $1'242 var values4 = [email]243 var result2 = []244 var result = []245 var text = 'SELECT (creditcard.creditcardnumber) as cn, (creditcard.paymentaddress) as add FROM creditcard WHERE email = $1'246 client.query(text4, values4, (err, res) => {247 if (err) {248 console.log (err.stack)249 response.sendFile('Web_design/wbooking.html', {root: __dirname })250 done251 } else{252 console.log(res.rows[0])253 for(i = 0; i < res.rows.length; i++){254 result.push({255 fn : res.rows[i].f,256 ln : res.rows[i].l,257 hi : res.rows[i].h,258 em : email,259 ad : res.rows[i].a,260 })261 }262 console.log(result)263 }264 })265 client.query(text, values4, (err, res) => {266 if (err) {267 console.log (err.stack)268 response.sendFile('Web_design/wbooking.html', {root: __dirname })269 done270 } else{271 console.log(res.rows[0])272 for(i = 0; i < res.rows.length; i++){273 result2.push({274 cnumber : res.rows[i].cn,275 pa : res.rows[i].add276 })277 }278 console.log(result)279 response.render('pages/update',{drinks : result, 280 drinks2 : result2})281 }282 })283 })284})285//POST286app.post('/login', function(req, response) {287 pg.connect(conString, function (err, client, done) {288 if (err) {289 return console.error('could not connect to postgres', err)290 } 291 var credit = parseInt(req.body.credit);292 const tex = 'SELECT FROM customer WHERE email = $1 AND firstname = $2'293 const value = [req.body.email,req.body.fname]294 client.query(tex, value, (err, res) => {295 if (err) {296 console.log (err.stack)297 done298 response.sendFile('Web_design/login.html', {root: __dirname })299 } else{300 console.log(res.rows[0])301 done302 if (typeof(res.rows[0]) != "undefined"){303 email = req.body.email304 response.sendFile('Web_design/booking.html', {root: __dirname })305 }306 else{307 response.sendFile('Web_design/wlogin.html', {root: __dirname })308 }309 }310 })311 })312})313app.post('/myaction', function(req, response) {314 pg.connect(conString, function (err, client, done) {315 if (err) {316 return console.error('could not connect to postgres', err)317 } 318 var credit = parseInt(req.body.credit);319 const tex = 'INSERT INTO customer (firstname,lastname,email,address,hiata) VALUES($1, $2, $3, $4, $5) RETURNING *'320 const value = [req.body.fname,req.body.lname,req.body.email,req.body.add,req.body.hiata]321 email = req.body.email322 client.query(tex, value, (err, res) => {323 if (err) {324 console.log (err.stack)325 done326 response.sendFile('Web_design/wsign_up.html', {root: __dirname })327 } else{328 console.log(res.rows[0])329 done330 if (typeof(res.rows[0]) != "undefined"){331 email = req.body.email332 response.sendFile('Web_design/booking.html', {root: __dirname })333 }334 else{335 response.sendFile('Web_design/wsign_up.html', {root: __dirname })336 }337 }338 })339 })340})341app.post('/updateInfo', function(req, response) {342 pg.connect(conString, function (err, client, done) {343 if (err) {344 return console.error('could not connect to postgres', err)345 } 346 const text = "UPDATE customer SET firstname = $1, lastname = $2, address = $3, email = $4, hiata = $5 WHERE email = $6 RETURNING *"347 const values = [req.body.fname,req.body.lname,req.body.add,req.body.email,req.body.hiata,email]348 client.query(text, values, (err, res) => {349 if (err) {350 console.log (err.stack)351 done352 response.sendFile('Web_design/wbooking.html', {root: __dirname })353 } else{354 console.log(res.rows[0])355 done356 if (typeof(res.rows[0]) != "undefined"){357 email = req.body.email358 response.sendFile('Web_design/abooking.html', {root: __dirname })359 }360 else{361 response.sendFile('Web_design/wbooking.html', {root: __dirname })362 } 363 }364 })365 })366})367 368app.post('/deleteCredit', function(req, response) {369 pg.connect(conString, function (err, client, done) {370 if (err) {371 return console.error('could not connect to postgres', err)372 } 373 var credit = parseInt(req.body.credit)374 const text5 = 'DELETE FROM creditcard WHERE email = $3 AND (creditcardnumber = $1 OR paymentaddress = $2) RETURNING *'375 const values5 = [credit,req.body.dbadd,email]376 client.query(text5, values5, (err, res) => {377 if (err) {378 console.log (err.stack)379 done380 response.sendFile('Web_design/wbooking.html', {root: __dirname })381 } else{382 console.log(res.rows[0])383 done384 }385 })386 response.sendFile('Web_design/abooking.html', {root: __dirname })387 })388})389app.post('/addCredit', function(req, response) {390 pg.connect(conString, function (err, client, done) {391 if (err) {392 return console.error('could not connect to postgres', err)393 } 394 var credit = parseInt(req.body.credit)395 const text4 = 'INSERT INTO creditcard (email,creditcardnumber,paymentaddress) VALUES($1, $2, $3) RETURNING *'396 const values4 = [email,credit,req.body.badd]397 client.query(text4, values4, (err, res) => {398 if (err) {399 console.log (err.stack)400 done401 response.sendFile('Web_design/wbooking.html', {root: __dirname })402 } else{403 console.log(res.rows[0])404 done405 }406 })407 response.sendFile('Web_design/abooking.html', {root: __dirname })408 })409})410app.post('/book0', function(req, response){411 var temp2 = req.body.ac412 var temp = temp2.split('.')413 airline = temp[1].toString()414 flight = temp[0].toString()415 temp3 = airline.split(',')416 temp4 = flight.split(',')417 size = req.body.c418 if(req.body.cl == 'First')419 cl = 'First'420 else421 cl = 'Economy'422 var result = []423 pg.connect(conString, function (err, client, done) {424 if (err) {425 return console.error('could not connect to postgres', err)426 } 427 var credit = parseInt(req.body.credit)428 var tex = 'SELECT (creditcard.creditcardnumber) as a FROM creditcard WHERE email = $1'429 var values4 = [email]430 client.query(tex, values4, (err, res) => {431 if (err) {432 console.log (err.stack)433 done434 response.sendFile('Web_design/wbooking.html', {root: __dirname })435 } else{436 for(i = 0; i < res.rows.length; i++){437 result.push({438 cnumber : res.rows[i].a439 })440 }441 var flights = []442 for(j = 0;j < temp3.length;j++){443 flights.push({444 ac : temp3[j],445 fn : temp4[j]446 })447 }448 console.log(result)449 response.render('pages/purchase',{drinks : result,450 fly : flights, 451 cl: cl})452 }453 })454 })455})456app.post('/bookc', function(req, response){457 var text = []458 var text2 = []459 var value = []460 var nairline = airline.split(',')461 var nflight = flight.split(',')462 var seat = 'eseat'463 if(cl == 'First')464 seat = 'fseat'465 pg.connect(conString, function (err, client, done) {466 if (err) {467 return console.error('could not connect to postgres', err)468 } 469 for(var i = 0; i < nairline.length; i++){470 text.push('UPDATE flight SET '+seat+' = '+seat+' - 1 WHERE (airlinecode = \''+nairline[0]+'\' AND flightnumber = '+parseInt(nflight[0])+')')471 text2.push('INSERT INTO booking (bookingnumber,flightnumber,airlinecode,creditcardnumber,seatclass,email) VALUES('+bookingnumber+','+parseInt(nflight[i])+',\''+nairline[i]+'\','+parseInt(req.body.ac)+',\''+cl+'\',\''+email+'\')')472 console.log(text[i])473 console.log(text2[i])474 }475 if(nairline.length == 1){476 client.query(text[0], value, (err, res) => {477 if (err) {478 console.log (err.stack)479 done480 response.sendFile('Web_design/wbooking.html', {root: __dirname })481 } 482 console.log('yay')483 done484 })485 client.query(text2[0], value, (err, res) => {486 if (err) {487 console.log (err.stack)488 done489 response.sendFile('Web_design/wbooking.html', {root: __dirname })490 } else{491 done492 bookingnumber++493 response.sendFile('Web_design/abooking.html', {root: __dirname })494 }495 })496 }497 if(nairline.length == 2){498 client.query(text[1], value, (err, res) => {499 if (err) {500 console.log (err.stack)501 done502 response.sendFile('Web_design/wbooking.html', {root: __dirname })503 } 504 console.log('yay')505 done506 })507 client.query(text2[1], value, (err, res) => {508 if (err) {509 console.log (err.stack)510 done511 response.sendFile('Web_design/wbooking.html', {root: __dirname })512 } else{513 done514 }515 })516 client.query(text[0], value, (err, res) => {517 if (err) {518 console.log (err.stack)519 done520 response.sendFile('Web_design/wbooking.html', {root: __dirname })521 } 522 console.log('yay')523 done524 })525 client.query(text2[0], value, (err, res) => {526 if (err) {527 console.log (err.stack)528 done529 response.sendFile('Web_design/wbooking.html', {root: __dirname })530 } else{531 done532 bookingnumber++533 response.sendFile('Web_design/abooking.html', {root: __dirname })534 }535 })536 }537 if(nairline.length == 3){538 client.query(text[2], value, (err, res) => {539 if (err) {540 console.log (err.stack)541 done542 response.sendFile('Web_design/wbooking.html', {root: __dirname })543 } 544 console.log('yay')545 done546 })547 client.query(text2[2], value, (err, res) => {548 if (err) {549 console.log (err.stack)550 done551 response.sendFile('Web_design/wbooking.html', {root: __dirname })552 } else{553 done554 }555 })556 client.query(text[1], value, (err, res) => {557 if (err) {558 console.log (err.stack)559 done560 response.sendFile('Web_design/wbooking.html', {root: __dirname })561 } 562 console.log('yay')563 done564 })565 client.query(text2[1], value, (err, res) => {566 if (err) {567 console.log (err.stack)568 done569 response.sendFile('Web_design/wbooking.html', {root: __dirname })570 } else{571 done572 }573 })574 client.query(text[0], value, (err, res) => {575 if (err) {576 console.log (err.stack)577 done578 response.sendFile('Web_design/wbooking.html', {root: __dirname })579 } 580 console.log('yay')581 done582 })583 client.query(text2[0], value, (err, res) => {584 if (err) {585 console.log (err.stack)586 done587 response.sendFile('Web_design/wbooking.html', {root: __dirname })588 } else{589 done590 bookingnumber++591 response.sendFile('Web_design/abooking.html', {root: __dirname })592 }593 })594 }595 if(nairline.length == 4){596 client.query(text[3], value, (err, res) => {597 if (err) {598 console.log (err.stack)599 done600 response.sendFile('Web_design/wbooking.html', {root: __dirname })601 } 602 console.log('yay')603 done604 })605 client.query(text2[3], value, (err, res) => {606 if (err) {607 console.log (err.stack)608 done609 response.sendFile('Web_design/wbooking.html', {root: __dirname })610 } else{611 done612 }613 })614 client.query(text[2], value, (err, res) => {615 if (err) {616 console.log (err.stack)617 done618 response.sendFile('Web_design/wbooking.html', {root: __dirname })619 } 620 console.log('yay')621 done622 })623 client.query(text2[2], value, (err, res) => {624 if (err) {625 console.log (err.stack)626 done627 response.sendFile('Web_design/wbooking.html', {root: __dirname })628 } else{629 done630 }631 })632 client.query(text[1], value, (err, res) => {633 if (err) {634 console.log (err.stack)635 done636 response.sendFile('Web_design/wbooking.html', {root: __dirname })637 } 638 console.log('yay')639 done640 })641 client.query(text2[1], value, (err, res) => {642 if (err) {643 console.log (err.stack)644 done645 response.sendFile('Web_design/wbooking.html', {root: __dirname })646 } else{647 done648 }649 })650 client.query(text[0], value, (err, res) => {651 if (err) {652 console.log (err.stack)653 done654 response.sendFile('Web_design/wbooking.html', {root: __dirname })655 } 656 console.log('yay')657 done658 })659 client.query(text2[0], value, (err, res) => {660 if (err) {661 console.log (err.stack)662 done663 response.sendFile('Web_design/wbooking.html', {root: __dirname })664 } else{665 done666 bookingnumber++667 response.sendFile('Web_design/abooking.html', {root: __dirname })668 }669 })670 }671 if(nairline.length == 6){672 client.query(text[5], value, (err, res) => {673 if (err) {674 console.log (err.stack)675 done676 response.sendFile('Web_design/wbooking.html', {root: __dirname })677 } 678 console.log('yay')679 done680 })681 client.query(text2[5], value, (err, res) => {682 if (err) {683 console.log (err.stack)684 done685 response.sendFile('Web_design/wbooking.html', {root: __dirname })686 } else{687 done688 }689 })690 client.query(text[4], value, (err, res) => {691 if (err) {692 console.log (err.stack)693 done694 response.sendFile('Web_design/wbooking.html', {root: __dirname })695 } 696 console.log('yay')697 done698 })699 client.query(text2[4], value, (err, res) => {700 if (err) {701 console.log (err.stack)702 done703 response.sendFile('Web_design/wbooking.html', {root: __dirname })704 } else{705 done706 }707 })708 client.query(text[3], value, (err, res) => {709 if (err) {710 console.log (err.stack)711 done712 response.sendFile('Web_design/wbooking.html', {root: __dirname })713 } 714 console.log('yay')715 done716 })717 client.query(text2[3], value, (err, res) => {718 if (err) {719 console.log (err.stack)720 done721 response.sendFile('Web_design/wbooking.html', {root: __dirname })722 } else{723 done724 }725 })726 client.query(text[2], value, (err, res) => {727 if (err) {728 console.log (err.stack)729 done730 response.sendFile('Web_design/wbooking.html', {root: __dirname })731 } 732 console.log('yay')733 done734 })735 client.query(text2[2], value, (err, res) => {736 if (err) {737 console.log (err.stack)738 done739 response.sendFile('Web_design/wbooking.html', {root: __dirname })740 } else{741 done742 }743 })744 client.query(text[1], value, (err, res) => {745 if (err) {746 console.log (err.stack)747 done748 response.sendFile('Web_design/wbooking.html', {root: __dirname })749 } 750 console.log('yay')751 done752 })753 client.query(text2[1], value, (err, res) => {754 if (err) {755 console.log (err.stack)756 done757 response.sendFile('Web_design/wbooking.html', {root: __dirname })758 } else{759 done760 }761 })762 client.query(text[0], value, (err, res) => {763 if (err) {764 console.log (err.stack)765 done766 response.sendFile('Web_design/wbooking.html', {root: __dirname })767 } 768 console.log('yay')769 done770 })771 client.query(text2[0], value, (err, res) => {772 if (err) {773 console.log (err.stack)774 done775 response.sendFile('Web_design/wbooking.html', {root: __dirname })776 } else{777 done778 bookingnumber++779 response.sendFile('Web_design/abooking.html', {root: __dirname })780 }781 })782 }783 })784})785app.post('/deletebooking', function(req, response) {786 var temp = ((req.body.bn).toString()).split(',')787 var seat = 'eseat'788 if(temp[3]=='First')789 seat = 'fseat'790 pg.connect(conString, function (err, client, done) {791 if (err) {792 return console.error('could not connect to postgres', err)793 }794 var credit = parseInt(req.body.credit)795 const text5 = 'DELETE FROM booking WHERE email = $1 AND bookingnumber = $2'796 const values5 = [email,parseInt(temp[0])]797 var text = 'UPDATE FLIGHT SET '+seat+' = '+seat+' + 1 WHERE flightnumber = '+parseInt(temp[2])+' AND airlinecode = \''+temp[1]+'\''798 var value = []799 client.query(text5, values5, (err, res) => {800 if (err) {801 console.log (err.stack)802 done803 response.sendFile('Web_design/wbooking.html', {root: __dirname })804 } else{805 console.log(res.rows[0])806 done807 }808 })809 client.query(text, value, (err, res) => {810 if (err) {811 console.log (err.stack)812 done813 response.sendFile('Web_design/wbooking.html', {root: __dirname })814 } else{815 console.log(res.rows[0])816 done817 response.sendFile('Web_design/abooking.html', {root: __dirname })818 }819 })820 })821})822app.post('/booking', function(req, response) {823 var days = 0824 var hours = 0825 var minutes = 0826 var test = 'Economy Class'827 if(req.body.price == "First"){828 test = 'First Class'829 }830 if(req.body.dep != "Preferred Price")831 price = parseFloat(req.body.dep)832 if(req.body.dur != "Time Limit (hours)")833 duration = req.body.dur+':00:00'834 if(req.body.conn == '2'){835 pg.connect(conString, function (err, client, done) { // 2 connections COMEBACK836 if (err) {837 return console.error('could not connect to postgres', err)838 response.sendFile('Web_design/booking.html', {root: __dirname })839 } 840 var tex = ''841 var value = []842 if(req.body.check == "Search Round Trip Flights"){843 var value = [req.body.ddate,req.body.adate,req.body.iata,req.body.diata,req.body.ddate+' 24:00:00',req.body.adate+ ' 24:00:00',price,duration]844 if(req.body.order == "Flight Length"){845 if(req.body.price == "First")846 var tex = 'select a3.firstclassprice + a2.firstclassprice + a1.firstclassprice + a4.firstclassprice + a5.firstclassprice + a6.firstclassprice as tprice, ((a6.ddate - a4.date) + (a3.ddate - a1.date)) as duration, a4.iata as a4i, a5.iata as a5i, a6.iata as a6i, a1.iata as a1i,a2.iata as a2i,a3.iata as a3i, a4.diata as a4d, a5.diata as a5d, a6.diata as a6d, a1.diata as a1d,a2.diata as a2d,a3.diata as a3d,a1.firstclassprice as a1p,a2.firstclassprice as a2p,a3.firstclassprice as a3p,a4.firstclassprice as a4p,a6.firstclassprice as a6p,a5.firstclassprice as a5p, a1.fseat as a1s,a2.fseat as a2s,a3.fseat as a3s,a1.airlinecode as a1a,a2.airlinecode as a2a,a3.airlinecode as a3a,a4.fseat as a4s,a5.fseat as a5s,a6.fseat as a6s,a4.airlinecode as a4a,a5.airlinecode as a5a,a6.airlinecode as a6a, a3.flightnumber as a3f, a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a3.date as a3dt, a4.flightnumber as a4f, a5.flightnumber as a5f,a6.flightnumber as a6f,a4.date as a4dt,a5.date as a5dt,a6.date as a6dt, a3.ddate as a3ddt, a1.ddate as a1ddt,a2.ddate as a2ddt, a4.ddate as a4ddt, a5.ddate as a5ddt,a6.ddate as a6ddt from ((flight natural Join price) as a1 join (flight natural Join price) as a2 on a1.diata = a2.iata join (flight natural Join price) as a3 on a2.diata = a3.iata) cross join ((flight natural Join price) as a4 join (flight natural Join price) as a5 on a4.diata = a5.iata join (flight natural Join price) as a6 on a5.diata = a6.iata) where (a1.iata = $3 and (a3.firstclassprice + a2.firstclassprice + a1.firstclassprice + a4.firstclassprice + a5.firstclassprice + a6.firstclassprice) < $7 AND (a3.ddate - a1.date) < $8 and a3.diata = $4 and a1.fseat > 0 and a2.fseat > 0 and a3.fseat > 0 and a1.ddate <= a2.date and a2.ddate <= a3.date and a1.date >= $1 and a1.date < $5) AND (a4.iata = $4 AND a6.diata = $3 and a4.ddate <= a5.date and a4.fseat > 0 and a5.fseat > 0 and a6.fseat > 0 and a5.ddate <= a6.date and a4.date >= $2 and a4.date < $6) ORDER BY ((a6.ddate - a4.date) + (a3.ddate - a1.date)) asc'847 else848 var tex = 'select a3.economyclassprice + a2.economyclassprice + a1.economyclassprice + a4.economyclassprice + a5.economyclassprice + a6.economyclassprice as tprice, ((a6.ddate - a4.date) + (a3.ddate - a1.date)) as duration, a4.iata as a4i, a5.iata as a5i, a6.iata as a6i, a1.iata as a1i,a2.iata as a2i,a3.iata as a3i, a4.diata as a4d, a5.diata as a5d, a6.diata as a6d, a1.diata as a1d,a2.diata as a2d,a3.diata as a3d,a1.economyclassprice as a1p,a2.economyclassprice as a2p,a3.economyclassprice as a3p,a4.economyclassprice as a4p,a6.economyclassprice as a6p,a5.economyclassprice as a5p, a1.eseat as a1s,a2.eseat as a2s,a3.eseat as a3s,a1.airlinecode as a1a,a2.airlinecode as a2a,a3.airlinecode as a3a,a4.eseat as a4s,a5.eseat as a5s,a6.eseat as a6s,a4.airlinecode as a4a,a5.airlinecode as a5a,a6.airlinecode as a6a, a3.flightnumber as a3f, a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a3.date as a3dt, a4.flightnumber as a4f, a5.flightnumber as a5f,a6.flightnumber as a6f,a4.date as a4dt,a5.date as a5dt,a6.date as a6dt, a3.ddate as a3ddt, a1.ddate as a1ddt,a2.ddate as a2ddt, a4.ddate as a4ddt, a5.ddate as a5ddt,a6.ddate as a6ddt from ((flight natural Join price) as a1 join (flight natural Join price) as a2 on a1.diata = a2.iata join (flight natural Join price) as a3 on a2.diata = a3.iata) cross join ((flight natural Join price) as a4 join (flight natural Join price) as a5 on a4.diata = a5.iata join (flight natural Join price) as a6 on a5.diata = a6.iata) where (a1.iata = $3 and (a3.economyclassprice + a2.economyclassprice + a1.economyclassprice + a4.economyclassprice + a5.economyclassprice + a6.economyclassprice) < $7 AND (a3.ddate - a1.date) < $8 and a3.diata = $4 and a1.eseat > 0 and a2.eseat > 0 and a3.eseat > 0 and a1.ddate <= a2.date and a2.ddate <= a3.date and a1.date >= $1 and a1.date < $5) AND (a4.iata = $4 AND a6.diata = $3 and a4.ddate <= a5.date and a4.eseat > 0 and a5.eseat > 0 and a6.eseat > 0 and a5.ddate <= a6.date and a4.date >= $2 and a4.date < $6) ORDER BY ((a6.ddate - a4.date) + (a3.ddate - a1.date)) asc'849 }850 else{851 if(req.body.price == "First")852 var tex = 'select a3.firstclassprice + a2.firstclassprice + a1.firstclassprice + a4.firstclassprice + a5.firstclassprice + a6.firstclassprice as tprice, ((a6.ddate - a4.date) + (a3.ddate - a1.date)) as duration, a4.iata as a4i, a5.iata as a5i, a6.iata as a6i, a1.iata as a1i,a2.iata as a2i,a3.iata as a3i, a4.diata as a4d, a5.diata as a5d, a6.diata as a6d, a1.diata as a1d,a2.diata as a2d,a3.diata as a3d,a1.firstclassprice as a1p,a2.firstclassprice as a2p,a3.firstclassprice as a3p,a4.firstclassprice as a4p,a6.firstclassprice as a6p,a5.firstclassprice as a5p, a1.fseat as a1s,a2.fseat as a2s,a3.fseat as a3s,a1.airlinecode as a1a,a2.airlinecode as a2a,a3.airlinecode as a3a,a4.fseat as a4s,a5.fseat as a5s,a6.fseat as a6s,a4.airlinecode as a4a,a5.airlinecode as a5a,a6.airlinecode as a6a, a3.flightnumber as a3f, a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a3.date as a3dt, a4.flightnumber as a4f, a5.flightnumber as a5f,a6.flightnumber as a6f,a4.date as a4dt,a5.date as a5dt,a6.date as a6dt, a3.ddate as a3ddt, a1.ddate as a1ddt,a2.ddate as a2ddt, a4.ddate as a4ddt, a5.ddate as a5ddt,a6.ddate as a6ddt from ((flight natural Join price) as a1 join (flight natural Join price) as a2 on a1.diata = a2.iata join (flight natural Join price) as a3 on a2.diata = a3.iata) cross join ((flight natural Join price) as a4 join (flight natural Join price) as a5 on a4.diata = a5.iata join (flight natural Join price) as a6 on a5.diata = a6.iata) where (a1.iata = $3 and (a3.firstclassprice + a2.firstclassprice + a1.firstclassprice + a4.firstclassprice + a5.firstclassprice + a6.firstclassprice) < $7 AND (a3.ddate - a1.date) < $8 and a3.diata = $4 and a1.fseat > 0 and a2.fseat > 0 and a3.fseat > 0 and a1.ddate <= a2.date and a2.ddate <= a3.date and a1.date >= $1 and a1.date < $5) AND (a4.iata = $4 AND a6.diata = $3 and a4.ddate <= a5.date and a4.fseat > 0 and a5.fseat > 0 and a6.fseat > 0 and a5.ddate <= a6.date and a4.date >= $2 and a4.date < $6) ORDER BY (a3.firstclassprice + a2.firstclassprice + a1.firstclassprice + a4.firstclassprice + a5.firstclassprice + a6.firstclassprice) asc'853 else854 var tex = 'select a3.economyclassprice + a2.economyclassprice + a1.economyclassprice + a4.economyclassprice + a5.economyclassprice + a6.economyclassprice as tprice, ((a6.ddate - a4.date) + (a3.ddate - a1.date)) as duration, a4.iata as a4i, a5.iata as a5i, a6.iata as a6i, a1.iata as a1i,a2.iata as a2i,a3.iata as a3i, a4.diata as a4d, a5.diata as a5d, a6.diata as a6d, a1.diata as a1d,a2.diata as a2d,a3.diata as a3d,a1.economyclassprice as a1p,a2.economyclassprice as a2p,a3.economyclassprice as a3p,a4.economyclassprice as a4p,a6.economyclassprice as a6p,a5.economyclassprice as a5p, a1.eseat as a1s,a2.eseat as a2s,a3.eseat as a3s,a1.airlinecode as a1a,a2.airlinecode as a2a,a3.airlinecode as a3a,a4.eseat as a4s,a5.eseat as a5s,a6.eseat as a6s,a4.airlinecode as a4a,a5.airlinecode as a5a,a6.airlinecode as a6a, a3.flightnumber as a3f, a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a3.date as a3dt, a4.flightnumber as a4f, a5.flightnumber as a5f,a6.flightnumber as a6f,a4.date as a4dt,a5.date as a5dt,a6.date as a6dt, a3.ddate as a3ddt, a1.ddate as a1ddt,a2.ddate as a2ddt, a4.ddate as a4ddt, a5.ddate as a5ddt,a6.ddate as a6ddt from ((flight natural Join price) as a1 join (flight natural Join price) as a2 on a1.diata = a2.iata join (flight natural Join price) as a3 on a2.diata = a3.iata) cross join ((flight natural Join price) as a4 join (flight natural Join price) as a5 on a4.diata = a5.iata join (flight natural Join price) as a6 on a5.diata = a6.iata) where (a1.iata = $3 and (a3.economyclassprice + a2.economyclassprice + a1.economyclassprice + a4.economyclassprice + a5.economyclassprice + a6.economyclassprice) < $7 AND (a3.ddate - a1.date) < $8 and a3.diata = $4 and a1.eseat > 0 and a2.eseat > 0 and a3.eseat > 0 and a1.ddate <= a2.date and a2.ddate <= a3.date and a1.date >= $1 and a1.date < $5) AND (a4.iata = $4 AND a6.diata = $3 and a4.ddate <= a5.date and a4.eseat > 0 and a5.eseat > 0 and a6.eseat > 0 and a5.ddate <= a6.date and a4.date >= $2 and a4.date < $6) ORDER BY (a3.economyclassprice + a2.economyclassprice + a1.economyclassprice + a4.economyclassprice + a5.economyclassprice + a6.economyclassprice) asc'855 }856 client.query(tex, value, (err, res) => {857 if (err) {858 console.log (err.stack)859 done860 price = 100000861 duration = '150:00:00'862 response.sendFile('Web_design/wbooking.html', {root: __dirname })863 } 864 else{865 if (typeof(res.rows[0]) != "undefined"){866 console.log(res.rows)867 done868 price = 100000869 duration = '150:00:00'870 var result = []871 for(i = 0; i < res.rows.length; i++){872 hours = 0873 days = 0874 minutes = 0875 if(typeof (res.rows[i].duration.hours) != "undefined"){876 hours = res.rows[i].duration.hours877 }878 if(typeof (res.rows[i].duration.days) != "undefined"){879 days = res.rows[i].duration.days880 }881 if(typeof(res.rows[i].duration.minutes) != "undefined"){882 minutes = res.rows[i].duration.minutes883 }884 console.log(res.rows[i])885 result.push({886 duration : days+ ' days and ' +hours+ ' hours and '+minutes+ ' minutes',887 tprice : '$'+res.rows[i].tprice,888 class : test,889 ac1 : res.rows[i].a1a,890 fn1 : res.rows[i].a1f,891 iata1 : res.rows[i].a1i,892 diata1 : res.rows[i].a1d,893 dtime1 : ((res.rows[i].a1dt).toString()).substring(0,24),894 atime1 : ((res.rows[i].a1ddt).toString()).substring(0,24),895 seat1 : res.rows[i].a1s,896 price1 : res.rows[i].a1p,897 ac2 : res.rows[i].a2a,898 fn2 : res.rows[i].a2f,899 iata2 : res.rows[i].a2i,900 diata2 : res.rows[i].a2d,901 dtime2 : ((res.rows[i].a2dt).toString()).substring(0,24),902 atime2 : ((res.rows[i].a2ddt).toString()).substring(0,24),903 seat2 : res.rows[i].a2s,904 price2 : res.rows[i].a2p,905 ac3 : res.rows[i].a3a,906 fn3 : res.rows[i].a3f,907 iata3 : res.rows[i].a3i,908 diata3 : res.rows[i].a3d,909 dtime3 : ((res.rows[i].a3dt).toString()).substring(0,24),910 atime3 : ((res.rows[i].a3ddt).toString()).substring(0,24),911 seat3 : res.rows[i].a3s,912 price3 : res.rows[i].a3p,913 ac4 : res.rows[i].a4a,914 fn4 : res.rows[i].a4f,915 iata4 : res.rows[i].a4i,916 diata4 : res.rows[i].a4d,917 dtime4 : ((res.rows[i].a4dt).toString()).substring(0,24),918 atime4 : ((res.rows[i].a4ddt).toString()).substring(0,24),919 seat4 : res.rows[i].a4s,920 price4 : res.rows[i].a4p,921 ac5 : res.rows[i].a5a,922 fn5 : res.rows[i].a5f,923 iata5 : res.rows[i].a5i,924 diata5 : res.rows[i].a5d,925 dtime5 : ((res.rows[i].a5dt).toString()).substring(0,24),926 atime5 : ((res.rows[i].a5ddt).toString()).substring(0,24),927 seat5 : res.rows[i].a5s,928 price5 : res.rows[i].a5p,929 ac6 : res.rows[i].a6a,930 fn6 : res.rows[i].a6f,931 iata6 : res.rows[i].a6i,932 diata6 : res.rows[i].a6d,933 dtime6 : ((res.rows[i].a6dt).toString()).substring(0,24),934 atime6 : ((res.rows[i].a6ddt).toString()).substring(0,24),935 seat6 : res.rows[i].a6s,936 price6 : res.rows[i].a6p937 })938 }939 response.render('pages/rbooking2',{drinks : result})940 }941 else{942 console.log('empty')943 done944 price = 100000945 duration = '150:00:00'946 response.sendFile('Web_design/ebooking.html', {root: __dirname })947 }948 }949 })950 }951 else{952 var value = [req.body.ddate,req.body.iata,req.body.diata,req.body.ddate+' 24:00:00',price,duration]953 if(req.body.order == "Flight Length"){954 if(req.body.price == "First")955 var tex = 'select a3.firstclassprice + a2.firstclassprice + a3.firstclassprice as tprice, a3.ddate - a1.date as duration, a1.iata as a1i,a2.iata as a2i,a3.iata as a3i,a1.diata as a1d,a2.diata as a2d,a3.diata as a3d,a1.firstclassprice as a1p,a2.firstclassprice as a2p,a3.firstclassprice as a3p, a1.eseat as a1s,a2.eseat as a2s,a3.eseat as a3s,a1.airlinecode as a1a,a2.airlinecode as a2a,a3.airlinecode as a3a, a3.flightnumber as a3f, a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a3.date as a3dt, a3.ddate as a3ddt, a1.ddate as a1ddt,a2.ddate as a2ddt from (flight natural Join price) as a1 join (flight natural Join price) as a2 on a1.diata = a2.iata join (flight natural Join price) as a3 on a2.diata = a3.iata where (a1.iata = $2 and (a1.firstclassprice + a2.firstclassprice + a3.firstclassprice) < $5 AND (a3.ddate - a1.date) < $6 and a3.diata = $3 and a1.fseat > 0 and a2.fseat > 0 and a3.fseat > 0 and a1.ddate <= a2.date and a2.ddate <= a3.date and a1.date >= $1 and a1.date < $4) ORDER BY a3.ddate - a1.date asc'956 else957 var tex = 'select a3.economyclassprice + a2.economyclassprice + a3.economyclassprice as tprice, a3.ddate - a1.date as duration, a1.iata as a1i,a2.iata as a2i,a3.iata as a3i,a1.diata as a1d,a2.diata as a2d,a3.diata as a3d,a1.economyclassprice as a1p,a2.economyclassprice as a2p,a3.economyclassprice as a3p, a1.eseat as a1s,a2.eseat as a2s,a3.eseat as a3s,a1.airlinecode as a1a,a2.airlinecode as a2a,a3.airlinecode as a3a, a3.flightnumber as a3f, a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a3.date as a3dt, a3.ddate as a3ddt, a1.ddate as a1ddt,a2.ddate as a2ddt from (flight natural Join price) as a1 join (flight natural Join price) as a2 on a1.diata = a2.iata join (flight natural Join price) as a3 on a2.diata = a3.iata where (a1.iata = $2 and (a1.economyclassprice + a2.economyclassprice + a3.economyclassprice) < $5 AND (a3.ddate - a1.date) < $6 and a3.diata = $3 and a1.eseat > 0 and a2.eseat > 0 and a3.eseat > 0 and a1.ddate <= a2.date and a2.ddate <= a3.date and a1.date >= $1 and a1.date < $4) ORDER BY a3.ddate - a1.date asc'958 }959 else{960 if(req.body.price == "First")961 var tex = 'select a3.firstclassprice + a2.firstclassprice + a3.firstclassprice as tprice, a3.ddate - a1.date as duration, a1.iata as a1i,a2.iata as a2i,a3.iata as a3i,a1.diata as a1d,a2.diata as a2d,a3.diata as a3d,a1.firstclassprice as a1p,a2.firstclassprice as a2p,a3.firstclassprice as a3p, a1.eseat as a1s,a2.eseat as a2s,a3.eseat as a3s,a1.airlinecode as a1a,a2.airlinecode as a2a,a3.airlinecode as a3a, a3.flightnumber as a3f, a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a3.date as a3dt, a3.ddate as a3ddt, a1.ddate as a1ddt,a2.ddate as a2ddt from (flight natural Join price) as a1 join (flight natural Join price) as a2 on a1.diata = a2.iata join (flight natural Join price) as a3 on a2.diata = a3.iata where (a1.iata = $2 and (a1.firstclassprice + a2.firstclassprice + a3.firstclassprice) < $5 AND (a3.ddate - a1.date) < $6 and a3.diata = $3 and a1.fseat > 0 and a2.fseat > 0 and a3.fseat > 0 and a1.ddate <= a2.date and a2.ddate <= a3.date and a1.date >= $1 and a1.date < $4) ORDER BY a3.firstclassprice + a2.firstclassprice + a3.firstclassprice asc'962 else963 var tex = 'select a3.economyclassprice + a2.economyclassprice + a3.economyclassprice as tprice, a3.ddate - a1.date as duration, a1.iata as a1i,a2.iata as a2i,a3.iata as a3i,a1.diata as a1d,a2.diata as a2d,a3.diata as a3d,a1.economyclassprice as a1p,a2.economyclassprice as a2p,a3.economyclassprice as a3p, a1.eseat as a1s,a2.eseat as a2s,a3.eseat as a3s,a1.airlinecode as a1a,a2.airlinecode as a2a,a3.airlinecode as a3a, a3.flightnumber as a3f, a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a3.date as a3dt, a3.ddate as a3ddt, a1.ddate as a1ddt,a2.ddate as a2ddt from (flight natural Join price) as a1 join (flight natural Join price) as a2 on a1.diata = a2.iata join (flight natural Join price) as a3 on a2.diata = a3.iata where (a1.iata = $2 and (a1.economyclassprice + a2.economyclassprice + a3.economyclassprice) < $5 AND (a3.ddate - a1.date) < $6 and a3.diata = $3 and a1.eseat > 0 and a2.eseat > 0 and a3.eseat > 0 and a1.ddate <= a2.date and a2.ddate <= a3.date and a1.date >= $1 and a1.date < $4) ORDER BY a3.economyclassprice + a2.economyclassprice + a3.economyclassprice asc'964 }965 client.query(tex, value, (err, res) => {966 if (err) {967 console.log (err.stack)968 done969 price = 100000970 duration = '150:00:00'971 response.sendFile('Web_design/wbooking.html', {root: __dirname })972 } 973 else{974 if (typeof(res.rows[0]) != "undefined"){975 console.log(res.rows)976 done977 price = 100000978 duration = '150:00:00'979 var result = []980 for(i = 0; i < res.rows.length; i++){981 hours = 0982 days = 0983 minutes = 0984 if(typeof (res.rows[i].duration.hours) != "undefined"){985 hours = res.rows[i].duration.hours986 }987 if(typeof (res.rows[i].duration.days) != "undefined"){988 days = res.rows[i].duration.days989 }990 if(typeof(res.rows[i].duration.minutes) != "undefined"){991 minutes = res.rows[i].duration.minutes992 }993 console.log(res.rows[i])994 result.push({995 duration : days+ ' days and ' +hours+ ' hours and '+minutes+ ' minutes',996 tprice : '$'+res.rows[i].tprice,997 class : test,998 ac1 : res.rows[i].a1a,999 fn1 : res.rows[i].a1f,1000 iata1 : res.rows[i].a1i,1001 diata1 : res.rows[i].a1d,1002 dtime1 : ((res.rows[i].a1dt).toString()).substring(0,24),1003 atime1 : ((res.rows[i].a1ddt).toString()).substring(0,24),1004 seat1 : res.rows[i].a1s,1005 price1 : res.rows[i].a1p,1006 ac2 : res.rows[i].a2a,1007 fn2 : res.rows[i].a2f,1008 iata2 : res.rows[i].a2i,1009 diata2 : res.rows[i].a2d,1010 dtime2 : ((res.rows[i].a2dt).toString()).substring(0,24),1011 atime2 : ((res.rows[i].a2ddt).toString()).substring(0,24),1012 seat2 : res.rows[i].a2s,1013 price2 : res.rows[i].a2p,1014 ac3 : res.rows[i].a3a,1015 fn3 : res.rows[i].a3f,1016 iata3 : res.rows[i].a3i,1017 diata3 : res.rows[i].a3d,1018 dtime3 : ((res.rows[i].a3dt).toString()).substring(0,24),1019 atime3 : ((res.rows[i].a3ddt).toString()).substring(0,24),1020 seat3 : res.rows[i].a3s,1021 price3 : res.rows[i].a3p1022 })1023 }1024 response.render('pages/booking2',{drinks : result})1025 }1026 else{1027 console.log('empty')1028 done1029 price = 1000001030 duration = '150:00:00'1031 response.sendFile('Web_design/ebooking.html', {root: __dirname })1032 }1033 }1034 })1035 }1036 })1037 }1038 else if(req.body.conn == '1'){1039 pg.connect(conString, function (err, client, done) { // 1 Connection1040 if (err) {1041 return console.error('could not connect to postgres', err)1042 response.sendFile('Web_design/booking.html', {root: __dirname })1043 } 1044 var tex = ''1045 var value = []1046 if(req.body.check == "Search Round Trip Flights"){ 1047 var value = [req.body.ddate,req.body.adate,req.body.iata,req.body.diata,req.body.ddate+' 24:00:00',req.body.adate+ ' 24:00:00',price,duration]1048 if(req.body.order == "Flight Length"){1049 if(req.body.price == "First")1050 var tex = 'select a2.firstclassprice + a1.firstclassprice + a3.firstclassprice + a4.firstclassprice AS tprice, (a2.ddate - a1.date) + (a4.ddate - a3.date) AS duration,a1.iata as a1i, a3.iata as a3i, a4.iata as a4i, a2.iata as a2i, a4.diata as a4d, a3.diata as a3d, a1.diata as a1d,a2.diata as a2d,a3.firstclassprice as a3p, a4.firstclassprice as a4p, a1.firstclassprice as a1p,a2.firstclassprice as a2p,a3.fseat as a3s, a4.fseat as a4s, a1.fseat as a1s,a2.fseat as a2s,a1.airlinecode as a1a,a2.airlinecode as a2a, a3.airlinecode as a3a, a4.airlinecode as a4a, a1.flightnumber as a1f,a2.flightnumber as a2f, a3.flightnumber as a3f, a4.flightnumber as a4f, a3.date as a3dt, a4.date as a4dt, a1.date as a1dt,a2.date as a2dt, a3.ddate as a3ddt, a4.ddate as a4ddt, a1.ddate as a1ddt,a2.ddate as a2ddt from ((flight natural join price) as a1 join (flight natural join price) AS a2 on a1.diata = a2.iata) cross join ((flight natural join price) as a3 join (flight natural join price) AS a4 on a3.diata = a4.iata) where (a1.iata = $3 and a2.diata = $4 and (a2.firstclassprice + a1.firstclassprice + a3.firstclassprice + a4.firstclassprice) < $7 AND ((a2.ddate - a1.date) + (a4.ddate - a3.date)) < $8 AND a1.ddate < a2.date and a2.fseat > 0 and a1.fseat > 0 and a1.date >= $1 and a1.date < $5) AND (a3.iata = $4 and a4.diata = $3 and (a2.firstclassprice + a1.firstclassprice + a3.firstclassprice + a4.firstclassprice) < $7 AND ((a2.ddate - a1.date) + (a4.ddate - a3.date)) < $8 and a3.ddate < a4.date and a4.fseat > 0 and a3.fseat > 0 and a3.date >= $2 AND a3.date < $6) ORDER BY a2.ddate - a1.date ASC'1051 else1052 var tex = 'select a2.economyclassprice + a1.economyclassprice + a3.economyclassprice + a4.economyclassprice AS tprice, (a2.ddate - a1.date) + (a4.ddate - a3.date) AS duration,a1.iata as a1i, a3.iata as a3i, a4.iata as a4i, a2.iata as a2i, a4.diata as a4d, a3.diata as a3d, a1.diata as a1d,a2.diata as a2d,a3.economyclassprice as a3p, a4.economyclassprice as a4p, a1.economyclassprice as a1p,a2.economyclassprice as a2p,a3.eseat as a3s, a4.eseat as a4s, a1.eseat as a1s,a2.eseat as a2s,a1.airlinecode as a1a,a2.airlinecode as a2a, a3.airlinecode as a3a, a4.airlinecode as a4a, a1.flightnumber as a1f,a2.flightnumber as a2f, a3.flightnumber as a3f, a4.flightnumber as a4f, a3.date as a3dt, a4.date as a4dt, a1.date as a1dt,a2.date as a2dt, a3.ddate as a3ddt, a4.ddate as a4ddt, a1.ddate as a1ddt,a2.ddate as a2ddt from ((flight natural join price) as a1 join (flight natural join price) AS a2 on a1.diata = a2.iata) cross join ((flight natural join price) as a3 join (flight natural join price) AS a4 on a3.diata = a4.iata) where (a1.iata = $3 and a2.diata = $4 and (a2.economyclassprice + a1.economyclassprice + a3.economyclassprice + a4.economyclassprice) < $7 AND ((a2.ddate - a1.date) + (a4.ddate - a3.date)) < $8 AND a1.ddate < a2.date and a2.eseat > 0 and a1.eseat > 0 and a1.date >= $1 and a1.date < $5) AND (a3.iata = $4 and a4.diata = $3 and (a2.economyclassprice + a1.economyclassprice + a3.economyclassprice + a4.economyclassprice) < $7 AND ((a2.ddate - a1.date) + (a4.ddate - a3.date)) < $8 and a3.ddate < a4.date and a4.eseat > 0 and a3.eseat > 0 and a3.date >= $2 AND a3.date < $6) ORDER BY a2.ddate - a1.date ASC'1053 }1054 else{1055 if(req.body.price == "First")1056 var tex = 'select a2.firstclassprice + a1.firstclassprice + a3.firstclassprice + a4.firstclassprice AS tprice, (a2.ddate - a1.date) + (a4.ddate - a3.date) AS duration,a1.iata as a1i, a3.iata as a3i, a4.iata as a4i, a2.iata as a2i, a3.diata as a3d, a4.diata as a4d, a1.diata as a1d,a2.diata as a2d,a3.firstclassprice as a3p, a4.firstclassprice as a4p, a1.firstclassprice as a1p,a2.firstclassprice as a2p,a3.fseat as a3s, a4.fseat as a4s, a1.fseat as a1s,a2.fseat as a2s,a1.airlinecode as a1a,a2.airlinecode as a2a, a3.airlinecode as a3a, a4.airlinecode as a4a, a1.flightnumber as a1f,a2.flightnumber as a2f, a3.flightnumber as a3f, a4.flightnumber as a4f, a3.date as a3dt, a4.date as a4dt, a1.date as a1dt,a2.date as a2dt, a3.ddate as a3ddt, a4.ddate as a4ddt, a1.ddate as a1ddt,a2.ddate as a2ddt from ((flight natural join price) as a1 join (flight natural join price) AS a2 on a1.diata = a2.iata) cross join ((flight natural join price) as a3 join (flight natural join price) AS a4 on a3.diata = a4.iata) where (a1.iata = $3 and a2.diata = $4 and (a2.firstclassprice + a1.firstclassprice + a3.firstclassprice + a4.firstclassprice) < $7 AND ((a2.ddate - a1.date) + (a4.ddate - a3.date)) < $8 AND a1.ddate < a2.date and a2.fseat > 0 and a1.fseat > 0 and a1.date >= $1 and a1.date < $5) AND (a3.iata = $4 and a4.diata = $3 and (a2.firstclassprice + a1.firstclassprice + a3.firstclassprice + a4.firstclassprice) < $7 AND ((a2.ddate - a1.date) + (a4.ddate - a3.date)) < $8 and a3.ddate < a4.date and a4.fseat > 0 and a3.fseat > 0 and a3.date >= $2 AND a3.date < $6) ORDER BY a2.firstclassprice + a1.firstclassprice + a3.firstclassprice + a4.firstclassprice ASC'1057 else1058 var tex = 'select a2.economyclassprice + a1.economyclassprice + a3.economyclassprice + a4.economyclassprice AS tprice, (a2.ddate - a1.date) + (a4.ddate - a3.date) AS duration,a1.iata as a1i, a3.iata as a3i, a4.iata as a4i, a2.iata as a2i, a3.diata as a3d, a4.diata as a4d, a1.diata as a1d,a2.diata as a2d,a3.economyclassprice as a3p, a4.economyclassprice as a4p, a1.economyclassprice as a1p,a2.economyclassprice as a2p,a3.eseat as a3s, a4.eseat as a4s, a1.eseat as a1s,a2.eseat as a2s,a1.airlinecode as a1a,a2.airlinecode as a2a, a3.airlinecode as a3a, a4.airlinecode as a4a, a1.flightnumber as a1f,a2.flightnumber as a2f, a3.flightnumber as a3f, a4.flightnumber as a4f, a3.date as a3dt, a4.date as a4dt, a1.date as a1dt,a2.date as a2dt, a3.ddate as a3ddt, a4.ddate as a4ddt, a1.ddate as a1ddt,a2.ddate as a2ddt from ((flight natural join price) as a1 join (flight natural join price) AS a2 on a1.diata = a2.iata) cross join ((flight natural join price) as a3 join (flight natural join price) AS a4 on a3.diata = a4.iata) where (a1.iata = $3 and a2.diata = $4 and (a2.economyclassprice + a1.economyclassprice + a3.economyclassprice + a4.economyclassprice) < $7 AND ((a2.ddate - a1.date) + (a4.ddate - a3.date)) < $8 AND a1.ddate < a2.date and a2.eseat > 0 and a1.eseat > 0 and a1.date >= $1 and a1.date < $5) AND (a3.iata = $4 and a4.diata = $3 and (a2.economyclassprice + a1.economyclassprice + a3.economyclassprice + a4.economyclassprice) < $7 AND ((a2.ddate - a1.date) + (a4.ddate - a3.date)) < $8 and a3.ddate < a4.date and a4.eseat > 0 and a3.eseat > 0 and a3.date >= $2 AND a3.date < $6) ORDER BY a2.economyclassprice + a1.economyclassprice + a3.economyclassprice + a4.economyclassprice ASC'1059 }1060 client.query(tex, value, (err, res) => {1061 if (err) {1062 console.log (err.stack)1063 done1064 price = 1000001065 duration = '150:00:00'1066 response.sendFile('Web_design/wbooking.html', {root: __dirname })1067 } 1068 else{1069 if (typeof(res.rows[0]) != "undefined"){1070 console.log(res.rows)1071 done1072 price = 1000001073 duration = '150:00:00'1074 var result = []1075 for(i = 0; i < res.rows.length; i++){1076 hours = 01077 days = 01078 minutes = 01079 if(typeof (res.rows[i].duration.hours) != "undefined"){1080 hours = res.rows[i].duration.hours1081 }1082 if(typeof (res.rows[i].duration.days) != "undefined"){1083 days = res.rows[i].duration.days1084 }1085 if(typeof(res.rows[i].duration.minutes) != "undefined"){1086 minutes = res.rows[i].duration.minutes1087 }1088 console.log(res.rows[i])1089 result.push({1090 duration : days+ ' days and ' +hours+ ' hours and '+minutes+ ' minutes',1091 tprice : '$'+res.rows[i].tprice,1092 class : test,1093 ac1 : res.rows[i].a1a,1094 fn1 : res.rows[i].a1f,1095 iata1 : res.rows[i].a1i,1096 diata1 : res.rows[i].a1d,1097 dtime1 : ((res.rows[i].a1dt).toString()).substring(0,24),1098 atime1 : ((res.rows[i].a1ddt).toString()).substring(0,24),1099 seat1 : res.rows[i].a1s,1100 price1 : res.rows[i].a1p,1101 ac2 : res.rows[i].a2a,1102 fn2 : res.rows[i].a2f,1103 iata2 : res.rows[i].a2i,1104 diata2 : res.rows[i].a2d,1105 dtime2 : ((res.rows[i].a2dt).toString()).substring(0,24),1106 atime2 : ((res.rows[i].a2ddt).toString()).substring(0,24),1107 seat2 : res.rows[i].a2s,1108 price2 : res.rows[i].a2p,1109 ac3 : res.rows[i].a3a,1110 fn3 : res.rows[i].a3f,1111 iata3 : res.rows[i].a3i,1112 diata3 : res.rows[i].a3d,1113 dtime3 : ((res.rows[i].a3dt).toString()).substring(0,24),1114 atime3 : ((res.rows[i].a3ddt).toString()).substring(0,24),1115 seat3 : res.rows[i].a3s,1116 price3 : res.rows[i].a3p,1117 ac4 : res.rows[i].a4a,1118 fn4 : res.rows[i].a4f,1119 iata4 : res.rows[i].a4i,1120 diata4 : res.rows[i].a4d,1121 dtime4 : ((res.rows[i].a4dt).toString()).substring(0,24),1122 atime4 : ((res.rows[i].a4ddt).toString()).substring(0,24),1123 seat4 : res.rows[i].a4s,1124 price4 : res.rows[i].a4p1125 })1126 }1127 response.render('pages/rbooking1',{drinks : result})1128 }1129 else{1130 console.log('empty')1131 done1132 price = 1000001133 duration = '150:00:00'1134 response.sendFile('Web_design/ebooking.html', {root: __dirname })1135 }1136 }1137 })1138 }1139 else{1140 var value = [req.body.ddate,req.body.iata,req.body.diata,req.body.ddate+' 24:00:00',price,duration]1141 if(req.body.order == "Flight Length"){1142 if(req.body.price == "First")1143 var tex = 'select a2.firstclassprice + a1.firstclassprice AS tprice, a2.ddate - a1.date AS duration,a1.iata as a1i,a2.iata as a2i,a1.diata as a1d,a2.diata as a2d,a1.firstclassprice as a1p,a2.firstclassprice as a2p,a1.eseat as a1s,a2.eseat as a2s,a1.airlinecode as a1a,a2.airlinecode as a2a,a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a1.ddate as a1ddt,a2.ddate as a2ddt from (flight natural join price) as a1 join (flight natural join price) AS a2 on a1.diata = a2.iata where (a1.iata = $2 and (a1.firstclassprice + a2.firstclassprice) < $5 AND (a2.ddate - a1.date) < $6 and a2.diata = $3 and a1.ddate < a2.date and a2.fseat > 0 and a1.fseat > 0 and a1.date >= $1 and a1.date < $4) ORDER BY a2.ddate - a1.date ASC'1144 else1145 var tex = 'select a2.economyclassprice + a1.economyclassprice AS tprice, a2.ddate - a1.date AS duration,a1.iata as a1i,a2.iata as a2i,a1.diata as a1d,a2.diata as a2d,a1.economyclassprice as a1p,a2.economyclassprice as a2p,a1.eseat as a1s,a2.eseat as a2s,a1.airlinecode as a1a,a2.airlinecode as a2a,a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a1.ddate as a1ddt,a2.ddate as a2ddt from (flight natural join price) as a1 join (flight natural join price) AS a2 on a1.diata = a2.iata where (a1.iata = $2 and (a1.economyclassprice + a2.economyclassprice) < $5 AND (a2.ddate - a1.date) < $6 and a2.diata = $3 and a1.ddate < a2.date and a2.eseat > 0 and a1.eseat > 0 and a1.date >= $1 and a1.date < $4) ORDER BY a2.ddate - a1.date ASC'1146 }1147 else{1148 if(req.body.price == "First")1149 var tex = 'select a2.firstclassprice + a1.firstclassprice AS tprice, a2.ddate - a1.date AS duration,a1.iata as a1i,a2.iata as a2i,a1.diata as a1d,a2.diata as a2d,a1.firstclassprice as a1p,a2.firstclassprice as a2p,a1.eseat as a1s,a2.eseat as a2s,a1.airlinecode as a1a,a2.airlinecode as a2a,a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a1.ddate as a1ddt,a2.ddate as a2ddt from (flight join price ON flight.airlinecode = price.airlinecode AND flight.flightnumber = price.flightnumber) as a1 join (flight join price ON flight.airlinecode = price.airlinecode AND flight.flightnumber = price.flightnumber) AS a2 on a1.diata = a2.iata where (a1.iata = $2 and (a1.firstclassprice + a2.firstclassprice) < $5 AND (a2.ddate - a1.date) < $6 and a2.diata = $3 and a1.ddate < a2.date and a2.fseat > 0 and a1.fseat > 0 and a1.date >= $1 and a1.date < $4) ORDER BY a2.firstclassprice + a1.firstclassprice ASC'1150 else1151 var tex = 'select a2.economyclassprice + a1.economyclassprice AS tprice, a2.ddate - a1.date AS duration,a1.iata as a1i,a2.iata as a2i,a1.diata as a1d,a2.diata as a2d,a1.economyclassprice as a1p,a2.economyclassprice as a2p,a1.eseat as a1s,a2.eseat as a2s,a1.airlinecode as a1a,a2.airlinecode as a2a,a1.flightnumber as a1f,a2.flightnumber as a2f,a1.date as a1dt,a2.date as a2dt,a1.ddate as a1ddt,a2.ddate as a2ddt from (flight natural join price) as a1 join (flight natural join price) AS a2 on a1.diata = a2.iata where (a1.iata = $2 and (a1.economyclassprice + a2.economyclassprice) < $5 AND (a2.ddate - a1.date) < $6 and a2.diata = $3 and a1.ddate < a2.date and a2.eseat > 0 and a1.eseat > 0 and a1.date >= $1 and a1.date < $4) ORDER BY a2.economyclassprice + a1.economyclassprice ASC'1152 }1153 client.query(tex, value, (err, res) => {1154 if (err) {1155 console.log (err.stack)1156 done1157 price = 1000001158 duration = '150:00:00'1159 response.sendFile('Web_design/wbooking.html', {root: __dirname })1160 } 1161 else{1162 if (typeof(res.rows[0]) != "undefined"){1163 console.log(res.rows)1164 done1165 price = 1000001166 duration = '150:00:00'1167 var result = []1168 for(i = 0; i < res.rows.length; i++){1169 hours = 01170 days = 01171 minutes = 01172 if(typeof (res.rows[i].duration.hours) != "undefined"){1173 hours = res.rows[i].duration.hours1174 }1175 if(typeof (res.rows[i].duration.days) != "undefined"){1176 days = res.rows[i].duration.days1177 }1178 if(typeof(res.rows[i].duration.minutes) != "undefined"){1179 minutes = res.rows[i].duration.minutes1180 }1181 console.log(res.rows[i])1182 result.push({1183 duration : days+ ' days and ' +hours+ ' hours and '+minutes+ ' minutes',1184 tprice : '$'+res.rows[i].tprice,1185 class : test,1186 ac1 : res.rows[i].a1a,1187 fn1 : res.rows[i].a1f,1188 iata1 : res.rows[i].a1i,1189 diata1 : res.rows[i].a1d,1190 dtime1 : ((res.rows[i].a1dt).toString()).substring(0,24),1191 atime1 : ((res.rows[i].a1ddt).toString()).substring(0,24),1192 seat1 : res.rows[i].a1s,1193 price1 : res.rows[i].a1p,1194 ac2 : res.rows[i].a2a,1195 fn2 : res.rows[i].a2f,1196 iata2 : res.rows[i].a2i,1197 diata2 : res.rows[i].a2d,1198 dtime2 : ((res.rows[i].a2dt).toString()).substring(0,24),1199 atime2 : ((res.rows[i].a2ddt).toString()).substring(0,24),1200 seat2 : res.rows[i].a2s,1201 price2 : res.rows[i].a2p1202 })1203 }1204 response.render('pages/booking1',{drinks : result})1205 }1206 else{1207 console.log('empty')1208 done1209 price = 1000001210 duration = '150:00:00'1211 response.sendFile('Web_design/ebooking.html', {root: __dirname })1212 }1213 }1214 })1215 }1216 })1217 }1218 else{1219 pg.connect(conString, function (err, client, done) { // O connections1220 if (err) { 1221 return console.error('could not connect to postgres', err)1222 response.sendFile('Web_design/booking.html', {root: __dirname })1223 } 1224 var tex = ''1225 var value = []1226 if(req.body.check == "Search Round Trip Flights"){1227 var value = [req.body.ddate,req.body.adate,req.body.iata,req.body.diata,req.body.ddate+' 24:00:00',req.body.adate+ ' 24:00:00',price,duration]1228 if(req.body.order == "Flight Length"){1229 if(req.body.price == "First")1230 var tex = 'SELECT a1.airlinecode as ba1,a2.airlinecode as ba2,a1.flightnumber as bf1,a2.flightnumber as bf2,a1.iata as bi1, a2.iata as bi2, a1.date as bd1, a2.date as bd2, a1.ddate as bdd1, a2.ddate as bdd2, a1.diata as bdi1, a2.diata as bdi2, ((a2.ddate - a2.date) + (a1.ddate - a1.date)) AS duration, (a1.firstclassprice + a2.firstclassprice) as tprice, a1.fseat as um, a2.fseat as um2, * FROM (flight Natural Join price) AS a1 CROSS JOIN (flight Natural Join price) AS a2 WHERE ( (a1.date >= $1 AND a1.date < $5 AND a1.firstclassprice < $7 AND ((a2.ddate - a2.date) + (a1.ddate - a1.date)) < $8 AND a1.iata = $3 AND a1.diata = $4 AND a1.fseat > 0)) AND (a2.date >= $2 AND ((a2.ddate - a2.date) + (a1.ddate - a1.date)) < $8 AND a2.date < $6 AND a2.firstclassprice < $7 AND a2.iata = $4 AND a2.diata = $3 AND a2.fseat > 0) ORDER BY a2.ddate - a1.date ASC'1231 else1232 var tex = 'SELECT a1.airlinecode as ba1,a2.airlinecode as ba2,a1.flightnumber as bf1,a2.flightnumber as bf2,a1.iata as bi1, a2.iata as bi2, a1.date as bd1, a2.date as bd2, a1.ddate as bdd1, a2.ddate as bdd2, a1.diata as bdi1, a2.diata as bdi2,((a2.ddate - a2.date) + (a1.ddate - a1.date)) AS duration, (a1.economyclassprice + a2.economyclassprice) as tprice, a1.fseat as um, a2.fseat as um2, * FROM (flight Natural Join price) AS a1 CROSS JOIN (flight Natural Join price) AS a2 WHERE ( (a1.date >= $1 AND a1.date < $5 AND a1.economyclassprice < $7 AND ((a2.ddate - a2.date) + (a1.ddate - a1.date)) < $8 AND a1.iata = $3 AND a1.diata = $4 AND a1.eseat > 0)) AND (a2.date >= $2 AND ((a2.ddate - a2.date) + (a1.ddate - a1.date)) < $8 AND a2.date < $6 AND a2.economyclassprice < $7 AND a2.iata = $4 AND a2.diata = $3 AND a2.eseat > 0) ORDER BY a2.ddate - a1.date ASC'1233 }1234 else{1235 if(req.body.price == "First")1236 var tex = 'SELECT a1.airlinecode as ba1,a2.airlinecode as ba2,a1.flightnumber as bf1,a2.flightnumber as bf2,a1.iata as bi1, a2.iata as bi2, a1.date as bd1, a2.date as bd2, a1.ddate as bdd1, a2.ddate as bdd2, a1.diata as bdi1, a2.diata as bdi2,((a2.ddate - a2.date) + (a1.ddate - a1.date)) AS duration, (a1.firstclassprice + a2.firstclassprice) as tprice, a1.fseat as um, a2.fseat as um2, * FROM (flight Natural Join price) AS a1 CROSS JOIN (flight Natural Join price) AS a2 WHERE ( (a1.date >= $1 AND a1.date < $5 AND a1.firstclassprice < $7 AND ((a2.ddate - a2.date) + (a1.ddate - a1.date)) < $8 AND a1.iata = $3 AND a1.diata = $4 AND a1.fseat > 0)) AND (a2.date >= $2 AND ((a2.ddate - a2.date) + (a1.ddate - a1.date)) < $8 AND a2.date < $6 AND a2.firstclassprice < $7 AND a2.iata = $4 AND a2.diata = $3 AND a2.fseat > 0) ORDER BY a1.firstclassprice + a2.firstclassprice ASC'1237 else1238 var tex = 'SELECT a1.airlinecode as ba1,a2.airlinecode as ba2,a1.flightnumber as bf1,a2.flightnumber as bf2,a1.iata as bi1, a2.iata as bi2, a1.date as bd1, a2.date as bd2, a1.ddate as bdd1, a2.ddate as bdd2, a1.diata as bdi1, a2.diata as bdi2,((a2.ddate - a2.date) + (a1.ddate - a1.date)) AS duration, (a1.economyclassprice + a2.economyclassprice) as tprice, a1.fseat as um, a2.fseat as um2, * FROM (flight Natural Join price) AS a1 CROSS JOIN (flight Natural Join price) AS a2 WHERE ( (a1.date >= $1 AND a1.date < $5 AND a1.economyclassprice < $7 AND ((a2.ddate - a2.date) + (a1.ddate - a1.date)) < $8 AND a1.iata = $3 AND a1.diata = $4 AND a1.eseat > 0)) AND (a2.date >= $2 AND ((a2.ddate - a2.date) + (a1.ddate - a1.date)) < $8 AND a2.date < $6 AND a2.economyclassprice < $7 AND a2.iata = $4 AND a2.diata = $3 AND a2.eseat > 0) ORDER BY a2.ddate - a1.date ASC'1239 }1240 client.query(tex, value, (err, res) => {1241 if (err) {1242 console.log (err.stack)1243 done1244 price = 1000001245 duration = '150:00:00'1246 response.sendFile('Web_design/wbooking.html', {root: __dirname })1247 } 1248 else{1249 if (typeof(res.rows[0]) != "undefined"){1250 done1251 price = 1000001252 duration = '150:00:00'1253 console.log(res.rows[0])1254 var result = []1255 for(i = 0; i < res.rows.length; i++){1256 hours = 01257 days = 01258 minutes = 01259 if(typeof (res.rows[i].duration.hours) != "undefined"){1260 hours = res.rows[i].duration.hours1261 }1262 if(typeof (res.rows[i].duration.days) != "undefined"){1263 days = res.rows[i].duration.days1264 }1265 if(typeof(res.rows[i].duration.minutes) != "undefined"){1266 minutes = res.rows[i].duration.minutes1267 }1268 result.push({1269 duration : days+ ' days and ' +hours+ ' hours and '+minutes+ ' minutes',1270 tprice : '$'+res.rows[i].tprice,1271 class : test,1272 ac : res.rows[i].ba1,1273 fn : res.rows[i].bf1,1274 iata : res.rows[i].bi1,1275 diata : res.rows[i].bdi1,1276 dtime : ((res.rows[i].bd1).toString()).substring(0,24),1277 atime : ((res.rows[i].bdd1).toString()).substring(0,24),1278 seat : res.rows[i].um,1279 ac1 : res.rows[i].ba2,1280 fn1 : res.rows[i].bf2,1281 iata1 : res.rows[i].bi2,1282 diata1 : res.rows[i].bdi2,1283 dtime1 : ((res.rows[i].bd2).toString()).substring(0,24),1284 atime1 : ((res.rows[i].bdd2).toString()).substring(0,24),1285 seat1 : res.rows[i].um21286 })1287 }1288 console.log(result)1289 response.render('pages/rbooking',{drinks : result})1290 }1291 else{1292 console.log('empty O connections')1293 done1294 price = 1000001295 duration = '150:00:00'1296 response.sendFile('Web_design/ebooking.html', {root: __dirname })1297 }1298 }1299 })1300 }1301 else{1302 var value = [req.body.ddate,req.body.iata,req.body.diata,req.body.ddate+' 24:00:00',price,duration]1303 if(req.body.order == "Flight Length"){1304 if(req.body.price == "First")1305 var tex = 'SELECT (flight.ddate - flight.date) AS duration, price.firstclassprice as tprice, flight.fseat as gg, * FROM flight Join price ON flight.airlinecode = price.airlinecode AND flight.flightnumber = price.flightnumber WHERE (flight.date >= $1 AND (flight.ddate - flight.date) < $6 AND flight.date < $4 AND price.firstclassprice < $5 AND flight.iata = $2 AND flight.diata = $3 AND flight.fseat > 0) ORDER BY flight.ddate - flight.date ASC'1306 else1307 var tex = 'SELECT (flight.ddate - flight.date) AS duration, price.economyclassprice as tprice, flight.eseat as gg, * FROM flight Join price ON flight.airlinecode = price.airlinecode AND flight.flightnumber = price.flightnumber WHERE (flight.date >= $1 AND (flight.ddate - flight.date) < $6 AND flight.date < $4 AND price.economyclassprice < $5 AND flight.iata = $2 AND flight.diata = $3 AND flight.eseat > 0) ORDER BY flight.ddate - flight.date ASC'1308 }1309 else{1310 if(req.body.price == "First")1311 var tex = 'SELECT (flight.ddate - flight.date) AS duration, price.firstclassprice as tprice,flight.fseat as gg, * FROM flight Join price ON flight.airlinecode = price.airlinecode AND flight.flightnumber = price.flightnumber WHERE (flight.date >= $1 AND (flight.ddate - flight.date) < $6 AND flight.date < $4 AND price.firstclassprice < $5 AND flight.iata = $2 AND flight.diata = $3 AND flight.fseat > 0) ORDER BY price.firstclassprice ASC'1312 else1313 var tex = 'SELECT (flight.ddate - flight.date) AS duration, price.economyclassprice as tprice,flight.eseat as gg, * FROM flight Join price ON flight.airlinecode = price.airlinecode AND flight.flightnumber = price.flightnumber WHERE (flight.date >= $1 AND (flight.ddate - flight.date) < $6 AND flight.date < $4 AND price.economyclassprice < $5 AND flight.iata = $2 AND flight.diata = $3 AND flight.eseat > 0) ORDER BY price.economyclassprice ASC'1314 }1315 client.query(tex, value, (err, res) => {1316 if (err) {1317 console.log (err.stack)1318 done1319 price = 1000001320 duration = '150:00:00'1321 response.sendFile('Web_design/wbooking.html', {root: __dirname })1322 } 1323 else{1324 if (typeof(res.rows[0]) != "undefined"){1325 done1326 price = 1000001327 duration = '150:00:00'1328 var result = []1329 for(i = 0; i < res.rows.length; i++){1330 hours = 01331 days = 01332 minutes = 01333 if(typeof(res.rows[i].duration.hours) != "undefined"){1334 hours = res.rows[i].duration.hours1335 }1336 if(typeof(res.rows[i].duration.days) != "undefined"){1337 days = res.rows[i].duration.days1338 }1339 if(typeof(res.rows[i].duration.minutes) != "undefined"){1340 minutes = res.rows[i].duration.minutes1341 }1342 result.push({1343 duration : days+ ' days and ' +hours+ ' hours and '+minutes+ ' minutes',1344 tprice : '$'+res.rows[i].tprice,1345 class : test,1346 ac : res.rows[i].airlinecode,1347 fn : res.rows[i].flightnumber,1348 iata : res.rows[i].iata,1349 diata : res.rows[i].diata,1350 dtime : ((res.rows[i].date).toString()).substring(0,24),1351 atime : ((res.rows[i].ddate).toString()).substring(0,24),1352 seat : res.rows[i].gg1353 })1354 }1355 console.log(result)1356 response.render('pages/booking',{drinks : result})1357 }1358 else{1359 console.log('empty O connections')1360 done1361 price = 1000001362 duration = '150:00:00'1363 response.sendFile('Web_design/ebooking.html', {root: __dirname })1364 }1365 }1366 })1367 }1368 })1369 }1370})1371app.listen(8080, function(){1372 pg.connect(conString, function (err, client, done) {1373 if (err) {1374 return console.error('could not connect to postgres', err)1375 } 1376 const text5 = 'SELECT MAX(bookingnumber) as book FROM booking'1377 const values5 = []1378 client.query(text5, values5, (err, res) => {1379 if (err) {1380 console.log (err.stack)1381 done1382 } else{1383 var temp = parseInt(res.rows[0].book) + 11384 if(temp >= bookingnumber){1385 bookingnumber = temp1386 }1387 done1388 }1389 })1390 })1391 console.log('Server running at http://127.0.0.1:8080/');...
newsData.js
Source:newsData.js
1import img_1 from '../../assets/news/forbes.jpg'2import img_2 from '../../assets/news/team-building.jpg'3import img_3 from '../../assets/news/Bixtrim_s Successful Private Sale.jpg'4import img_4 from '../../assets/news/Bixtrim at Blockchain _ Bitcoin Conference France..jpg'5import img_5 from '../../assets/news/Bixtrim at Blockchain and Bitcoin Conference Georgia.jpg'6import img_6 from '../../assets/news/Bixtrim and Blockchain Academy Georgia.jpg'7import img_7 from '../../assets/news/Bixtrim Bounty Campaign Started.jpg'8import img_8 from '../../assets/news/Our Team at Start Up Grind.jpg'9export default {10 en: [11 {12 id: 1,13 title: 'Bixtrim establishes partnership with Forbes',14 img: img_1,15 content:16 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'17 },18 {19 id: 2,20 title: 'Team Building',21 img: img_2,22 content:23 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'24 },25 {26 id: 3,27 title: "Bixtrim's Succesfull Private Sale",28 img: img_3,29 content:30 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'31 },32 {33 id: 4,34 title: 'Bixtrim at Blockchain & Bitcoin Conference France.',35 img: img_4,36 content:37 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'38 },39 {40 id: 5,41 title: 'Blockchain Expo Europe Recap',42 img: img_5,43 content:44 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'45 },46 {47 id: 6,48 title: 'Bixtrim and Blockchain Academy Georgia',49 img: img_6,50 content:51 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'52 },53 {54 id: 7,55 title: 'Bixtrim Bounty Campaign Started!',56 img: img_7,57 content: ''58 },59 {60 id: 8,61 title: 'Our Team at Start Up Grind',62 img: img_8,63 content: ''64 }65 ],66 ka: [67 {68 id: 1,69 title: 'ááá¥á¡á¢á áááá á¤áá áá¡ááá áááááá¨áááááá áááá¬á§á',70 img: img_1,71 content:72 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'73 },74 {75 id: 2,76 title: 'ááá¥á¡á¢áááá¡ áá£áááá¡ á¨ááá ááá',77 img: img_2,78 content:79 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'80 },81 {82 id: 3,83 title: 'ááá¥á¡á¢á áááá¡ á¬áá ááá¢ááá£áá ááá á«á ááá§áááááá',84 img: img_3,85 content:86 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'87 },88 {89 id: 4,90 title: 'Bixtrim at Blockchain & Bitcoin Conference France.',91 img: img_4,92 content:93 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'94 },95 {96 id: 5,97 title: 'Blockchain Expo Europe á¨áá¯ááááá',98 img: img_5,99 content:100 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'101 },102 {103 id: 6,104 title: 'Bixtrim áá Blockchain Academy Georgia',105 img: img_6,106 content:107 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'108 },109 {110 id: 7,111 title: 'ááá¥á¡á¢á áááá¡ Bounty áááááááá áááá¬á§á!',112 img: img_7,113 content: ''114 },115 {116 id: 8,117 title: 'á©áááá áá£ááá Start Up Grind áááá¤áá áááªáááá',118 img: img_8,119 content: ''120 }121 ],122 ru: [123 {124 id: 1,125 title: 'ÐикÑÑÑим ÑоÑÑÑдниÑÐ°ÐµÑ Ñ Forbes',126 img: img_1,127 content:128 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'129 },130 {131 id: 2,132 title: 'ÐомандообÑазование',133 img: img_2,134 content:135 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'136 },137 {138 id: 3,139 title: 'Bixtrim пÑовел ÑÑпеÑнÑе ЧаÑÑнÑе ÐÑодажи ',140 img: img_3,141 content:142 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'143 },144 {145 id: 4,146 title: 'Bixtrim на Blockchain & Bitcoin Conference во ФÑанÑии.',147 img: img_4,148 content:149 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'150 },151 {152 id: 5,153 title: 'Blockchain Expo Europe Recap',154 img: img_5,155 content:156 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'157 },158 {159 id: 6,160 title: 'Bixtrim и Blockchain Academy Georgia ',161 img: img_6,162 content:163 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'164 },165 {166 id: 7,167 title: 'ÐаÑалаÑÑ Bounty кампаниÑ!',168 img: img_7,169 content: ''170 },171 {172 id: 8,173 title: 'ÐикÑÑÑим на конÑеÑенÑии Start Up Grind ',174 img: img_8,175 content: ''176 }177 ],178 fr: [179 {180 id: 1,181 title: 'Bixtrim établit un partenariat avec Forbes',182 img: img_1,183 content:184 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'185 },186 {187 id: 2,188 title: "Construction d'équipe",189 img: img_2,190 content:191 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'192 },193 {194 id: 3,195 title: 'La vente privée réussie de Bixtrim ',196 img: img_3,197 content:198 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'199 },200 {201 id: 4,202 title: 'Bixtrim à la Blockchain & Bitcoin Conference France.',203 img: img_4,204 content:205 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'206 },207 {208 id: 5,209 title: 'Blockchain Expo Europe Recap',210 img: img_5,211 content:212 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'213 },214 {215 id: 6,216 title: 'Académie Bixtrim et Blockchain Géorgie ',217 img: img_6,218 content:219 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'220 },221 {222 id: 7,223 title: 'La campagne Bixtrim Bounty a commencé!',224 img: img_7,225 content: ''226 },227 {228 id: 8,229 title: 'Notre équipe à Start Up Grind ',230 img: img_8,231 content: ''232 }233 ],234 de: [235 {236 id: 1,237 title: 'Bixtrim gründet Partnerschaft mit Forbes',238 img: img_1239 },240 {241 id: 2,242 title: 'Teambildung',243 img: img_2244 },245 {246 id: 3,247 title: 'Bixtrims erfolgreicher privater Verkauf',248 img: img_3249 },250 {251 id: 4,252 title: 'Bixtrim bei Blockchain & Bitcoin Conference Frankreich.',253 img: img_4254 },255 {256 id: 5,257 title: 'Blockchain Expo Europe Recap',258 img: img_5259 },260 {261 id: 6,262 title: 'Bixtrim and Blockchain Academy Georgia',263 img: img_6264 },265 {266 id: 7,267 title: 'Bixtrim Bounty Kampagne gestartet!',268 img: img_7269 },270 {271 id: 8,272 title: 'Unser Team bei Start Up Grind',273 img: img_8274 }275 ],276 zh: [277 {278 id: 1,279 title: 'Bixtrimä¸ç¦å¸æ¯å»ºç«äºåä½ä¼ä¼´å
³ç³»',280 img: img_1,281 content:282 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'283 },284 {285 id: 2,286 title: 'å¢é建设',287 img: img_2,288 content:289 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'290 },291 {292 id: 3,293 title: 'Bixtrimçæåç§äººéå®',294 img: img_3,295 content:296 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'297 },298 {299 id: 4,300 title: 'Bixtrimå¨Blockchainï¼Bitcoin Conference Franceã',301 img: img_4,302 content:303 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'304 },305 {306 id: 5,307 title: 'Blockchain Expo Europeå顾',308 img: img_5,309 content:310 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'311 },312 {313 id: 6,314 title: 'BixtrimåBlockchain Academy Georgia',315 img: img_6,316 content:317 'Forbes is one of the most influential magazines in the Georgian business sector. Media Partners Georgia and Forbes Media LLC have made an agreement considering the Georgian printed copy of the magazine, which is now issued monthly. Forbes tells us about people, ideas and technology that changes the world. <br /> The goal of the magazine is showing the impact of Georgian business and economics as well as the stories of successful people. Bixtrim partnered up with Forbes and created an article about cryptocurrencies, our platform and the team behind it. <br /> As a Georgian startup we believe this is the first step towards raising awareness about Bixtrim and receiving trust from the people we so need, because we hope to be the idea that changes the world.'318 },319 {320 id: 7,321 title: 'Bixtrim Bountyæ´»å¨å¼å§äºï¼',322 img: img_7,323 content: ''324 },325 {326 id: 8,327 title: 'æ们çå¢éå¨Start Up Grind Startup',328 img: img_8,329 content: ''330 }331 ]...
application.js
Source:application.js
1import Ember from 'ember';2const { Controller } = Ember;3const moarNumbers = [4 'one',5 'two',6 'three',7 'four',8 'five',9 'six',10 'seven',11 'eight',12 'nine',13 'ten',14 'eleven',15 'twelve',16 'thirteen',17 'fourteen',18 'fifteen',19 'sixteen',20 'seventeen',21 'eighteen',22 'nineteen',23 'twenty',24 'twenty one',25 'twenty two',26 'twenty three',27 'twenty four',28 'twenty five',29 'twenty six',30 'twenty seven',31 'twenty eight',32 'twenty nine',33 'thirty',34 'thirty one',35 'thirty two',36 'thirty three',37 'thirty four',38 'thirty five',39 'thirty six',40 'thirty seven',41 'thirty eight',42 'thirty nine',43 'fourty',44 'fourty one',45 'fourty two',46 'fourty three',47 'fourty four',48 'fourty five',49 'fourty six',50 'fourty seven',51 'fourty eight',52 'fourty nine',53 'fifty',54 'fifty one',55 'fifty two',56 'fifty three',57 'fifty four',58 'fifty five',59 'fifty six',60 'fifty seven',61 'fifty eight',62 'fifty nine',63 'sixty',64 'sixty one',65 'sixty two',66 'sixty three',67 'sixty four',68 'sixty five',69 'sixty six',70 'sixty seven',71 'sixty eight',72 'sixty nine',73 'seventy',74 'seventy one',75 'seventy two',76 'seventy three',77 'seventy four',78 'seventy five',79 'seventy six',80 'seventy seven',81 'seventy eight',82 'seventy nine',83 'eighty',84 'eighty one',85 'eighty two',86 'eighty three',87 'eighty four',88 'eighty five',89 'eighty six',90 'eighty seven',91 'eighty eight',92 'eighty nine',93 'ninety',94 'ninety one',95 'ninety two',96 'ninety three',97 'ninety four',98 'ninety five',99 'ninety six',100 'ninety seven',101 'ninety eight',102 'ninety nine',103 'one hundred',104 'one hundred and one',105 'one hundred and two',106 'one hundred and three',107 'one hundred and four',108 'one hundred and five',109 'one hundred and six',110 'one hundred and seven',111 'one hundred and eight',112 'one hundred and nine',113 'one hundred and ten',114 'one hundred and eleven',115 'one hundred and twelve',116 'one hundred and thirteen',117 'one hundred and fourteen',118 'one hundred and fifteen',119 'one hundred and sixteen',120 'one hundred and seventeen',121 'one hundred and eighteen',122 'one hundred and nineteen',123 'one hundred and twenty',124 'one hundred and twenty one',125 'one hundred and twenty two',126 'one hundred and twenty three',127 'one hundred and twenty four',128 'one hundred and twenty five',129 'one hundred and twenty six',130 'one hundred and twenty seven',131 'one hundred and twenty eight',132 'one hundred and twenty nine',133 'one hundred and thirty',134 'one hundred and thirty one',135 'one hundred and thirty two',136 'one hundred and thirty three',137 'one hundred and thirty four',138 'one hundred and thirty five',139 'one hundred and thirty six',140 'one hundred and thirty seven',141 'one hundred and thirty eight',142 'one hundred and thirty nine',143 'one hundred and fourty',144 'one hundred and fourty one',145 'one hundred and fourty two',146 'one hundred and fourty three',147 'one hundred and fourty four',148 'one hundred and fourty five',149 'one hundred and fourty six',150 'one hundred and fourty seven',151 'one hundred and fourty eight',152 'one hundred and fourty nine',153 'one hundred and fifty',154 'one hundred and fifty one',155 'one hundred and fifty two',156 'one hundred and fifty three',157 'one hundred and fifty four',158 'one hundred and fifty five',159 'one hundred and fifty six',160 'one hundred and fifty seven',161 'one hundred and fifty eight',162 'one hundred and fifty nine',163 'one hundred and sixty',164 'one hundred and sixty one',165 'one hundred and sixty two',166 'one hundred and sixty three',167 'one hundred and sixty four',168 'one hundred and sixty five',169 'one hundred and sixty six',170 'one hundred and sixty seven',171 'one hundred and sixty eight',172 'one hundred and sixty nine',173 'one hundred and seventy',174 'one hundred and seventy one',175 'one hundred and seventy two',176 'one hundred and seventy three',177 'one hundred and seventy four',178 'one hundred and seventy five',179 'one hundred and seventy six',180 'one hundred and seventy seven',181 'one hundred and seventy eight',182 'one hundred and seventy nine',183 'one hundred and eighty',184 'one hundred and eighty one',185 'one hundred and eighty two',186 'one hundred and eighty three',187 'one hundred and eighty four',188 'one hundred and eighty five',189 'one hundred and eighty six',190 'one hundred and eighty seven',191 'one hundred and eighty eight',192 'one hundred and eighty nine',193 'one hundred and ninety',194 'one hundred and ninety one',195 'one hundred and ninety two',196 'one hundred and ninety three',197 'one hundred and ninety four',198 'one hundred and ninety five',199 'one hundred and ninety six',200 'one hundred and ninety seven',201 'one hundred and ninety eight',202 'one hundred and ninety nine',203 'two hundred',204 'two hundred and one',205 'two hundred and two',206 'two hundred and three',207 'two hundred and four',208 'two hundred and five',209 'two hundred and six',210 'two hundred and seven',211 'two hundred and eight',212 'two hundred and nine',213 'two hundred and ten',214 'two hundred and eleven',215 'two hundred and twelve',216 'two hundred and thirteen',217 'two hundred and fourteen',218 'two hundred and fifteen',219 'two hundred and sixteen',220 'two hundred and seventeen',221 'two hundred and eighteen',222 'two hundred and nineteen',223 'two hundred and twenty',224 'two hundred and twenty one',225 'two hundred and twenty two',226 'two hundred and twenty three',227 'two hundred and twenty four',228 'two hundred and twenty five',229 'two hundred and twenty six',230 'two hundred and twenty seven',231 'two hundred and twenty eight',232 'two hundred and twenty nine',233 'two hundred and thirty',234 'two hundred and thirty one',235 'two hundred and thirty two',236 'two hundred and thirty three',237 'two hundred and thirty four',238 'two hundred and thirty five',239 'two hundred and thirty six',240 'two hundred and thirty seven',241 'two hundred and thirty eight',242 'two hundred and thirty nine',243 'two hundred and fourty',244 'two hundred and fourty one',245 'two hundred and fourty two',246 'two hundred and fourty three',247 'two hundred and fourty four',248 'two hundred and fourty five',249 'two hundred and fourty six',250 'two hundred and fourty seven',251 'two hundred and fourty eight',252 'two hundred and fourty nine',253 'two hundred and fifty',254 'two hundred and fifty one',255 'two hundred and fifty two',256 'two hundred and fifty three',257 'two hundred and fifty four',258 'two hundred and fifty five',259 'two hundred and fifty six',260 'two hundred and fifty seven',261 'two hundred and fifty eight',262 'two hundred and fifty nine',263 'two hundred and sixty',264 'two hundred and sixty one',265 'two hundred and sixty two',266 'two hundred and sixty three',267 'two hundred and sixty four',268 'two hundred and sixty five',269 'two hundred and sixty six',270 'two hundred and sixty seven',271 'two hundred and sixty eight',272 'two hundred and sixty nine',273 'two hundred and seventy',274 'two hundred and seventy one',275 'two hundred and seventy two',276 'two hundred and seventy three',277 'two hundred and seventy four',278 'two hundred and seventy five',279 'two hundred and seventy six',280 'two hundred and seventy seven',281 'two hundred and seventy eight',282 'two hundred and seventy nine',283 'two hundred and eighty',284 'two hundred and eighty one',285 'two hundred and eighty two',286 'two hundred and eighty three',287 'two hundred and eighty four',288 'two hundred and eighty five',289 'two hundred and eighty six',290 'two hundred and eighty seven',291 'two hundred and eighty eight',292 'two hundred and eighty nine',293 'two hundred and ninety',294 'two hundred and ninety one',295 'two hundred and ninety two',296 'two hundred and ninety three',297 'two hundred and ninety four',298 'two hundred and ninety five',299 'two hundred and ninety six',300 'two hundred and ninety seven',301 'two hundred and ninety eight',302 'two hundred and ninety nine',303 'three hundred',304 'three hundred and one',305 'three hundred and two',306 'three hundred and three',307 'three hundred and four',308 'three hundred and five',309 'three hundred and six',310 'three hundred and seven',311 'three hundred and eight',312 'three hundred and nine',313 'three hundred and ten',314 'three hundred and eleven',315 'three hundred and twelve',316 'three hundred and thirteen',317 'three hundred and fourteen',318 'three hundred and fifteen',319 'three hundred and sixteen',320 'three hundred and seventeen',321 'three hundred and eighteen',322 'three hundred and nineteen',323 'three hundred and twenty',324 'three hundred and twenty one',325 'three hundred and twenty two',326 'three hundred and twenty three',327 'three hundred and twenty four',328 'three hundred and twenty five',329 'three hundred and twenty six',330 'three hundred and twenty seven',331 'three hundred and twenty eight',332 'three hundred and twenty nine',333 'three hundred and thirty',334 'three hundred and thirty one',335 'three hundred and thirty two',336 'three hundred and thirty three',337 'three hundred and thirty four',338 'three hundred and thirty five',339 'three hundred and thirty six',340 'three hundred and thirty seven',341 'three hundred and thirty eight',342 'three hundred and thirty nine',343 'three hundred and fourty',344 'three hundred and fourty one',345 'three hundred and fourty two',346 'three hundred and fourty three',347 'three hundred and fourty four',348 'three hundred and fourty five',349 'three hundred and fourty six',350 'three hundred and fourty seven',351 'three hundred and fourty eight',352 'three hundred and fourty nine',353 'three hundred and fifty',354 'three hundred and fifty one',355 'three hundred and fifty two',356 'three hundred and fifty three',357 'three hundred and fifty four',358 'three hundred and fifty five',359 'three hundred and fifty six',360 'three hundred and fifty seven',361 'three hundred and fifty eight',362 'three hundred and fifty nine',363 'three hundred and sixty',364 'three hundred and sixty one',365 'three hundred and sixty two',366 'three hundred and sixty three',367 'three hundred and sixty four',368 'three hundred and sixty five',369 'three hundred and sixty six',370 'three hundred and sixty seven',371 'three hundred and sixty eight',372 'three hundred and sixty nine',373 'three hundred and seventy',374 'three hundred and seventy one',375 'three hundred and seventy two',376 'three hundred and seventy three',377 'three hundred and seventy four',378 'three hundred and seventy five',379 'three hundred and seventy six',380 'three hundred and seventy seven',381 'three hundred and seventy eight',382 'three hundred and seventy nine',383 'three hundred and eighty',384 'three hundred and eighty one',385 'three hundred and eighty two',386 'three hundred and eighty three',387 'three hundred and eighty four',388 'three hundred and eighty five',389 'three hundred and eighty six',390 'three hundred and eighty seven',391 'three hundred and eighty eight',392 'three hundred and eighty nine',393 'three hundred and ninety',394 'three hundred and ninety one',395 'three hundred and ninety two',396 'three hundred and ninety three',397 'three hundred and ninety four',398 'three hundred and ninety five',399 'three hundred and ninety six',400 'three hundred and ninety seven',401 'three hundred and ninety eight',402 'three hundred and ninety nine',403 'four hundred',404 'four hundred and one',405 'four hundred and two',406 'four hundred and three',407 'four hundred and four',408 'four hundred and five',409 'four hundred and six',410 'four hundred and seven',411 'four hundred and eight',412 'four hundred and nine',413 'four hundred and ten',414 'four hundred and eleven',415 'four hundred and twelve',416 'four hundred and thirteen',417 'four hundred and fourteen',418 'four hundred and fifteen',419 'four hundred and sixteen',420 'four hundred and seventeen',421 'four hundred and eighteen',422 'four hundred and nineteen',423 'four hundred and twenty',424 'four hundred and twenty one',425 'four hundred and twenty two',426 'four hundred and twenty three',427 'four hundred and twenty four',428 'four hundred and twenty five',429 'four hundred and twenty six',430 'four hundred and twenty seven',431 'four hundred and twenty eight',432 'four hundred and twenty nine',433 'four hundred and thirty',434 'four hundred and thirty one',435 'four hundred and thirty two',436 'four hundred and thirty three',437 'four hundred and thirty four',438 'four hundred and thirty five',439 'four hundred and thirty six',440 'four hundred and thirty seven',441 'four hundred and thirty eight',442 'four hundred and thirty nine',443 'four hundred and fourty',444 'four hundred and fourty one',445 'four hundred and fourty two',446 'four hundred and fourty three',447 'four hundred and fourty four',448 'four hundred and fourty five',449 'four hundred and fourty six',450 'four hundred and fourty seven',451 'four hundred and fourty eight',452 'four hundred and fourty nine',453 'four hundred and fifty',454 'four hundred and fifty one',455 'four hundred and fifty two',456 'four hundred and fifty three',457 'four hundred and fifty four',458 'four hundred and fifty five',459 'four hundred and fifty six',460 'four hundred and fifty seven',461 'four hundred and fifty eight',462 'four hundred and fifty nine',463 'four hundred and sixty',464 'four hundred and sixty one',465 'four hundred and sixty two',466 'four hundred and sixty three',467 'four hundred and sixty four',468 'four hundred and sixty five',469 'four hundred and sixty six',470 'four hundred and sixty seven',471 'four hundred and sixty eight',472 'four hundred and sixty nine',473 'four hundred and seventy',474 'four hundred and seventy one',475 'four hundred and seventy two',476 'four hundred and seventy three',477 'four hundred and seventy four',478 'four hundred and seventy five',479 'four hundred and seventy six',480 'four hundred and seventy seven',481 'four hundred and seventy eight',482 'four hundred and seventy nine',483 'four hundred and eighty',484 'four hundred and eighty one',485 'four hundred and eighty two',486 'four hundred and eighty three',487 'four hundred and eighty four',488 'four hundred and eighty five',489 'four hundred and eighty six',490 'four hundred and eighty seven',491 'four hundred and eighty eight',492 'four hundred and eighty nine',493 'four hundred and ninety',494 'four hundred and ninety one',495 'four hundred and ninety two',496 'four hundred and ninety three',497 'four hundred and ninety four',498 'four hundred and ninety five',499 'four hundred and ninety six',500 'four hundred and ninety seven',501 'four hundred and ninety eight',502 'four hundred and ninety nine',503 'five hundred',504 'five hundred and one',505 'five hundred and two',506 'five hundred and three',507 'five hundred and four',508 'five hundred and five',509 'five hundred and six',510 'five hundred and seven',511 'five hundred and eight',512 'five hundred and nine',513 'five hundred and ten',514 'five hundred and eleven',515 'five hundred and twelve',516 'five hundred and thirteen',517 'five hundred and fourteen',518 'five hundred and fifteen',519 'five hundred and sixteen',520 'five hundred and seventeen',521 'five hundred and eighteen',522 'five hundred and nineteen',523 'five hundred and twenty',524 'five hundred and twenty one',525 'five hundred and twenty two',526 'five hundred and twenty three',527 'five hundred and twenty four',528 'five hundred and twenty five',529 'five hundred and twenty six',530 'five hundred and twenty seven',531 'five hundred and twenty eight',532 'five hundred and twenty nine',533 'five hundred and thirty',534 'five hundred and thirty one',535 'five hundred and thirty two',536 'five hundred and thirty three',537 'five hundred and thirty four',538 'five hundred and thirty five',539 'five hundred and thirty six',540 'five hundred and thirty seven',541 'five hundred and thirty eight',542 'five hundred and thirty nine',543 'five hundred and fourty',544 'five hundred and fourty one',545 'five hundred and fourty two',546 'five hundred and fourty three',547 'five hundred and fourty four',548 'five hundred and fourty five',549 'five hundred and fourty six',550 'five hundred and fourty seven',551 'five hundred and fourty eight',552 'five hundred and fourty nine',553 'five hundred and fifty',554 'five hundred and fifty one',555 'five hundred and fifty two',556 'five hundred and fifty three',557 'five hundred and fifty four',558 'five hundred and fifty five',559 'five hundred and fifty six',560 'five hundred and fifty seven',561 'five hundred and fifty eight',562 'five hundred and fifty nine',563 'five hundred and sixty',564 'five hundred and sixty one',565 'five hundred and sixty two',566 'five hundred and sixty three',567 'five hundred and sixty four',568 'five hundred and sixty five',569 'five hundred and sixty six',570 'five hundred and sixty seven',571 'five hundred and sixty eight',572 'five hundred and sixty nine',573 'five hundred and seventy',574 'five hundred and seventy one',575 'five hundred and seventy two',576 'five hundred and seventy three',577 'five hundred and seventy four',578 'five hundred and seventy five',579 'five hundred and seventy six',580 'five hundred and seventy seven',581 'five hundred and seventy eight',582 'five hundred and seventy nine',583 'five hundred and eighty',584 'five hundred and eighty one',585 'five hundred and eighty two',586 'five hundred and eighty three',587 'five hundred and eighty four',588 'five hundred and eighty five',589 'five hundred and eighty six',590 'five hundred and eighty seven',591 'five hundred and eighty eight',592 'five hundred and eighty nine',593 'five hundred and ninety',594 'five hundred and ninety one',595 'five hundred and ninety two',596 'five hundred and ninety three',597 'five hundred and ninety four',598 'five hundred and ninety five',599 'five hundred and ninety six',600 'five hundred and ninety seven',601 'five hundred and ninety eight',602 'five hundred and ninety nine'603];604export default Controller.extend({605 options: moarNumbers,606 customScrollTo(highlighted, select) {607 let index = select.results.indexOf(highlighted);608 let optionsElement = document.getElementById(`ember-power-select-options-${select.uniqueId}`);609 let { height } = optionsElement.getBoundingClientRect();610 let currentScrollY = optionsElement.scrollTop;611 let topOfOption = index * 28;612 let bottomOfOption = topOfOption + 28;613 if (bottomOfOption > currentScrollY + height) {614 optionsElement.scrollTop = bottomOfOption - height;615 } else if (topOfOption < currentScrollY) {616 optionsElement.scrollTop = topOfOption;617 }618 }...
majors.js
Source:majors.js
1majorApi = {2 'Agriculture & Natural Resources' : [3 'GENERAL AGRICULTURE',4 'AGRICULTURE PRODUCTION AND MANAGEMENT',5 'AGRICULTURAL ECONOMICS',6 'ANIMAL SCIENCES',7 'FOOD SCIENCE',8 'PLANT SCIENCE AND AGRONOMY',9 'SOIL SCIENCE',10 'MISCELLANEOUS AGRICULTURE',11 'FORESTRY',12 'NATURAL RESOURCES MANAGEMENT',13 ],14 'Arts' : [15 'FINE ARTS',16 'DRAMA AND THEATER ARTS',17 'MUSIC',18 'VISUAL AND PERFORMING ARTS',19 'COMMERCIAL ART AND GRAPHIC DESIGN',20 'FILM VIDEO AND PHOTOGRAPHIC ARTS',21 'STUDIO ARTS',22 'MISCELLANEOUS FINE ARTS',23 ],24 'Biology & Life Science' : [25 'ENVIRONMENTAL SCIENCE',26 'BIOLOGY',27 'BIOCHEMICAL SCIENCES',28 'BOTANY',29 'MOLECULAR BIOLOGY',30 'ECOLOGY',31 'GENETICS',32 'MICROBIOLOGY',33 'PHARMACOLOGY',34 'PHYSIOLOGY',35 'ZOOLOGY',36 'NEUROSCIENCE',37 'MISCELLANEOUS BIOLOGY',38 'COGNITIVE SCIENCE AND BIOPSYCHOLOGY',39 ],40 'Business' : [41 'GENERAL BUSINESS',42 'ACCOUNTING',43 'ACTUARIAL SCIENCE',44 'BUSINESS MANAGEMENT AND ADMINISTRATION',45 'OPERATIONS LOGISTICS AND E-COMMERCE',46 'BUSINESS ECONOMICS',47 'MARKETING AND MARKETING RESEARCH',48 'HUMAN RESOURCES AND PERSONNEL MANAGEMENT',49 'FINANCE',50 'INTERNATIONAL BUSINESS',51 'HOSPITALITY MANAGEMENT',52 'MANAGEMENT INFORMATION SYSTEMS AND STATISTICS',53 'MISCELLANEOUS BUSINESS & MEDICAL ADMINISTRATION',54 ],55 'Communications & Journalism' : [56 'COMMUNICATIONS',57 'JOURNALISM',58 'MASS MEDIA',59 'ADVERTISING AND PUBLIC RELATIONS',60 ],61 'Computers & Mathematics' : [62 'COMMUNICATION TECHNOLOGIES',63 'COMPUTER AND INFORMATION SYSTEMS',64 'COMPUTER PROGRAMMING AND DATA PROCESSING',65 'COMPUTER SCIENCE',66 'INFORMATION SCIENCES',67 'COMPUTER ADMINISTRATION MANAGEMENT AND SECURITY',68 'COMPUTER NETWORKING AND TELECOMMUNICATIONS',69 'MATHEMATICS',70 'APPLIED MATHEMATICS',71 'STATISTICS AND DECISION SCIENCE',72 'MATHEMATICS AND COMPUTER SCIENCE',73 ],74 'Education' : [75 'GENERAL EDUCATION',76 'EDUCATIONAL ADMINISTRATION AND SUPERVISION',77 'SCHOOL STUDENT COUNSELING',78 'ELEMENTARY EDUCATION',79 'MATHEMATICS TEACHER EDUCATION',80 'PHYSICAL AND HEALTH EDUCATION TEACHING',81 'EARLY CHILDHOOD EDUCATION',82 'SCIENCE AND COMPUTER TEACHER EDUCATION',83 'SECONDARY TEACHER EDUCATION',84 'SPECIAL NEEDS EDUCATION',85 'SOCIAL SCIENCE OR HISTORY TEACHER EDUCATION',86 'TEACHER EDUCATION: MULTIPLE LEVELS',87 'LANGUAGE AND DRAMA EDUCATION',88 'ART AND MUSIC EDUCATION',89 'MISCELLANEOUS EDUCATION',90 'LIBRARY SCIENCE',91 ],92 'Engineering' : [93 'ARCHITECTURE', 94 'GENERAL ENGINEERING', 95 'AEROSPACE ENGINEERING', 96 'BIOLOGICAL ENGINEERING', 97 'ARCHITECTURAL ENGINEERING', 98 'BIOMEDICAL ENGINEERING', 99 'CHEMICAL ENGINEERING', 100 'CIVIL ENGINEERING', 101 'COMPUTER ENGINEERING', 102 'ELECTRICAL ENGINEERING', 103 'ENGINEERING MECHANICS PHYSICS AND SCIENCE', 104 'ENVIRONMENTAL ENGINEERING', 105 'GEOLOGICAL AND GEOPHYSICAL ENGINEERING', 106 'INDUSTRIAL AND MANUFACTURING ENGINEERING', 107 'MATERIALS ENGINEERING AND MATERIALS SCIENCE', 108 'MECHANICAL ENGINEERING', 109 'METALLURGICAL ENGINEERING', 110 'MINING AND MINERAL ENGINEERING', 111 'NAVAL ARCHITECTURE AND MARINE ENGINEERING', 112 'NUCLEAR ENGINEERING', 113 'PETROLEUM ENGINEERING', 114 'MISCELLANEOUS ENGINEERING', 115 'ENGINEERING TECHNOLOGIES', 116 'ENGINEERING AND INDUSTRIAL MANAGEMENT', 117 'ELECTRICAL ENGINEERING TECHNOLOGY', 118 'INDUSTRIAL PRODUCTION TECHNOLOGIES', 119 'MECHANICAL ENGINEERING RELATED TECHNOLOGIES', 120 'MISCELLANEOUS ENGINEERING TECHNOLOGIES', 121 'MATERIALS SCIENCE' 122 ],123 'Health' : [124 'NUTRITION SCIENCES',125 'GENERAL MEDICAL AND HEALTH SERVICES',126 'COMMUNICATION DISORDERS SCIENCES AND SERVICES',127 'HEALTH AND MEDICAL ADMINISTRATIVE SERVICES',128 'MEDICAL ASSISTING SERVICES',129 'MEDICAL TECHNOLOGIES TECHNICIANS',130 'HEALTH AND MEDICAL PREPARATORY PROGRAMS',131 'PHARMACY PHARMACEUTICAL SCIENCES AND ADMINISTRATION',132 'TREATMENT THERAPY PROFESSIONS',133 'COMMUNITY AND PUBLIC HEALTH',134 'MISCELLANEOUS HEALTH MEDICAL PROFESSIONS',135 ],136 'Humanities & Liberal Arts' : [137 'AREA ETHNIC AND CIVILIZATION STUDIES',138 'LINGUISTICS AND COMPARATIVE LANGUAGE AND LITERATURE',139 'FRENCH GERMAN LATIN AND OTHER COMMON FOREIGN LANGUAGE STUDIES',140 'OTHER FOREIGN LANGUAGES',141 'ENGLISH LANGUAGE AND LITERATURE',142 'COMPOSITION AND RHETORIC',143 'LIBERAL ARTS',144 'HUMANITIES',145 'INTERCULTURAL AND INTERNATIONAL STUDIES',146 'PHILOSOPHY AND RELIGIOUS STUDIES',147 'THEOLOGY AND RELIGIOUS VOCATIONS',148 'ANTHROPOLOGY AND ARCHEOLOGY',149 'ART HISTORY AND CRITICISM',150 'HISTORY',151 'UNITED STATES HISTORY',152 ],153 'Industrial Arts & Consumer Services' : [154 'COSMETOLOGY SERVICES AND CULINARY ARTS',155 'FAMILY AND CONSUMER SCIENCES',156 'MILITARY TECHNOLOGIES',157 'PHYSICAL FITNESS PARKS RECREATION AND LEISURE',158 'CONSTRUCTION SERVICES',159 'ELECTRICAL, MECHANICAL, AND PRECISION TECHNOLOGIES AND PRODUCTION',160 'TRANSPORTATION SCIENCES AND TECHNOLOGIES',161 ],162 'Interdisciplinary' : [163 'MULTI/INTERDISCIPLINARY STUDIES'164 ],165 'Law & Public Policy' : [166 'COURT REPORTING',167 'PRE-LAW AND LEGAL STUDIES',168 'CRIMINAL JUSTICE AND FIRE PROTECTION',169 'PUBLIC ADMINISTRATION',170 'PUBLIC POLICY',171 ],172 'Physical Sciences' : [173 'PHYSICAL SCIENCES',174 'ASTRONOMY AND ASTROPHYSICS',175 'ATMOSPHERIC SCIENCES AND METEOROLOGY',176 'CHEMISTRY',177 'GEOLOGY AND EARTH SCIENCE',178 'GEOSCIENCES',179 'OCEANOGRAPHY',180 'PHYSICS',181 'MULTI-DISCIPLINARY OR GENERAL SCIENCE',182 'NUCLEAR, INDUSTRIAL RADIOLOGY, AND BIOLOGICAL TECHNOLOGIES',183 ],184 'Psychology & Social Work' : [185 'PSYCHOLOGY',186 'EDUCATIONAL PSYCHOLOGY',187 'CLINICAL PSYCHOLOGY',188 'COUNSELING PSYCHOLOGY',189 'INDUSTRIAL AND ORGANIZATIONAL PSYCHOLOGY',190 'SOCIAL PSYCHOLOGY',191 'MISCELLANEOUS PSYCHOLOGY',192 'HUMAN SERVICES AND COMMUNITY ORGANIZATION',193 'SOCIAL WORK',194 ],195 'Social Science' : [196 'INTERDISCIPLINARY SOCIAL SCIENCES',197 'GENERAL SOCIAL SCIENCES',198 'ECONOMICS',199 'CRIMINOLOGY',200 'GEOGRAPHY',201 'INTERNATIONAL RELATIONS',202 'POLITICAL SCIENCE AND GOVERNMENT',203 'SOCIOLOGY',204 'MISCELLANEOUS SOCIAL SCIENCES',205 ]...
DDTarget.js
Source:DDTarget.js
1/*2 * This is a derivative of the similarly named class in the YUI Library.3 * The original license:4 * Copyright (c) 2006, Yahoo! Inc. All rights reserved.5 * Code licensed under the BSD License:6 * http://developer.yahoo.net/yui/license.txt7 */8/**9 * A DragDrop implementation that does not move, but can be a drop10 * target. You would get the same result by simply omitting implementation11 * for the event callbacks, but this way we reduce the processing cost of the12 * event listener and the callbacks.13 */14Ext.define('Ext.dd.DDTarget', {15 extend: 'Ext.dd.DragDrop',16 /**17 * Creates new DDTarget.18 * @param {String} id the id of the element that is a drop target19 * @param {String} sGroup the group of related DragDrop objects20 * @param {Object} config an object containing configurable attributes.21 * Valid properties for DDTarget in addition to those in DragDrop: none.22 */23 constructor: function(id, sGroup, config) {24 if (id) {25 this.initTarget(id, sGroup, config);26 }27 },28 /**29 * Overridden and disabled. A DDTarget does not support being dragged.30 * @method31 */32 getDragEl: Ext.emptyFn,33 /**34 * Overridden and disabled. A DDTarget does not support being dragged.35 * @method36 */37 isValidHandleChild: Ext.emptyFn,38 /**39 * Overridden and disabled. A DDTarget does not support being dragged.40 * @method41 */42 startDrag: Ext.emptyFn,43 /**44 * Overridden and disabled. A DDTarget does not support being dragged.45 * @method46 */47 endDrag: Ext.emptyFn,48 /**49 * Overridden and disabled. A DDTarget does not support being dragged.50 * @method51 */52 onDrag: Ext.emptyFn,53 /**54 * Overridden and disabled. A DDTarget does not support being dragged.55 * @method56 */57 onDragDrop: Ext.emptyFn,58 /**59 * Overridden and disabled. A DDTarget does not support being dragged.60 * @method61 */62 onDragEnter: Ext.emptyFn,63 /**64 * Overridden and disabled. A DDTarget does not support being dragged.65 * @method66 */67 onDragOut: Ext.emptyFn,68 /**69 * Overridden and disabled. A DDTarget does not support being dragged.70 * @method71 */72 onDragOver: Ext.emptyFn,73 /**74 * Overridden and disabled. A DDTarget does not support being dragged.75 * @method76 */77 onInvalidDrop: Ext.emptyFn,78 /**79 * Overridden and disabled. A DDTarget does not support being dragged.80 * @method81 */82 onMouseDown: Ext.emptyFn,83 /**84 * Overridden and disabled. A DDTarget does not support being dragged.85 * @method86 */87 onMouseUp: Ext.emptyFn,88 /**89 * Overridden and disabled. A DDTarget does not support being dragged.90 * @method91 */92 setXConstraint: Ext.emptyFn,93 /**94 * Overridden and disabled. A DDTarget does not support being dragged.95 * @method96 */97 setYConstraint: Ext.emptyFn,98 /**99 * Overridden and disabled. A DDTarget does not support being dragged.100 * @method101 */102 resetConstraints: Ext.emptyFn,103 /**104 * Overridden and disabled. A DDTarget does not support being dragged.105 * @method106 */107 clearConstraints: Ext.emptyFn,108 /**109 * Overridden and disabled. A DDTarget does not support being dragged.110 * @method111 */112 clearTicks: Ext.emptyFn,113 /**114 * Overridden and disabled. A DDTarget does not support being dragged.115 * @method116 */117 setInitPosition: Ext.emptyFn,118 /**119 * Overridden and disabled. A DDTarget does not support being dragged.120 * @method121 */122 setDragElId: Ext.emptyFn,123 /**124 * Overridden and disabled. A DDTarget does not support being dragged.125 * @method126 */127 setHandleElId: Ext.emptyFn,128 /**129 * Overridden and disabled. A DDTarget does not support being dragged.130 * @method131 */132 setOuterHandleElId: Ext.emptyFn,133 /**134 * Overridden and disabled. A DDTarget does not support being dragged.135 * @method136 */137 addInvalidHandleClass: Ext.emptyFn,138 /**139 * Overridden and disabled. A DDTarget does not support being dragged.140 * @method141 */142 addInvalidHandleId: Ext.emptyFn,143 /**144 * Overridden and disabled. A DDTarget does not support being dragged.145 * @method146 */147 addInvalidHandleType: Ext.emptyFn,148 /**149 * Overridden and disabled. A DDTarget does not support being dragged.150 * @method151 */152 removeInvalidHandleClass: Ext.emptyFn,153 /**154 * Overridden and disabled. A DDTarget does not support being dragged.155 * @method156 */157 removeInvalidHandleId: Ext.emptyFn,158 /**159 * Overridden and disabled. A DDTarget does not support being dragged.160 * @method161 */162 removeInvalidHandleType: Ext.emptyFn,163 toString: function() {164 return ("DDTarget " + this.id);165 }...
logical-and.js
Source:logical-and.js
1// Copyright 2010 the V8 project authors. All rights reserved.2// Redistribution and use in source and binary forms, with or without3// modification, are permitted provided that the following conditions are4// met:5//6// * Redistributions of source code must retain the above copyright7// notice, this list of conditions and the following disclaimer.8// * Redistributions in binary form must reproduce the above9// copyright notice, this list of conditions and the following10// disclaimer in the documentation and/or other materials provided11// with the distribution.12// * Neither the name of Google Inc. nor the names of its13// contributors may be used to endorse or promote products derived14// from this software without specific prior written permission.15//16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS17// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT18// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR19// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT20// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,21// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT22// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,23// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY24// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT25// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE26// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27function AndBB(x,y) {28 return (x == 0) && (y == 0);29}30function AndBN(x,y) {31 return (x == 0) && y;32}33function AndNB(x,y) {34 return x && (y == 0);35}36function AndNN(x,y) {37 return x && y;38}39assertTrue(AndBB(0, 0));40assertFalse(AndBB(1, 0));41assertFalse(AndBB(0, 1));42assertFalse(AndBB(1, 1));43assertEquals(0, AndBN(0, 0));44assertEquals(1, AndBN(0, 1));45assertFalse(AndBN(1, 0));46assertEquals(1, AndBN(0, 1));47assertEquals(2, AndBN(0, 2));48assertFalse(AndBN(1, 1));49assertFalse(AndBN(1, 2));50assertEquals(0, AndNB(0, 0));51assertTrue(AndNB(1, 0));52assertEquals(0, AndNB(0, 1));53assertEquals("", AndNB("", 1));54assertFalse(AndNB(1, 1));55assertTrue(AndNB(2, 0));56assertEquals(0, AndNN(0, 0));57assertEquals(0, AndNN(1, 0));58assertEquals(0, AndNN(2, 0));59assertEquals(0, AndNN(0, 1));60assertEquals(0, AndNN(0, 2));61assertEquals(1, AndNN(1, 1));...
Using AI Code Generation
1const strykerParent = require('stryker-parent');2const strykerChild = require('stryker-child');3const strykerChild2 = require('stryker-child2');4const strykerChild3 = require('stryker-child3');5const strykerChild4 = require('stryker-child4');6const strykerChild5 = require('stryker-child5');7const strykerChild6 = require('stryker-child6');8const strykerChild7 = require('stryker-child7');9const strykerChild8 = require('stryker-child8');10const strykerChild9 = require('stryker-child9');11const strykerChild10 = require('stryker-child10');12const strykerChild11 = require('stryker-child11');13const strykerChild12 = require('stryker-child12');14const strykerChild13 = require('stryker-child13');15const strykerChild14 = require('stryker-child14');16const strykerChild15 = require('stryker-child15');17const strykerChild16 = require('stryker-child16');18const strykerChild17 = require('stryker-child17');19const strykerChild18 = require('stryker-child18');20const strykerChild19 = require('
Using AI Code Generation
1const stryker = require('stryker');2const { Stryker } = require('stryker');3const { StrykerError } = require('stryker');4const { ConfigReader } = require('stryker');5const { Config } = require('stryker');6const { ConfigEditor } = require('stryker');7const { ConfigValidator } = require('stryker');8const { MutantResult, MutantStatus } = require('stryker');9const { TestResult } = require('stryker');10const { Reporter } = require('stryker');11const { TestFramework } = require('stryker');12const { TestRunner } = require('stryker');13const { ReporterOrLogger } = require('stryker');14const { Mutant } =
Using AI Code Generation
1const strykerParent = require('stryker-parent');2const strykerConfig = strykerParent.configs.base;3module.exports = function(config) {4 config.set(Object.assign({}, strykerConfig, {5 }));6};7{8 "scripts": {9 },10 "devDependencies": {11 }12}13[2017-08-29 20:49:13.781] [INFO] SandboxPool - Creating 2 test runners (based on CPU count)
Using AI Code Generation
1var stryker = require('stryker-parent');2var stryker = new stryker('test.js');3stryker.run();4var stryker = require('stryker-parent');5var stryker = new stryker('test.js');6stryker.run();7var stryker = require('stryker-parent');8var stryker = new stryker('test.js');9stryker.run();10var stryker = require('stryker-parent');11var stryker = new stryker('test.js');12stryker.run();13var stryker = require('stryker-parent');14var stryker = new stryker('test.js');15stryker.run();16var stryker = require('stryker-parent');17var stryker = new stryker('test.js');18stryker.run();19var stryker = require('stryker-parent');20var stryker = new stryker('test.js');21stryker.run();22var stryker = require('stryker-parent');23var stryker = new stryker('test.js');24stryker.run();25var stryker = require('stryker-parent');26var stryker = new stryker('test.js');27stryker.run();28var stryker = require('stryker-parent');29var stryker = new stryker('test.js');30stryker.run();31var stryker = require('stryker-parent');32var stryker = new stryker('test.js');33stryker.run();
Using AI Code Generation
1var stryker = require('stryker-parent');2var strykerConfig = stryker.createDefaultConfig();3var stryker = require('stryker-parent');4var strykerConfig = stryker.createDefaultConfig();5var stryker = require('stryker-parent');6var strykerConfig = stryker.createDefaultConfig();7var stryker = require('stryker-parent');8var strykerConfig = stryker.createDefaultConfig();9var stryker = require('stryker-parent');10var strykerConfig = stryker.createDefaultConfig();11var stryker = require('stryker-parent');12var strykerConfig = stryker.createDefaultConfig();13var stryker = require('stryker-parent');14var strykerConfig = stryker.createDefaultConfig();15var stryker = require('stryker-parent');16var strykerConfig = stryker.createDefaultConfig();17var stryker = require('stryker-parent');
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!