How to use quote method in Playwright Internal

Best JavaScript code snippet using playwright-internal

quotes.js

Source:quotes.js Github

copy

Full Screen

1let quotes = [2 {3 quoteText:4 'Genius is one percent inspiration and ninety-nine percent perspiration.',5 quoteAuthor: 'Thomas Edison',6 },7 {8 quoteText: 'You can observe a lot just by watching.',9 quoteAuthor: 'Yogi Berra',10 },11 {12 quoteText:13 'A house divided against itself cannot stand.',14 quoteAuthor: 'Abraham Lincoln',15 },16 {17 quoteText:18 'Difficulties increase the nearer we get to the goal.',19 quoteAuthor: 'Johann Wolfgang von Goethe',20 },21 {22 quoteText: 'Fate is in your hands and no one elses',23 quoteAuthor: 'Byron Pulsifer',24 },25 {26 quoteText: 'Be the chief but never the lord.',27 quoteAuthor: 'Lao Tzu',28 },29 {30 quoteText: 'Nothing happens unless first we dream.',31 quoteAuthor: 'Carl Sandburg',32 },33 {34 quoteText: 'Well begun is half done.',35 quoteAuthor: 'Aristotle',36 },37 {38 quoteText:39 'Life is a learning experience, only if you learn.',40 quoteAuthor: 'Yogi Berra',41 },42 {43 quoteText: 'Self-complacency is fatal to progress.',44 quoteAuthor: 'Margaret Sangster',45 },46 {47 quoteText:48 'Peace comes from within. Do not seek it without.',49 quoteAuthor: 'Buddha',50 },51 {52 quoteText: 'What you give is what you get.',53 quoteAuthor: 'Byron Pulsifer',54 },55 {56 quoteText: 'We can only learn to love by loving.',57 quoteAuthor: 'Iris Murdoch',58 },59 {60 quoteText:61 'Life is change. Growth is optional. Choose wisely.',62 quoteAuthor: 'Karen Clark',63 },64 {65 quoteText: "You'll see it when you believe it.",66 quoteAuthor: 'Wayne Dyer',67 },68 {69 quoteText:70 'Today is the tomorrow we worried about yesterday.',71 quoteAuthor: '',72 },73 {74 quoteText:75 "It's easier to see the mistakes on someone else's paper.",76 quoteAuthor: '',77 },78 {79 quoteText:80 'Every man dies. Not every man really lives.',81 quoteAuthor: '',82 },83 {84 quoteText: 'To lead people walk behind them.',85 quoteAuthor: 'Lao Tzu',86 },87 {88 quoteText: 'Having nothing, nothing can he lose.',89 quoteAuthor: 'William Shakespeare',90 },91 {92 quoteText:93 'Trouble is only opportunity in work clothes.',94 quoteAuthor: 'Henry J. Kaiser',95 },96 {97 quoteText: 'A rolling stone gathers no moss.',98 quoteAuthor: 'Publilius Syrus',99 },100 {101 quoteText:102 'Ideas are the beginning points of all fortunes.',103 quoteAuthor: 'Napoleon Hill',104 },105 {106 quoteText: 'Everything in life is luck.',107 quoteAuthor: 'Donald Trump',108 },109 {110 quoteText:111 'Doing nothing is better than being busy doing nothing.',112 quoteAuthor: 'Lao Tzu',113 },114 {115 quoteText:116 'Trust yourself. You know more than you think you do.',117 quoteAuthor: 'Benjamin Spock',118 },119 {120 quoteText:121 'Study the past, if you would divine the future.',122 quoteAuthor: 'Confucius',123 },124 {125 quoteText:126 'The day is already blessed, find peace within it.',127 quoteAuthor: '',128 },129 {130 quoteText:131 'From error to error one discovers the entire truth.',132 quoteAuthor: 'Sigmund Freud',133 },134 {135 quoteText: 'Well done is better than well said.',136 quoteAuthor: 'Benjamin Franklin',137 },138 {139 quoteText:140 'Bite off more than you can chew, then chew it.',141 quoteAuthor: 'Ella Williams',142 },143 {144 quoteText:145 'Work out your own salvation. Do not depend on others.',146 quoteAuthor: 'Buddha',147 },148 {149 quoteText: 'One today is worth two tomorrows.',150 quoteAuthor: 'Benjamin Franklin',151 },152 {153 quoteText: 'Once you choose hope, anythings possible.',154 quoteAuthor: 'Christopher Reeve',155 },156 {157 quoteText: 'God always takes the simplest way.',158 quoteAuthor: 'Albert Einstein',159 },160 {161 quoteText: 'One fails forward toward success.',162 quoteAuthor: 'Charles Kettering',163 },164 {165 quoteText: 'From small beginnings come great things.',166 quoteAuthor: '',167 },168 {169 quoteText:170 'Learning is a treasure that will follow its owner everywhere',171 quoteAuthor: 'Chinese proverb',172 },173 {174 quoteText: 'Be as you wish to seem.',175 quoteAuthor: 'Socrates',176 },177 {178 quoteText: 'The world is always in movement.',179 quoteAuthor: 'V. Naipaul',180 },181 {182 quoteText: 'Never mistake activity for achievement.',183 quoteAuthor: 'John Wooden',184 },185 {186 quoteText: 'What worries you masters you.',187 quoteAuthor: 'Haddon Robinson',188 },189 {190 quoteText: 'One faces the future with ones past.',191 quoteAuthor: 'Pearl Buck',192 },193 {194 quoteText:195 'Goals are the fuel in the furnace of achievement.',196 quoteAuthor: 'Brian Tracy',197 },198 {199 quoteText: 'Who sows virtue reaps honour.',200 quoteAuthor: 'Leonardo da Vinci',201 },202 {203 quoteText:204 'Be kind whenever possible. It is always possible.',205 quoteAuthor: 'Dalai Lama',206 },207 {208 quoteText: "Talk doesn't cook rice.",209 quoteAuthor: 'Chinese proverb',210 },211 {212 quoteText: 'He is able who thinks he is able.',213 quoteAuthor: 'Buddha',214 },215 {216 quoteText: 'Be as you wish to seem.',217 quoteAuthor: 'Socrates',218 },219 {220 quoteText: 'A goal without a plan is just a wish.',221 quoteAuthor: 'Larry Elder',222 },223 {224 quoteText:225 'To succeed, we must first believe that we can.',226 quoteAuthor: 'Michael Korda',227 },228 {229 quoteText:230 'Learn from yesterday, live for today, hope for tomorrow.',231 quoteAuthor: 'Albert Einstein',232 },233 {234 quoteText:235 'A weed is no more than a flower in disguise.',236 quoteAuthor: 'James Lowell',237 },238 {239 quoteText: 'Do, or do not. There is no try.',240 quoteAuthor: 'Yoda',241 },242 {243 quoteText: 'All serious daring starts from within.',244 quoteAuthor: 'Harriet Beecher Stowe',245 },246 {247 quoteText:248 'The best teacher is experience learned from failures.',249 quoteAuthor: 'Byron Pulsifer',250 },251 {252 quoteText:253 'Think how hard physics would be if particles could think.',254 quoteAuthor: 'Murray Gell-Mann',255 },256 {257 quoteText: "Love is the flower you've got to let grow.",258 quoteAuthor: 'John Lennon',259 },260 {261 quoteText:262 "Don't wait. The time will never be just right.",263 quoteAuthor: 'Napoleon Hill',264 },265 {266 quoteText: 'One fails forward toward success.',267 quoteAuthor: 'Charles Kettering',268 },269 {270 quoteText: 'Time is the wisest counsellor of all.',271 quoteAuthor: 'Pericles',272 },273 {274 quoteText: 'You give before you get.',275 quoteAuthor: 'Napoleon Hill',276 },277 {278 quoteText: 'Wisdom begins in wonder.',279 quoteAuthor: 'Socrates',280 },281 {282 quoteText: 'Without courage, wisdom bears no fruit.',283 quoteAuthor: 'Baltasar Gracian',284 },285 {286 quoteText: 'Change in all things is sweet.',287 quoteAuthor: 'Aristotle',288 },289 {290 quoteText:291 'What you fear is that which requires action to overcome.',292 quoteAuthor: 'Byron Pulsifer',293 },294 {295 quoteText:296 'The best teacher is experience learned from failures.',297 quoteAuthor: 'Byron Pulsifer',298 },299 {300 quoteText:301 'When performance exceeds ambition, the overlap is called success.',302 quoteAuthor: 'Cullen Hightower',303 },304 {305 quoteText: 'When deeds speak, words are nothing.',306 quoteAuthor: 'African proverb',307 },308 {309 quoteText:310 'Real magic in relationships means an absence of judgement of others.',311 quoteAuthor: 'Wayne Dyer',312 },313 {314 quoteText:315 'When performance exceeds ambition, the overlap is called success.',316 quoteAuthor: 'Cullen Hightower',317 },318 {319 quoteText:320 'I never think of the future. It comes soon enough.',321 quoteAuthor: 'Albert Einstein',322 },323 {324 quoteText: 'Skill to do comes of doing.',325 quoteAuthor: 'Ralph Emerson',326 },327 {328 quoteText: 'Wisdom is the supreme part of happiness.',329 quoteAuthor: 'Sophocles',330 },331 {332 quoteText:333 'I believe that every person is born with talent.',334 quoteAuthor: 'Maya Angelou',335 },336 {337 quoteText:338 'Important principles may, and must, be inflexible.',339 quoteAuthor: 'Abraham Lincoln',340 },341 {342 quoteText:343 'The undertaking of a new action brings new strength.',344 quoteAuthor: 'Richard Evans',345 },346 {347 quoteText:348 'I believe that every person is born with talent.',349 quoteAuthor: 'Maya Angelou',350 },351 {352 quoteText:353 'The years teach much which the days never know.',354 quoteAuthor: 'Ralph Emerson',355 },356 {357 quoteText: 'Our distrust is very expensive.',358 quoteAuthor: 'Ralph Emerson',359 },360 {361 quoteText: 'All know the way; few actually walk it.',362 quoteAuthor: 'Bodhidharma',363 },364 {365 quoteText: 'Great talent finds happiness in execution.',366 quoteAuthor: 'Johann Wolfgang von Goethe',367 },368 {369 quoteText:370 'Faith in oneself is the best and safest course.',371 quoteAuthor: 'Michelangelo',372 },373 {374 quoteText:375 'Courage is going from failure to failure without losing enthusiasm.',376 quoteAuthor: 'Winston Churchill',377 },378 {379 quoteText:380 'The two most powerful warriors are patience and time.',381 quoteAuthor: 'Leo Tolstoy',382 },383 {384 quoteText:385 'Anticipate the difficult by managing the easy.',386 quoteAuthor: 'Lao Tzu',387 },388 {389 quoteText:390 'Those who are free of resentful thoughts surely find peace.',391 quoteAuthor: 'Buddha',392 },393 {394 quoteText: "Talk doesn't cook rice.",395 quoteAuthor: 'Chinese proverb',396 },397 {398 quoteText: 'A short saying often contains much wisdom.',399 quoteAuthor: 'Sophocles',400 },401 {402 quoteText:403 'The day is already blessed, find peace within it.',404 quoteAuthor: '',405 },406 {407 quoteText:408 'It takes both sunshine and rain to make a rainbow.',409 quoteAuthor: '',410 },411 {412 quoteText: 'A beautiful thing is never perfect.',413 quoteAuthor: '',414 },415 {416 quoteText: 'Only do what your heart tells you.',417 quoteAuthor: 'Princess Diana',418 },419 {420 quoteText:421 'Life is movement-we breathe, we eat, we walk, we move!',422 quoteAuthor: 'John Pierrakos',423 },424 {425 quoteText:426 'No one can make you feel inferior without your consent.',427 quoteAuthor: 'Eleanor Roosevelt',428 },429 {430 quoteText: 'One fails forward toward success.',431 quoteAuthor: 'Charles Kettering',432 },433 {434 quoteText:435 'Argue for your limitations, and sure enough theyre yours.',436 quoteAuthor: 'Richard Bach',437 },438 {439 quoteText:440 'Luck is what happens when preparation meets opportunity.',441 quoteAuthor: 'Seneca',442 },443 {444 quoteText: 'Victory belongs to the most persevering.',445 quoteAuthor: 'Napoleon Bonaparte',446 },447 {448 quoteText: 'Once you choose hope, anythings possible.',449 quoteAuthor: 'Christopher Reeve',450 },451 {452 quoteText: 'Love all, trust a few, do wrong to none.',453 quoteAuthor: 'William Shakespeare',454 },455 {456 quoteText: 'In order to win, you must expect to win.',457 quoteAuthor: 'Richard Bach',458 },459 {460 quoteText: 'A goal is a dream with a deadline.',461 quoteAuthor: 'Napoleon Hill',462 },463 {464 quoteText: 'You can do it if you believe you can!',465 quoteAuthor: 'Napoleon Hill',466 },467 {468 quoteText:469 "Set your goals high, and don't stop till you get there.",470 quoteAuthor: 'Bo Jackson',471 },472 {473 quoteText:474 'Genius is one percent inspiration and ninety-nine percent perspiration.',475 quoteAuthor: 'Thomas Edison',476 },477 {478 quoteText:479 'Every new day is another chance to change your life.',480 quoteAuthor: '',481 },482 {483 quoteText: 'Smile, breathe, and go slowly.',484 quoteAuthor: 'Thich Nhat Hanh',485 },486 {487 quoteText:488 'Nobody will believe in you unless you believe in yourself.',489 quoteAuthor: 'Liberace',490 },491 {492 quoteText:493 'Be kind whenever possible. It is always possible.',494 quoteAuthor: 'Dalai Lama',495 },496 {497 quoteText: 'Do more than dream: work.',498 quoteAuthor: 'William Arthur Ward',499 },500 {501 quoteText: 'No man was ever wise by chance.',502 quoteAuthor: 'Seneca',503 },504 {505 quoteText: 'Some pursue happiness, others create it.',506 quoteAuthor: '',507 },508 {509 quoteText:510 "It's easier to see the mistakes on someone else's paper.",511 quoteAuthor: '',512 },513 {514 quoteText:515 'Think how hard physics would be if particles could think.',516 quoteAuthor: 'Murray Gell-Mann',517 },518 {519 quoteText: 'Well begun is half done.',520 quoteAuthor: 'Aristotle',521 },522 {523 quoteText:524 'He that is giddy thinks the world turns round.',525 quoteAuthor: 'William Shakespeare',526 },527 {528 quoteText:529 "Don't ruin the present with the ruined past.",530 quoteAuthor: 'Ellen Gilchrist',531 },532 {533 quoteText:534 'Do something wonderful, people may imitate it.',535 quoteAuthor: 'Albert Schweitzer',536 },537 {538 quoteText: 'We do what we do because we believe.',539 quoteAuthor: '',540 },541 {542 quoteText: 'Great talent finds happiness in execution.',543 quoteAuthor: 'Johann Wolfgang von Goethe',544 },545 {546 quoteText: 'Do one thing every day that scares you.',547 quoteAuthor: 'Eleanor Roosevelt',548 },549 {550 quoteText:551 'If you cannot be silent be brilliant and thoughtful.',552 quoteAuthor: 'Byron Pulsifer',553 },554 {555 quoteText: 'Smile, breathe, and go slowly.',556 quoteAuthor: 'Thich Nhat Hanh',557 },558 {559 quoteText:560 'Who looks outside, dreams; who looks inside, awakes.',561 quoteAuthor: 'Carl Jung',562 },563 {564 quoteText: 'What we think, we become.',565 quoteAuthor: 'Buddha',566 },567 {568 quoteText: 'The shortest answer is doing.',569 quoteAuthor: 'Lord Herbert',570 },571 {572 quoteText:573 'All our knowledge has its origins in our perceptions.',574 quoteAuthor: 'Leonardo da Vinci',575 },576 {577 quoteText: 'He is able who thinks he is able.',578 quoteAuthor: 'Buddha',579 },580 {581 quoteText:582 'The harder you fall, the higher you bounce.',583 quoteAuthor: '',584 },585 {586 quoteText:587 'Trusting our intuition often saves us from disaster.',588 quoteAuthor: 'Anne Wilson Schaef',589 },590 {591 quoteText: 'Truth is powerful and it prevails.',592 quoteAuthor: 'Sojourner Truth',593 },594 {595 quoteText: "Talk doesn't cook rice.",596 quoteAuthor: 'Chinese proverb',597 },598 {599 quoteText: 'Light tomorrow with today!',600 quoteAuthor: 'Elizabeth Browning',601 },602 {603 quoteText: 'Silence is a fence around wisdom.',604 quoteAuthor: 'German proverb',605 },606 {607 quoteText:608 'Society develops wit, but its contemplation alone forms genius.',609 quoteAuthor: 'Madame de Stael',610 },611 {612 quoteText:613 'Real magic in relationships means an absence of judgement of others.',614 quoteAuthor: 'Wayne Dyer',615 },616 {617 quoteText:618 'The years teach much which the days never know.',619 quoteAuthor: 'Ralph Emerson',620 },621 {622 quoteText: 'We can only learn to love by loving.',623 quoteAuthor: 'Iris Murdoch',624 },625 {626 quoteText: 'The simplest things are often the truest.',627 quoteAuthor: 'Richard Bach',628 },629 {630 quoteText: 'What you give is what you get.',631 quoteAuthor: 'Byron Pulsifer',632 },633 {634 quoteText: 'Everyone smiles in the same language.',635 quoteAuthor: '',636 },637 {638 quoteText: 'A short saying often contains much wisdom.',639 quoteAuthor: 'Sophocles',640 },641 {642 quoteText:643 'Yesterday I dared to struggle. Today I dare to win.',644 quoteAuthor: 'Bernadette Devlin',645 },646 {647 quoteText: 'Victory belongs to the most persevering.',648 quoteAuthor: 'Napoleon Bonaparte',649 },650 {651 quoteText:652 'No alibi will save you from accepting the responsibility.',653 quoteAuthor: 'Napoleon Hill',654 },655 {656 quoteText: 'If you can dream it, you can do it.',657 quoteAuthor: 'Walt Disney',658 },659 {660 quoteText:661 'From error to error one discovers the entire truth.',662 quoteAuthor: 'Sigmund Freud',663 },664 {665 quoteText:666 'It is better to travel well than to arrive.',667 quoteAuthor: 'Buddha',668 },669 {670 quoteText:671 "Life shrinks or expands in proportion to one's courage.",672 quoteAuthor: 'Anais Nin',673 },674 {675 quoteText: 'You have to believe in yourself.',676 quoteAuthor: 'Sun Tzu',677 },678 {679 quoteText: 'Our intention creates our reality.',680 quoteAuthor: 'Wayne Dyer',681 },682 {683 quoteText:684 'Silence is a true friend who never betrays.',685 quoteAuthor: 'Confucius',686 },687 {688 quoteText:689 'Character develops itself in the stream of life.',690 quoteAuthor: 'Johann Wolfgang von Goethe',691 },692 {693 quoteText: 'From little acorns mighty oaks do grow.',694 quoteAuthor: 'American proverb',695 },696 {697 quoteText: 'You have to believe in yourself.',698 quoteAuthor: 'Sun Tzu',699 },700 {701 quoteText:702 "You can't stop the waves, but you can learn to surf.",703 quoteAuthor: 'Jon Kabat-Zinn',704 },705 {706 quoteText:707 'Reality does not conform to the ideal, but confirms it.',708 quoteAuthor: 'Gustave Flaubert',709 },710 {711 quoteText: 'Speak low, if you speak love.',712 quoteAuthor: 'William Shakespeare',713 },714 {715 quoteText:716 'A really great talent finds its happiness in execution.',717 quoteAuthor: 'Johann Wolfgang von Goethe',718 },719 {720 quoteText: 'Reality leaves a lot to the imagination.',721 quoteAuthor: 'John Lennon',722 },723 {724 quoteText: 'Our intention creates our reality.',725 quoteAuthor: 'Wayne Dyer',726 },727 {728 quoteText:729 'Society develops wit, but its contemplation alone forms genius.',730 quoteAuthor: 'Madame de Stael',731 },732 {733 quoteText: 'The greatest remedy for anger is delay.',734 quoteAuthor: 'Seneca',735 },736 {737 quoteText:738 'Growth itself contains the germ of happiness.',739 quoteAuthor: 'Pearl Buck',740 },741 {742 quoteText:743 "You can do what's reasonable or you can decide what's possible.",744 quoteAuthor: '',745 },746 {747 quoteText:748 'Nothing strengthens authority so much as silence.',749 quoteAuthor: 'Leonardo da Vinci',750 },751 {752 quoteText: 'Wherever you go, go with all your heart.',753 quoteAuthor: 'Confucius',754 },755 {756 quoteText: 'The only real valuable thing is intuition.',757 quoteAuthor: 'Albert Einstein',758 },759 {760 quoteText:761 'I believe that every person is born with talent.',762 quoteAuthor: 'Maya Angelou',763 },764 {765 quoteText:766 'Good luck is another name for tenacity of purpose.',767 quoteAuthor: 'Ralph Emerson',768 },769 {770 quoteText: 'Rainbows apologize for angry skies.',771 quoteAuthor: 'Sylvia Voirol',772 },773 {774 quoteText:775 "Friendship isn't a big thing. It's a million little things.",776 quoteAuthor: '',777 },778 {779 quoteText:780 'Time is the most valuable thing a man can spend.',781 quoteAuthor: 'Theophrastus',782 },783 {784 quoteText: 'Whatever happens, take responsibility.',785 quoteAuthor: 'Tony Robbins',786 },787 {788 quoteText:789 'Experience is simply the name we give our mistakes.',790 quoteAuthor: 'Oscar Wilde',791 },792 {793 quoteText: 'I think and that is all that I am.',794 quoteAuthor: 'Wayne Dyer',795 },796 {797 quoteText:798 'A good plan today is better than a perfect plan tomorrow.',799 quoteAuthor: '',800 },801 {802 quoteText: 'Be as you wish to seem.',803 quoteAuthor: 'Socrates',804 },805 {806 quoteText:807 "If the shoe doesn't fit, must we change the foot?",808 quoteAuthor: 'Gloria Steinem',809 },810 {811 quoteText: 'Each day provides its own gifts.',812 quoteAuthor: 'Marcus Aurelius',813 },814 {815 quoteText:816 'While we stop to think, we often miss our opportunity.',817 quoteAuthor: 'Publilius Syrus',818 },819 {820 quoteText:821 "Life isn't about finding yourself. Life is about creating yourself.",822 quoteAuthor: 'Bernard Shaw',823 },824 {825 quoteText:826 "To bring anything into your life, imagine that it's already there.",827 quoteAuthor: 'Richard Bach',828 },829 {830 quoteText:831 'Begin to weave and God will give you the thread.',832 quoteAuthor: 'German proverb',833 },834 {835 quoteText:836 'The more you know yourself, the more you forgive yourself.',837 quoteAuthor: 'Confucius',838 },839 {840 quoteText:841 "Someone remembers, someone cares; your name is whispered in someone's prayers.",842 quoteAuthor: '',843 },844 {845 quoteText:846 'Without faith, nothing is possible. With it, nothing is impossible.',847 quoteAuthor: 'Mary Bethune',848 },849 {850 quoteText: 'What worries you masters you.',851 quoteAuthor: 'Haddon Robinson',852 },853 {854 quoteText:855 'Once we accept our limits, we go beyond them.',856 quoteAuthor: 'Albert Einstein',857 },858 {859 quoteText:860 "Don't be pushed by your problems; be led by your dreams.",861 quoteAuthor: '',862 },863 {864 quoteText:865 'Whatever we expect with confidence becomes our own self-fulfilling prophecy.',866 quoteAuthor: 'Brian Tracy',867 },868 {869 quoteText: 'Everything you can imagine is real.',870 quoteAuthor: 'Pablo Picasso',871 },872 {873 quoteText: 'The shortest answer is doing.',874 quoteAuthor: 'Lord Herbert',875 },876 {877 quoteText: 'A beautiful thing is never perfect.',878 quoteAuthor: '',879 },880 {881 quoteText:882 'Fear is a darkroom where negatives develop.',883 quoteAuthor: 'Usman Asif',884 },885 {886 quoteText: 'The simplest things are often the truest.',887 quoteAuthor: 'Richard Bach',888 },889 {890 quoteText:891 'The truest wisdom is a resolute determination.',892 quoteAuthor: 'Napoleon Bonaparte',893 },894 {895 quoteText:896 'Life is the flower for which love is the honey.',897 quoteAuthor: 'Victor Hugo',898 },899 {900 quoteText: 'Freedom is the right to live as we wish.',901 quoteAuthor: 'Epictetus',902 },903 {904 quoteText: 'Change your thoughts, change your life!',905 quoteAuthor: '',906 },907 {908 quoteText:909 "Never ignore a gut feeling, but never believe that it's enough.",910 quoteAuthor: 'Robert Heller',911 },912 {913 quoteText:914 'Loss is nothing else but change,and change is Natures delight.',915 quoteAuthor: 'Marcus Aurelius',916 },917 {918 quoteText: 'Someone is special only if you tell them.',919 quoteAuthor: 'Byron Pulsifer',920 },921 {922 quoteText: 'Great talent finds happiness in execution.',923 quoteAuthor: 'Johann Wolfgang von Goethe',924 },925 {926 quoteText:927 'Today is the tomorrow you worried about yesterday.',928 quoteAuthor: '',929 },930 {931 quoteText:932 'There is no way to happiness, happiness is the way.',933 quoteAuthor: 'Thich Nhat Hanh',934 },935 {936 quoteText:937 'The day always looks brighter from behind a smile.',938 quoteAuthor: '',939 },940 {941 quoteText: 'A beautiful thing is never perfect.',942 quoteAuthor: '',943 },944 {945 quoteText:946 'No alibi will save you from accepting the responsibility.',947 quoteAuthor: 'Napoleon Hill',948 },949 {950 quoteText:951 'Argue for your limitations, and sure enough theyre yours.',952 quoteAuthor: 'Richard Bach',953 },954 {955 quoteText: 'You can observe a lot just by watching.',956 quoteAuthor: 'Yogi Berra',957 },958 {959 quoteText: 'Reality leaves a lot to the imagination.',960 quoteAuthor: 'John Lennon',961 },962 {963 quoteText: 'A stumble may prevent a fall.',964 quoteAuthor: '',965 },966 {967 quoteText: 'He who talks more is sooner exhausted.',968 quoteAuthor: 'Lao Tzu',969 },970 {971 quoteText: 'Well begun is half done.',972 quoteAuthor: 'Aristotle',973 },974 {975 quoteText: 'He who is contented is rich.',976 quoteAuthor: 'Lao Tzu',977 },978 {979 quoteText:980 'Work out your own salvation. Do not depend on others.',981 quoteAuthor: 'Buddha',982 },983 {984 quoteText: 'You can do it if you believe you can!',985 quoteAuthor: 'Napoleon Hill',986 },987 {988 quoteText:989 'What we achieve inwardly will change outer reality.',990 quoteAuthor: 'Plutarch',991 },992 {993 quoteText: 'Our strength grows out of our weaknesses.',994 quoteAuthor: 'Ralph Waldo Emerson',995 },996 {997 quoteText: 'We must become the change we want to see.',998 quoteAuthor: 'Mahatma Gandhi',999 },1000 {1001 quoteText:1002 'Happiness is found in doing, not merely possessing.',1003 quoteAuthor: 'Napoleon Hill',1004 },1005 {1006 quoteText: 'Put your future in good hands � your own.',1007 quoteAuthor: '',1008 },1009 {1010 quoteText:1011 'We choose our destiny in the way we treat others.',1012 quoteAuthor: 'Wit',1013 },1014 {1015 quoteText:1016 'Time is the most valuable thing a man can spend.',1017 quoteAuthor: 'Theophrastus',1018 },1019 {1020 quoteText:1021 'No snowflake in an avalanche ever feels responsible.',1022 quoteAuthor: 'Voltaire',1023 },1024 {1025 quoteText: 'Smile, breathe, and go slowly.',1026 quoteAuthor: 'Thich Nhat Hanh',1027 },1028 {1029 quoteText: 'Fortune favours the brave.',1030 quoteAuthor: 'Virgil',1031 },1032 {1033 quoteText:1034 'I believe in one thing only, the power of human will.',1035 quoteAuthor: 'Joseph Stalin',1036 },1037 {1038 quoteText:1039 'The more you know yourself, the more you forgive yourself.',1040 quoteAuthor: 'Confucius',1041 },1042 {1043 quoteText: 'The best way out is always through.',1044 quoteAuthor: 'Robert Frost',1045 },1046 {1047 quoteText:1048 'The mind unlearns with difficulty what it has long learned.',1049 quoteAuthor: 'Seneca',1050 },1051 {1052 quoteText:1053 'I destroy my enemies when I make them my friends.',1054 quoteAuthor: 'Abraham Lincoln',1055 },1056 {1057 quoteText: 'No garden is without its weeds.',1058 quoteAuthor: 'Thomas Fuller',1059 },1060 {1061 quoteText:1062 'There is no failure except in no longer trying.',1063 quoteAuthor: 'Elbert Hubbard',1064 },1065 {1066 quoteText: 'Kind words will unlock an iron door.',1067 quoteAuthor: 'Turkish proverb',1068 },1069 {1070 quoteText:1071 'Problems are only opportunities with thorns on them.',1072 quoteAuthor: 'Hugh Miller',1073 },1074 {1075 quoteText: 'Life is just a chance to grow a soul.',1076 quoteAuthor: 'A. Powell Davies',1077 },1078 {1079 quoteText:1080 'Reality does not conform to the ideal, but confirms it.',1081 quoteAuthor: 'Gustave Flaubert',1082 },1083 {1084 quoteText: 'If you can dream it, you can do it.',1085 quoteAuthor: 'Walt Disney',1086 },1087 {1088 quoteText:1089 'Mountains cannot be surmounted except by winding paths.',1090 quoteAuthor: 'Johann Wolfgang von Goethe',1091 },1092 {1093 quoteText:1094 'May our hearts garden of awakening bloom with hundreds of flowers.',1095 quoteAuthor: 'Thich Nhat Hanh',1096 },1097 {1098 quoteText:1099 'Nobody will believe in you unless you believe in yourself.',1100 quoteAuthor: 'Liberace',1101 },1102 {1103 quoteText: 'Fortune befriends the bold.',1104 quoteAuthor: 'John Dryden',1105 },1106 {1107 quoteText: 'Keep true to the dreams of thy youth.',1108 quoteAuthor: 'Friedrich von Schiller',1109 },1110 {1111 quoteText:1112 "You're never a loser until you quit trying.",1113 quoteAuthor: 'Mike Ditka',1114 },1115 {1116 quoteText:1117 'Science is organized knowledge. Wisdom is organized life.',1118 quoteAuthor: 'Immanuel Kant',1119 },1120 {1121 quoteText: 'Knowing is not enough; we must apply!',1122 quoteAuthor: 'Johann Wolfgang von Goethe',1123 },1124 {1125 quoteText:1126 'Strong beliefs win strong men, and then make them stronger.',1127 quoteAuthor: 'Richard Bach',1128 },1129 {1130 quoteText:1131 'Autumn is a second spring when every leaf is a flower.',1132 quoteAuthor: 'Albert Camus',1133 },1134 {1135 quoteText:1136 'If you surrender to the wind, you can ride it.',1137 quoteAuthor: 'Toni Morrison',1138 },1139 {1140 quoteText:1141 'Character develops itself in the stream of life.',1142 quoteAuthor: 'Johann Wolfgang von Goethe',1143 },1144 {1145 quoteText: 'We must become the change we want to see.',1146 quoteAuthor: 'Mahatma Gandhi',1147 },1148 {1149 quoteText:1150 'Keep yourself to the sunshine and you cannot see the shadow.',1151 quoteAuthor: 'Helen Keller',1152 },1153 {1154 quoteText:1155 'Write your plans in pencil and give God the eraser.',1156 quoteAuthor: 'Paulo Coelho',1157 },1158 {1159 quoteText:1160 'Inspiration exists, but it has to find us working.',1161 quoteAuthor: 'Pablo Picasso',1162 },1163 {1164 quoteText: 'All serious daring starts from within.',1165 quoteAuthor: 'Harriet Beecher Stowe',1166 },1167 {1168 quoteText:1169 'Pick battles big enough to matter, small enough to win.',1170 quoteAuthor: 'Jonathan Kozol',1171 },1172 {1173 quoteText:1174 "Don't compromise yourself. You are all you've got.",1175 quoteAuthor: 'Janis Joplin',1176 },1177 {1178 quoteText:1179 'He that is giddy thinks the world turns round.',1180 quoteAuthor: 'William Shakespeare',1181 },1182 {1183 quoteText: 'A short saying oft contains much wisdom.',1184 quoteAuthor: 'Sophocles',1185 },1186 {1187 quoteText:1188 'Difficulties are things that show a person what they are.',1189 quoteAuthor: 'Epictetus',1190 },1191 {1192 quoteText:1193 'When you doubt your power, you give power to your doubt.',1194 quoteAuthor: 'Honore de Balzac',1195 },1196 {1197 quoteText:1198 'The cause is hidden. The effect is visible to all.',1199 quoteAuthor: 'Ovid',1200 },1201 {1202 quoteText:1203 'A weed is no more than a flower in disguise.',1204 quoteAuthor: 'James Lowell',1205 },1206 {1207 quoteText: 'Keep true to the dreams of thy youth.',1208 quoteAuthor: 'Friedrich von Schiller',1209 },1210 {1211 quoteText: 'A prudent question is one half of wisdom.',1212 quoteAuthor: 'Francis Bacon',1213 },1214 {1215 quoteText:1216 'The path to success is to take massive, determined action.',1217 quoteAuthor: 'Tony Robbins',1218 },1219 {1220 quoteText: 'I allow my intuition to lead my path.',1221 quoteAuthor: 'Manuel Puig',1222 },1223 {1224 quoteText:1225 'Nature takes away any faculty that is not used.',1226 quoteAuthor: 'William R. Inge',1227 },1228 {1229 quoteText:1230 'All our knowledge has its origins in our perceptions.',1231 quoteAuthor: 'Leonardo da Vinci',1232 },1233 {1234 quoteText:1235 "If the shoe doesn't fit, must we change the foot?",1236 quoteAuthor: 'Gloria Steinem',1237 },1238 {1239 quoteText:1240 "Life shrinks or expands in proportion to one's courage.",1241 quoteAuthor: 'Anais Nin',1242 },1243 {1244 quoteText:1245 'May our hearts garden of awakening bloom with hundreds of flowers.',1246 quoteAuthor: 'Thich Nhat Hanh',1247 },1248 {1249 quoteText: 'If you wish to be a writer, write.',1250 quoteAuthor: 'Epictetus',1251 },1252 {1253 quoteText:1254 'Today is the tomorrow we worried about yesterday.',1255 quoteAuthor: '',1256 },1257 {1258 quoteText:1259 'There is no way to prosperity, prosperity is the way.',1260 quoteAuthor: 'Wayne Dyer',1261 },1262 {1263 quoteText: "Talk doesn't cook rice.",1264 quoteAuthor: 'Chinese proverb',1265 },1266 {1267 quoteText: 'Wherever you go, go with all your heart.',1268 quoteAuthor: 'Confucius',1269 },1270 {1271 quoteText:1272 'Either you run the day or the day runs you.',1273 quoteAuthor: 'Jim Rohn',1274 },1275 {1276 quoteText:1277 'Write your plans in pencil and give God the eraser.',1278 quoteAuthor: 'Paulo Coelho',1279 },1280 {1281 quoteText:1282 'Better be ignorant of a matter than half know it.',1283 quoteAuthor: 'Publilius Syrus',1284 },1285 {1286 quoteText:1287 'Follow your instincts. That is where true wisdom manifests itself.',1288 quoteAuthor: 'Oprah Winfrey',1289 },1290 {1291 quoteText:1292 'There never was a good knife made of bad steel.',1293 quoteAuthor: 'Benjamin Franklin',1294 },1295 {1296 quoteText:1297 'To accomplish great things, we must dream as well as act.',1298 quoteAuthor: 'Anatole France',1299 },1300 {1301 quoteText: 'Patience is the companion of wisdom.',1302 quoteAuthor: 'Saint Augustine',1303 },1304 {1305 quoteText:1306 'The mind is everything. What you think you become.',1307 quoteAuthor: 'Buddha',1308 },1309 {1310 quoteText:1311 'To enjoy life, we must touch much of it lightly.',1312 quoteAuthor: 'Voltaire',1313 },1314 {1315 quoteText: 'To fly, we have to have resistance.',1316 quoteAuthor: 'Maya Lin',1317 },1318 {1319 quoteText:1320 'The more you know yourself, the more you forgive yourself.',1321 quoteAuthor: 'Confucius',1322 },1323 {1324 quoteText:1325 "What you see depends on what you're looking for.",1326 quoteAuthor: '',1327 },1328 {1329 quoteText:1330 'The heart has its reasons which reason knows not of.',1331 quoteAuthor: 'Blaise Pascal',1332 },1333 {1334 quoteText:1335 'When you doubt your power, you give power to your doubt.',1336 quoteAuthor: 'Honore de Balzac',1337 },1338 {1339 quoteText:1340 'Be great in act, as you have been in thought.',1341 quoteAuthor: 'William Shakespeare',1342 },1343 {1344 quoteText: 'Imagination rules the world.',1345 quoteAuthor: 'Napoleon Bonaparte',1346 },1347 {1348 quoteText:1349 'Kind words do not cost much. Yet they accomplish much.',1350 quoteAuthor: 'Blaise Pascal',1351 },1352 {1353 quoteText: 'Wherever you go, go with all your heart.',1354 quoteAuthor: 'Confucius',1355 },1356 {1357 quoteText: 'In order to win, you must expect to win.',1358 quoteAuthor: 'Richard Bach',1359 },1360 {1361 quoteText:1362 "You're never a loser until you quit trying.",1363 quoteAuthor: 'Mike Ditka',1364 },1365 {1366 quoteText:1367 'There is no greater harm than that of time wasted.',1368 quoteAuthor: 'Michelangelo',1369 },1370 {1371 quoteText:1372 'Intuition will tell the thinking mind where to look next.',1373 quoteAuthor: 'Jonas Salk',1374 },1375 {1376 quoteText:1377 'Nature takes away any faculty that is not used.',1378 quoteAuthor: 'William R. Inge',1379 },1380 {1381 quoteText:1382 'Doing nothing is better than being busy doing nothing.',1383 quoteAuthor: 'Lao Tzu',1384 },1385 {1386 quoteText:1387 'It is better to travel well than to arrive.',1388 quoteAuthor: 'Buddha',1389 },1390 {1391 quoteText: 'Once you choose hope, anythings possible.',1392 quoteAuthor: 'Christopher Reeve',1393 },1394 {1395 quoteText: 'Worry gives a small thing a big shadow.',1396 quoteAuthor: '',1397 },1398 {1399 quoteText: 'Do, or do not. There is no try.',1400 quoteAuthor: 'Yoda',1401 },1402 {1403 quoteText:1404 'Fears are nothing more than a state of mind.',1405 quoteAuthor: 'Napoleon Hill',1406 },1407 {1408 quoteText:1409 'Mountains cannot be surmounted except by winding paths.',1410 quoteAuthor: 'Johann Wolfgang von Goethe',1411 },1412 {1413 quoteText:1414 'May our hearts garden of awakening bloom with hundreds of flowers.',1415 quoteAuthor: 'Thich Nhat Hanh',1416 },1417 {1418 quoteText:1419 'The journey of a thousand miles begins with one step.',1420 quoteAuthor: 'Lao Tzu',1421 },1422 {1423 quoteText:1424 "Don't be pushed by your problems; be led by your dreams.",1425 quoteAuthor: '',1426 },1427 {1428 quoteText:1429 'Efficiency is doing things right; effectiveness is doing the right things.',1430 quoteAuthor: 'Peter Drucker',1431 },1432 {1433 quoteText: 'The greatest remedy for anger is delay.',1434 quoteAuthor: 'Seneca',1435 },1436 {1437 quoteText: 'Worry gives a small thing a big shadow.',1438 quoteAuthor: '',1439 },1440 {1441 quoteText:1442 'Blaze with the fire that is never extinguished.',1443 quoteAuthor: 'Luisa Sigea',1444 },1445 {1446 quoteText:1447 "Don't cry because it's over. Smile because it happened.",1448 quoteAuthor: 'Dr. Seuss',1449 },1450 {1451 quoteText: 'Time is the wisest counsellor of all.',1452 quoteAuthor: 'Pericles',1453 },1454 {1455 quoteText: 'No is easier to do. Yes is easier to say.',1456 quoteAuthor: 'Jason Fried',1457 },1458 {1459 quoteText: 'From little acorns mighty oaks do grow.',1460 quoteAuthor: 'American proverb',1461 },1462 {1463 quoteText:1464 'To be wrong is nothing unless you continue to remember it.',1465 quoteAuthor: 'Confucius',1466 },1467 {1468 quoteText:1469 'Write your plans in pencil and give God the eraser.',1470 quoteAuthor: 'Paulo Coelho',1471 },1472 {1473 quoteText:1474 'Once we accept our limits, we go beyond them.',1475 quoteAuthor: 'Albert Einstein',1476 },1477 {1478 quoteText: 'He who talks more is sooner exhausted.',1479 quoteAuthor: 'Lao Tzu',1480 },1481 {1482 quoteText:1483 'I never think of the future. It comes soon enough.',1484 quoteAuthor: 'Albert Einstein',1485 },1486 {1487 quoteText: 'Whatever happens, take responsibility.',1488 quoteAuthor: 'Tony Robbins',1489 },1490 {1491 quoteText:1492 "Yesterdays home runs don't win today's games.",1493 quoteAuthor: 'Babe Ruth',1494 },1495 {1496 quoteText: 'The world is always in movement.',1497 quoteAuthor: 'V. Naipaul',1498 },1499 {1500 quoteText:1501 'Inspiration exists, but it has to find us working.',1502 quoteAuthor: 'Pablo Picasso',1503 },1504 {1505 quoteText:1506 'Silence is deep as Eternity, Speech is shallow as Time.',1507 quoteAuthor: 'Carlyle',1508 },1509 {1510 quoteText:1511 "Don't smother each other. No one can grow in the shade.",1512 quoteAuthor: 'Leo F. Buscaglia',1513 },1514 {1515 quoteText: 'We must become the change we want to see.',1516 quoteAuthor: 'Mahatma Gandhi',1517 },1518 {1519 quoteText:1520 'An ant on the move does more than a dozing ox',1521 quoteAuthor: 'Lao Tzu',1522 },1523 {1524 quoteText:1525 "You can't shake hands with a clenched fist.",1526 quoteAuthor: 'Indira Gandhi',1527 },1528 {1529 quoteText:1530 'A good decision is based on knowledge and not on numbers.',1531 quoteAuthor: 'Plato',1532 },1533 {1534 quoteText:1535 'Once we accept our limits, we go beyond them.',1536 quoteAuthor: 'Albert Einstein',1537 },1538 {1539 quoteText: 'The cautious seldom err.',1540 quoteAuthor: 'Confucius',1541 },1542 {1543 quoteText:1544 'Ideas are the beginning points of all fortunes.',1545 quoteAuthor: 'Napoleon Hill',1546 },1547 {1548 quoteText:1549 'Every man dies. Not every man really lives.',1550 quoteAuthor: '',1551 },1552 {1553 quoteText:1554 'If there is no struggle, there is no progress.',1555 quoteAuthor: 'Frederick Douglass',1556 },1557 {1558 quoteText:1559 'There is no way to prosperity, prosperity is the way.',1560 quoteAuthor: 'Wayne Dyer',1561 },1562 {1563 quoteText:1564 'Where there is great love, there are always miracles.',1565 quoteAuthor: 'Willa Cather',1566 },1567 {1568 quoteText:1569 'Trusting our intuition often saves us from disaster.',1570 quoteAuthor: 'Anne Wilson Schaef',1571 },1572 {1573 quoteText:1574 "Friendship isn't a big thing. It's a million little things.",1575 quoteAuthor: '',1576 },1577 {1578 quoteText:1579 'Goals are the fuel in the furnace of achievement.',1580 quoteAuthor: 'Brian Tracy',1581 },1582 {1583 quoteText: 'Each day provides its own gifts.',1584 quoteAuthor: 'Marcus Aurelius',1585 },1586 {1587 quoteText: 'Time you enjoy wasting, was not wasted.',1588 quoteAuthor: 'John Lennon',1589 },1590 {1591 quoteText:1592 'Every problem has a gift for you in its hands.',1593 quoteAuthor: 'Richard Bach',1594 },1595 {1596 quoteText: 'Sadness flies away on the wings of time.',1597 quoteAuthor: 'Jean de la Fontaine',1598 },1599 {1600 quoteText: 'The only real valuable thing is intuition.',1601 quoteAuthor: 'Albert Einstein',1602 },1603 {1604 quoteText: 'Fortune befriends the bold.',1605 quoteAuthor: 'John Dryden',1606 },1607 {1608 quoteText:1609 'I have often regretted my speech, never my silence.',1610 quoteAuthor: 'Publilius Syrus',1611 },1612 {1613 quoteText:1614 'May our hearts garden of awakening bloom with hundreds of flowers.',1615 quoteAuthor: 'Thich Nhat Hanh',1616 },1617 {1618 quoteText:1619 'I destroy my enemies when I make them my friends.',1620 quoteAuthor: 'Abraham Lincoln',1621 },1622 {1623 quoteText: 'Sadness flies away on the wings of time.',1624 quoteAuthor: 'Jean de la Fontaine',1625 },1626 {1627 quoteText:1628 'Never put off till tomorrow what you can do today.',1629 quoteAuthor: 'Thomas Jefferson',1630 },1631 {1632 quoteText:1633 'Minds are like parachutes. They only function when open.',1634 quoteAuthor: 'Thomas Dewar',1635 },1636 {1637 quoteText:1638 'If a man does his best, what else is there?',1639 quoteAuthor: 'George Patton',1640 },1641 {1642 quoteText:1643 'The secret of success is constancy to purpose.',1644 quoteAuthor: 'Benjamin Disraeli',1645 },1646 {1647 quoteText: 'Imagination rules the world.',1648 quoteAuthor: 'Napoleon Bonaparte',1649 },1650 {1651 quoteText: 'Well begun is half done.',1652 quoteAuthor: 'Aristotle',1653 },1654 {1655 quoteText: 'The best way out is always through.',1656 quoteAuthor: 'Robert Frost',1657 },1658 {1659 quoteText:1660 'Without faith, nothing is possible. With it, nothing is impossible.',1661 quoteAuthor: 'Mary Bethune',1662 },1663 {1664 quoteText: 'Life is a progress, and not a station.',1665 quoteAuthor: 'Ralph Emerson',1666 },1667 {1668 quoteText:1669 'All seasons are beautiful for the person who carries happiness within.',1670 quoteAuthor: 'Horace Friess',1671 },1672 {1673 quoteText:1674 'To avoid criticism, do nothing, say nothing, be nothing.',1675 quoteAuthor: 'Elbert Hubbard',1676 },1677 {1678 quoteText: 'Whatever happens, take responsibility.',1679 quoteAuthor: 'Tony Robbins',1680 },1681 {1682 quoteText: 'All things change; nothing perishes.',1683 quoteAuthor: 'Ovid',1684 },1685 {1686 quoteText:1687 'No one can make you feel inferior without your consent.',1688 quoteAuthor: 'Eleanor Roosevelt',1689 },1690 {1691 quoteText: 'Absence makes the heart grow fonder.',1692 quoteAuthor: 'Haynes Bayly',1693 },1694 {1695 quoteText:1696 'Imagination is the highest kite one can fly.',1697 quoteAuthor: 'Lauren Bacall',1698 },1699 {1700 quoteText:1701 "Don't be pushed by your problems; be led by your dreams.",1702 quoteAuthor: '',1703 },1704 {1705 quoteText: 'Nothing happens unless first we dream.',1706 quoteAuthor: 'Carl Sandburg',1707 },1708 {1709 quoteText:1710 'Minds are like parachutes. They only function when open.',1711 quoteAuthor: 'Thomas Dewar',1712 },1713 {1714 quoteText:1715 'The beginning of knowledge is the discovery of something we do not understand.',1716 quoteAuthor: 'Frank Herbert',1717 },1718 {1719 quoteText:1720 "Love doesn't make the world go round, love is what makes the ride worthwhile.",1721 quoteAuthor: 'Elizabeth Browning',1722 },1723 {1724 quoteText:1725 'Whenever you have eliminated the impossible, whatever remains, however improbable, must be the truth.',1726 quoteAuthor: 'Arthur Conan Doyle',1727 },1728 {1729 quoteText:1730 'Good timber does not grow with ease; the stronger the wind, the stronger the trees.',1731 quoteAuthor: 'J. Willard Marriott',1732 },1733 {1734 quoteText:1735 'I believe that we are fundamentally the same and have the same basic potential.',1736 quoteAuthor: 'Dalai Lama',1737 },1738 {1739 quoteText:1740 'The winds and waves are always on the side of the ablest navigators.',1741 quoteAuthor: 'Edward Gibbon',1742 },1743 {1744 quoteText:1745 'The future belongs to those who believe in the beauty of their dreams.',1746 quoteAuthor: 'Eleanor Roosevelt',1747 },1748 {1749 quoteText:1750 'To get something you never had, you have to do something you never did.',1751 quoteAuthor: '',1752 },1753 {1754 quoteText:1755 "Be thankful when you don't know something for it gives you the opportunity to learn.",1756 quoteAuthor: '',1757 },1758 {1759 quoteText:1760 'Strength does not come from physical capacity. It comes from an indomitable will.',1761 quoteAuthor: 'Mahatma Gandhi',1762 },1763 {1764 quoteText:1765 'Each misfortune you encounter will carry in it the seed of tomorrows good luck.',1766 quoteAuthor: 'Og Mandino',1767 },1768 {1769 quoteText:1770 'The winds and waves are always on the side of the ablest navigators.',1771 quoteAuthor: 'Edward Gibbon',1772 },1773 {1774 quoteText:1775 'To forgive is to set a prisoner free and realize that prisoner was you.',1776 quoteAuthor: 'Lewis B. Smedes',1777 },1778 {1779 quoteText:1780 "In separateness lies the world's great misery, in compassion lies the world's true strength.",1781 quoteAuthor: 'Buddha',1782 },1783 {1784 quoteText:1785 'By believing passionately in something that does not yet exist, we create it.',1786 quoteAuthor: 'Nikos Kazantzakis',1787 },1788 {1789 quoteText:1790 'Letting go isn�t the end of the world; it�s the beginning of a new life.',1791 quoteAuthor: '',1792 },1793 {1794 quoteText:1795 'All the great performers I have worked with are fuelled by a personal dream.',1796 quoteAuthor: 'John Eliot',1797 },1798 {1799 quoteText:1800 'One of the advantages of being disorderly is that one is constantly making exciting discoveries.',1801 quoteAuthor: 'A. A. Milne',1802 },1803 {1804 quoteText:1805 'I never see what has been done; I only see what remains to be done.',1806 quoteAuthor: 'Marie Curie',1807 },1808 {1809 quoteText:1810 'Begin at once to live and count each separate day as a separate life.',1811 quoteAuthor: 'Seneca',1812 },1813 {1814 quoteText:1815 "If you don't know where you are going, you will probably end up somewhere else.",1816 quoteAuthor: 'Lawrence Peter',1817 },1818 {1819 quoteText:1820 "Love doesn't make the world go round, love is what makes the ride worthwhile.",1821 quoteAuthor: 'Elizabeth Browning',1822 },1823 {1824 quoteText:1825 'It is not so important to know everything as to appreciate what we learn.',1826 quoteAuthor: 'Hannah More',1827 },1828 {1829 quoteText:1830 'The bird of paradise alights only upon the hand that does not grasp.',1831 quoteAuthor: 'John Berry',1832 },1833 {1834 quoteText:1835 'Think as a wise man but communicate in the language of the people.',1836 quoteAuthor: 'William Yeats',1837 },1838 {1839 quoteText:1840 'Practice yourself, for heavens sake in little things, and then proceed to greater.',1841 quoteAuthor: 'Epictetus',1842 },1843 {1844 quoteText:1845 'If one does not know to which port is sailing, no wind is favorable.',1846 quoteAuthor: 'Seneca',1847 },1848 {1849 quoteText:1850 'Our greatest glory is not in never failing but rising everytime we fall.',1851 quoteAuthor: '',1852 },1853 {1854 quoteText:1855 'Being right is highly overrated. Even a stopped clock is right twice a day.',1856 quoteAuthor: '',1857 },1858 {1859 quoteText:1860 "To be upset over what you don't have is to waste what you do have.",1861 quoteAuthor: 'Ken S. Keyes',1862 },1863 {1864 quoteText:1865 'If we did the things we are capable of, we would astound ourselves.',1866 quoteAuthor: 'Thomas Edison',1867 },1868 {1869 quoteText:1870 'Nothing in life is to be feared. It is only to be understood.',1871 quoteAuthor: 'Marie Curie',1872 },1873 {1874 quoteText:1875 'Successful people ask better questions, and as a result, they get better answers.',1876 quoteAuthor: 'Tony Robbins',1877 },1878 {1879 quoteText:1880 'Love is not blind; it simply enables one to see things others fail to see.',1881 quoteAuthor: '',1882 },1883 {1884 quoteText:1885 'Life is a process. We are a process. The universe is a process.',1886 quoteAuthor: 'Anne Schaef',1887 },1888 {1889 quoteText:1890 'I think somehow we learn who we really are and then live with that decision.',1891 quoteAuthor: 'Eleanor Roosevelt',1892 },1893 {1894 quoteText:1895 'We learn what we have said from those who listen to our speaking.',1896 quoteAuthor: 'Kenneth Patton',1897 },1898 {1899 quoteText:1900 'A little knowledge that acts is worth infinitely more than much knowledge that is idle.',1901 quoteAuthor: 'Kahlil Gibran',1902 },1903 {1904 quoteText:1905 'If you get up one more time than you fall, you will make it through.',1906 quoteAuthor: '',1907 },1908 {1909 quoteText:1910 'The beginning of knowledge is the discovery of something we do not understand.',1911 quoteAuthor: 'Frank Herbert',1912 },1913 {1914 quoteText:1915 'The doors we open and close each day decide the lives we live.',1916 quoteAuthor: 'Flora Whittemore',1917 },1918 {1919 quoteText:1920 'The worst bankrupt in the world is the person who has lost his enthusiasm.',1921 quoteAuthor: 'H. W. Arnold',1922 },1923 {1924 quoteText:1925 'Happiness comes when your work and words are of benefit to yourself and others.',1926 quoteAuthor: 'Buddha',1927 },1928 {1929 quoteText:1930 'Each misfortune you encounter will carry in it the seed of tomorrows good luck.',1931 quoteAuthor: 'Og Mandino',1932 },1933 {1934 quoteText:1935 "Don't focus on making the right decision, focus on making the decision the right one.",1936 quoteAuthor: '',1937 },1938 {1939 quoteText:1940 'Everything is perfect in the universe � even your desire to improve it.',1941 quoteAuthor: 'Wayne Dyer',1942 },1943 {1944 quoteText:1945 'Begin at once to live and count each separate day as a separate life.',1946 quoteAuthor: 'Seneca',1947 },1948 {1949 quoteText:1950 'The universe is full of magical things, patiently waiting for our wits to grow sharper.',1951 quoteAuthor: 'Eden Phillpotts',1952 },1953 {1954 quoteText:1955 'Just as a candle cannot burn without fire, men cannot live without a spiritual life.',1956 quoteAuthor: 'Buddha',1957 },1958 {1959 quoteText:1960 'A thing long expected takes the form of the unexpected when at last it comes.',1961 quoteAuthor: 'Mark Twain',1962 },1963 {1964 quoteText:1965 'To forgive is to set a prisoner free and realize that prisoner was you.',1966 quoteAuthor: 'Lewis B. Smedes',1967 },1968 {1969 quoteText:1970 'Action may not always bring happiness; but there is no happiness without action.',1971 quoteAuthor: 'Benjamin Disraeli',1972 },1973 {1974 quoteText:1975 "I don't believe in failure. It is not failure if you enjoyed the process.",1976 quoteAuthor: 'Oprah Winfrey',1977 },1978 {1979 quoteText:1980 'What you do not want done to yourself, do not do to others.',1981 quoteAuthor: 'Confucius',1982 },1983 {1984 quoteText:1985 'Short words are best and the old words when short are best of all.',1986 quoteAuthor: 'Winston Churchill',1987 },1988 {1989 quoteText:1990 'If you light a lamp for somebody, it will also brighten your path.',1991 quoteAuthor: 'Buddha',1992 },1993 {1994 quoteText:1995 'I have done my best: that is about all the philosophy of living one needs.',1996 quoteAuthor: 'Lin-yutang',1997 },1998 {1999 quoteText:2000 'Through perseverance many people win success out of what seemed destined to be certain failure.',2001 quoteAuthor: 'Benjamin Disraeli',2002 },2003 {2004 quoteText:2005 'Give thanks for the rain of life that propels us to reach new horizons.',2006 quoteAuthor: 'Byron Pulsifer',2007 },2008 {2009 quoteText:2010 'Love is just a word until someone comes along and gives it meaning.',2011 quoteAuthor: '',2012 },2013 {2014 quoteText:2015 'We all have problems. The way we solve them is what makes us different.',2016 quoteAuthor: '',2017 },2018 {2019 quoteText:2020 'The secret to a rich life is to have more beginnings than endings.',2021 quoteAuthor: 'Dave Weinbaum',2022 },2023 {2024 quoteText:2025 'It is only when the mind and character slumber that the dress can be seen.',2026 quoteAuthor: 'Ralph Waldo Emerson',2027 },2028 {2029 quoteText:2030 "If you don't like something, change it. If you can't change it, change your attitude.",2031 quoteAuthor: 'Maya Angelou',2032 },2033 {2034 quoteText:2035 'Nothing in life is to be feared. It is only to be understood.',2036 quoteAuthor: 'Marie Curie',2037 },2038 {2039 quoteText:2040 'Reviewing what you have learned and learning anew, you are fit to be a teacher.',2041 quoteAuthor: 'Confucius',2042 },2043 {2044 quoteText:2045 'The world is a book, and those who do not travel read only a page.',2046 quoteAuthor: 'Augustinus Sanctus',2047 },2048 {2049 quoteText:2050 'Action may not always bring happiness; but there is no happiness without action.',2051 quoteAuthor: 'Benjamin Disraeli',2052 },2053 {2054 quoteText:2055 'So long as a person is capable of self-renewal they are a living being.',2056 quoteAuthor: 'Henri-Frederic Amiel',2057 },2058 {2059 quoteText:2060 "I'm not afraid of storms, for Im learning how to sail my ship.",2061 quoteAuthor: 'Louisa Alcott',2062 },2063 {2064 quoteText:2065 'Think for yourselves and let others enjoy the privilege to do so too.',2066 quoteAuthor: 'Voltaire',2067 },2068 {2069 quoteText:2070 'How we spend our days is, of course, how we spend our lives.',2071 quoteAuthor: 'Annie Dillard',2072 },2073 {2074 quoteText:2075 'It has never been my object to record my dreams, just to realize them.',2076 quoteAuthor: 'Man Ray',2077 },2078 {2079 quoteText:2080 'The most complicated achievements of thought are possible without the assistance of consciousness.',2081 quoteAuthor: 'Sigmund Freud',2082 },2083 {2084 quoteText:2085 "Be miserable. Or motivate yourself. Whatever has to be done, it's always your choice.",2086 quoteAuthor: 'Wayne Dyer',2087 },2088 {2089 quoteText:2090 'Most great people have attained their greatest success just one step beyond their greatest failure.',2091 quoteAuthor: 'Napoleon Hill',2092 },2093 {2094 quoteText:2095 'The doors we open and close each day decide the lives we live.',2096 quoteAuthor: 'Flora Whittemore',2097 },2098 {2099 quoteText:2100 "If you think you can, you can. And if you think you can't, you're right.",2101 quoteAuthor: 'Henry Ford',2102 },2103 {2104 quoteText:2105 'Better to have loved and lost, than to have never loved at all.',2106 quoteAuthor: 'St. Augustine',2107 },2108 {2109 quoteText:2110 'Everyone thinks of changing the world, but no one thinks of changing himself.',2111 quoteAuthor: 'Leo Tolstoy',2112 },2113 {2114 quoteText:2115 'Whenever you have eliminated the impossible, whatever remains, however improbable, must be the truth.',2116 quoteAuthor: 'Arthur Conan Doyle',2117 },2118 {2119 quoteText:2120 'The best way to pay for a lovely moment is to enjoy it.',2121 quoteAuthor: 'Richard Bach',2122 },2123 {2124 quoteText:2125 "You have enemies? Good. That means you've stood up for something, sometime in your life.",2126 quoteAuthor: 'Winston Churchill',2127 },2128 {2129 quoteText:2130 'Slow down and everything you are chasing will come around and catch you.',2131 quoteAuthor: 'John De Paola',2132 },2133 {2134 quoteText:2135 'Your worst enemy cannot harm you as much as your own unguarded thoughts.',2136 quoteAuthor: 'Buddha',2137 },2138 {2139 quoteText:2140 'I always wanted to be somebody, but I should have been more specific.',2141 quoteAuthor: 'Lily Tomlin',2142 },2143 {2144 quoteText:2145 'Yeah we all shine on, like the moon, and the stars, and the sun.',2146 quoteAuthor: 'John Lennon',2147 },2148 {2149 quoteText:2150 'Knowledge is a process of piling up facts; wisdom lies in their simplification.',2151 quoteAuthor: 'Martin Fischer',2152 },2153 {2154 quoteText:2155 'Life is like riding a bicycle. To keep your balance you must keep moving.',2156 quoteAuthor: 'Albert Einstein',2157 },2158 {2159 quoteText:2160 'We should all be thankful for those people who rekindle the inner spirit.',2161 quoteAuthor: 'Albert Schweitzer',2162 },2163 {2164 quoteText:2165 "In separateness lies the world's great misery, in compassion lies the world's true strength.",2166 quoteAuthor: 'Buddha',2167 },2168 {2169 quoteText:2170 'Reviewing what you have learned and learning anew, you are fit to be a teacher.',2171 quoteAuthor: 'Confucius',2172 },2173 {2174 quoteText:2175 'To get something you never had, you have to do something you never did.',2176 quoteAuthor: '',2177 },2178 {2179 quoteText:2180 'What you do not want done to yourself, do not do to others.',2181 quoteAuthor: 'Confucius',2182 },2183 {2184 quoteText:2185 'Opportunity is missed by most because it is dressed in overalls and looks like work.',2186 quoteAuthor: 'Thomas Edison',2187 },2188 {2189 quoteText:2190 'Feeling and longing are the motive forces behind all human endeavor and human creations.',2191 quoteAuthor: 'Albert Einstein',2192 },2193 {2194 quoteText:2195 'In the end we retain from our studies only that which we practically apply.',2196 quoteAuthor: 'Johann Wolfgang von Goethe',2197 },2198 {2199 quoteText:2200 'It is only when the mind and character slumber that the dress can be seen.',2201 quoteAuthor: 'Ralph Waldo Emerson',2202 },2203 {2204 quoteText:2205 'If you correct your mind, the rest of your life will fall into place.',2206 quoteAuthor: 'Lao Tzu',2207 },2208 {2209 quoteText:2210 'The world makes way for the man who knows where he is going.',2211 quoteAuthor: 'Ralph Emerson',2212 },2213 {2214 quoteText:2215 'When your desires are strong enough you will appear to possess superhuman powers to achieve.',2216 quoteAuthor: 'Napoleon Hill',2217 },2218 {2219 quoteText:2220 'Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.',2221 quoteAuthor: 'John Adams',2222 },2223 {2224 quoteText:2225 'I cannot make my days longer so I strive to make them better.',2226 quoteAuthor: 'Henry David Thoreau',2227 },2228 {2229 quoteText:2230 'Think for yourselves and let others enjoy the privilege to do so too.',2231 quoteAuthor: 'Voltaire',2232 },2233 {2234 quoteText:2235 'Tension is who you think you should be. Relaxation is who you are.',2236 quoteAuthor: 'Chinese proverb',2237 },2238 {2239 quoteText:2240 'Never bend your head. Always hold it high. Look the world right in the eye.',2241 quoteAuthor: 'Helen Keller',2242 },2243 {2244 quoteText:2245 'One who gains strength by overcoming obstacles possesses the only strength which can overcome adversity.',2246 quoteAuthor: 'Albert Schweitzer',2247 },2248 {2249 quoteText:2250 'We cannot do everything at once, but we can do something at once.',2251 quoteAuthor: 'Calvin Coolidge',2252 },2253 {2254 quoteText:2255 'You have to do your own growing no matter how tall your grandfather was.',2256 quoteAuthor: 'Abraham Lincoln',2257 },2258 {2259 quoteText:2260 'Invent your world. Surround yourself with people, color, sounds, and work that nourish you.',2261 quoteAuthor: '',2262 },2263 {2264 quoteText:2265 'It is fatal to enter any war without the will to win it.',2266 quoteAuthor: 'General Douglas MacArthur',2267 },2268 {2269 quoteText:2270 'Be what you are. This is the first step toward becoming better than you are.',2271 quoteAuthor: 'Julius Charles Hare',2272 },2273 {2274 quoteText:2275 "There is nothing in a caterpillar that tells you it's going to be a butterfly.",2276 quoteAuthor: 'Buckminster Fuller',2277 },2278 {2279 quoteText:2280 'Whenever you have eliminated the impossible, whatever remains, however improbable, must be the truth.',2281 quoteAuthor: 'Arthur Conan Doyle',2282 },2283 {2284 quoteText:2285 'Love and compassion open our own inner life, reducing stress, distrust and loneliness.',2286 quoteAuthor: 'Dalai Lama',2287 },2288 {2289 quoteText:2290 'Ideals are an imaginative understanding of that which is desirable in that which is possible.',2291 quoteAuthor: 'Walter Lippmann',2292 },2293 {2294 quoteText:2295 'The superior man is satisfied and composed; the mean man is always full of distress.',2296 quoteAuthor: 'Confucius',2297 },2298 {2299 quoteText:2300 "If you spend too much time thinking about a thing, you'll never get it done.",2301 quoteAuthor: 'Bruce Lee',2302 },2303 {2304 quoteText:2305 'The way is not in the sky. The way is in the heart.',2306 quoteAuthor: 'Buddha',2307 },2308 {2309 quoteText:2310 "I don't believe in failure. It is not failure if you enjoyed the process.",2311 quoteAuthor: 'Oprah Winfrey',2312 },2313 {2314 quoteText:2315 'Most people are about as happy as they make up their minds to be',2316 quoteAuthor: 'Abraham Lincoln',2317 },2318 {2319 quoteText:2320 'Three things cannot be long hidden: the sun, the moon, and the truth.',2321 quoteAuthor: 'Buddha',2322 },2323 {2324 quoteText:2325 'More often than not, anger is actually an indication of weakness rather than of strength.',2326 quoteAuthor: 'Dalai Lama',2327 },2328 {2329 quoteText:2330 'Before you put on a frown, make absolutely sure there are no smiles available.',2331 quoteAuthor: 'Jim Beggs',2332 },2333 {2334 quoteText:2335 'A man of ability and the desire to accomplish something can do anything.',2336 quoteAuthor: 'Donald Kircher',2337 },2338 {2339 quoteText:2340 'You, yourself, as much as anybody in the entire universe, deserve your love and affection.',2341 quoteAuthor: 'Buddha',2342 },2343 {2344 quoteText:2345 'It is not uncommon for people to spend their whole life waiting to start living.',2346 quoteAuthor: 'Eckhart Tolle',2347 },2348 {2349 quoteText:2350 'We learn what we have said from those who listen to our speaking.',2351 quoteAuthor: 'Kenneth Patton',2352 },2353 {2354 quoteText:2355 'It is only when the mind and character slumber that the dress can be seen.',2356 quoteAuthor: 'Ralph Waldo Emerson',2357 },2358 {2359 quoteText:2360 'The way is not in the sky. The way is in the heart.',2361 quoteAuthor: 'Buddha',2362 },2363 {2364 quoteText:2365 "Don't be afraid to go out on a limb. That's where the fruit is.",2366 quoteAuthor: 'H. Jackson Browne',2367 },2368 {2369 quoteText:2370 'Wicked people are always surprised to find ability in those that are good.',2371 quoteAuthor: 'Marquis Vauvenargues',2372 },2373 {2374 quoteText:2375 'Life is so constructed that an event does not, cannot, will not, match the expectation.',2376 quoteAuthor: 'Charlotte Bronte',2377 },2378 {2379 quoteText:2380 'Ideals are an imaginative understanding of that which is desirable in that which is possible.',2381 quoteAuthor: 'Walter Lippmann',2382 },2383 {2384 quoteText:2385 'If you change the way you look at things, the things you look at change.',2386 quoteAuthor: 'Wayne Dyer',2387 },2388 {2389 quoteText:2390 'No man can succeed in a line of endeavor which he does not like.',2391 quoteAuthor: 'Napoleon Hill',2392 },2393 {2394 quoteText:2395 'Think for yourselves and let others enjoy the privilege to do so too.',2396 quoteAuthor: 'Voltaire',2397 },2398 {2399 quoteText:2400 'You will not be punished for your anger, you will be punished by your anger.',2401 quoteAuthor: 'Buddha',2402 },2403 {2404 quoteText:2405 'The future belongs to those who believe in the beauty of their dreams.',2406 quoteAuthor: 'Eleanor Roosevelt',2407 },2408 {2409 quoteText:2410 'I believe that we are fundamentally the same and have the same basic potential.',2411 quoteAuthor: 'Dalai Lama',2412 },2413 {2414 quoteText:2415 'Each misfortune you encounter will carry in it the seed of tomorrows good luck.',2416 quoteAuthor: 'Og Mandino',2417 },2418 {2419 quoteText:2420 "Don't judge each day by the harvest you reap but by the seeds you plant.",2421 quoteAuthor: 'Robert Stevenson',2422 },2423 {2424 quoteText:2425 'They say that time changes things, but you actually have to change them yourself.',2426 quoteAuthor: 'Andy Warhol',2427 },2428 {2429 quoteText:2430 'Never apologize for showing feelings. When you do so, you apologize for the truth.',2431 quoteAuthor: 'Benjamin Disraeli',2432 },2433 {2434 quoteText:2435 'The truth you believe and cling to makes you unavailable to hear anything new.',2436 quoteAuthor: 'Pema Chodron',2437 },2438 {2439 quoteText:2440 'Adversity has the effect of eliciting talents, which in prosperous circumstances would have lain dormant.',2441 quoteAuthor: 'Horace',2442 },2443 {2444 quoteText:2445 'The winds and waves are always on the side of the ablest navigators.',2446 quoteAuthor: 'Edward Gibbon',2447 },2448 {2449 quoteText:2450 'If you light a lamp for somebody, it will also brighten your path.',2451 quoteAuthor: 'Buddha',2452 },2453 {2454 quoteText:2455 "If you spend your whole life waiting for the storm, you'll never enjoy the sunshine.",2456 quoteAuthor: 'Morris West',2457 },2458 {2459 quoteText:2460 'The only limit to our realization of tomorrow will be our doubts of today.',2461 quoteAuthor: 'Franklin Roosevelt',2462 },2463 {2464 quoteText:2465 'Every action of our lives touches on some chord that will vibrate in eternity.',2466 quoteAuthor: 'Edwin Chapin',2467 },2468 {2469 quoteText:2470 'Letting go isn�t the end of the world; it�s the beginning of a new life.',2471 quoteAuthor: '',2472 },2473 {2474 quoteText:2475 "Shoot for the moon. Even if you miss, you'll land among the stars.",2476 quoteAuthor: 'Les Brown',2477 },2478 {2479 quoteText:2480 'Just as a candle cannot burn without fire, men cannot live without a spiritual life.',2481 quoteAuthor: 'Buddha',2482 },2483 {2484 quoteText:2485 'Adversity has the effect of eliciting talents, which in prosperous circumstances would have lain dormant.',2486 quoteAuthor: 'Horace',2487 },2488 {2489 quoteText:2490 "I'm not afraid of storms, for Im learning how to sail my ship.",2491 quoteAuthor: 'Louisa Alcott',2492 },2493 {2494 quoteText:2495 'It does not matter how slowly you go as long as you do not stop.',2496 quoteAuthor: 'Confucius',2497 },2498 {2499 quoteText:2500 "Every day may not be good, but there's something good in every day.",2501 quoteAuthor: '',2502 },2503 {2504 quoteText:2505 'The truth you believe and cling to makes you unavailable to hear anything new.',2506 quoteAuthor: 'Pema Chodron',2507 },2508 {2509 quoteText:2510 'To forgive is to set a prisoner free and realize that prisoner was you.',2511 quoteAuthor: 'Lewis B. Smedes',2512 },2513 {2514 quoteText:2515 'Most folks are about as happy as they make up their minds to be.',2516 quoteAuthor: 'Abraham Lincoln',2517 },2518 {2519 quoteText:2520 'If you would take, you must first give, this is the beginning of intelligence.',2521 quoteAuthor: 'Lao Tzu',2522 },2523 {2524 quoteText:2525 "Some people think it's holding that makes one strong � sometimes it's letting go.",2526 quoteAuthor: '',2527 },2528 {2529 quoteText:2530 'The universe is full of magical things, patiently waiting for our wits to grow sharper.',2531 quoteAuthor: 'Eden Phillpotts',2532 },2533 {2534 quoteText:2535 'It is on our failures that we base a new and different and better success.',2536 quoteAuthor: 'Havelock Ellis',2537 },2538 {2539 quoteText:2540 "If you spend too much time thinking about a thing, you'll never get it done.",2541 quoteAuthor: 'Bruce Lee',2542 },2543 {2544 quoteText:2545 'Quality is never an accident; it is always the result of intelligent effort.',2546 quoteAuthor: 'John Ruskin',2547 },2548 {2549 quoteText:2550 'To study and not think is a waste. To think and not study is dangerous.',2551 quoteAuthor: 'Confucius',2552 },2553 {2554 quoteText:2555 'Life is a succession of lessons, which must be lived to be understood.',2556 quoteAuthor: 'Ralph Emerson',2557 },2558 {2559 quoteText:2560 'Being right is highly overrated. Even a stopped clock is right twice a day.',2561 quoteAuthor: '',2562 },2563 {2564 quoteText:2565 'Love is just a word until someone comes along and gives it meaning.',2566 quoteAuthor: '',2567 },2568 {2569 quoteText:2570 'I have done my best: that is about all the philosophy of living one needs.',2571 quoteAuthor: 'Lin-yutang',2572 },2573 {2574 quoteText:2575 'Time changes everything except something within us which is always surprised by change.',2576 quoteAuthor: 'Thomas Hardy',2577 },2578 {2579 quoteText:2580 'You are important enough to ask and you are blessed enough to receive back.',2581 quoteAuthor: 'Wayne Dyer',2582 },2583 {2584 quoteText:2585 'Our greatest glory is not in never failing but rising everytime we fall.',2586 quoteAuthor: '',2587 },2588 {2589 quoteText:2590 'Knowledge is a process of piling up facts; wisdom lies in their simplification.',2591 quoteAuthor: 'Martin Fischer',2592 },2593 {2594 quoteText:2595 'It is fatal to enter any war without the will to win it.',2596 quoteAuthor: 'General Douglas MacArthur',2597 },2598 {2599 quoteText:2600 "If you spend too much time thinking about a thing, you'll never get it done.",2601 quoteAuthor: 'Bruce Lee',2602 },2603 {2604 quoteText:2605 'To get something you never had, you have to do something you never did.',2606 quoteAuthor: '',2607 },2608 {2609 quoteText:2610 'If you cannot do great things, do small things in a great way.',2611 quoteAuthor: 'Napoleon Hill',2612 },2613 {2614 quoteText:2615 'Everything is perfect in the universe � even your desire to improve it.',2616 quoteAuthor: 'Wayne Dyer',2617 },2618 {2619 quoteText:2620 'If you want your life to be more rewarding, you have to change the way you think.',2621 quoteAuthor: 'Oprah Winfrey',2622 },2623 {2624 quoteText:2625 "Transformation doesn't take place with a vacuum; instead, it occurs when we are indirectly and directly connected to all those around us.",2626 quoteAuthor: 'Byron Pulsifer',2627 },2628 {2629 quoteText:2630 'The only difference between your abilities and others is the ability to put yourself in their shoes and actually try.',2631 quoteAuthor: 'Leonardo Ruiz',2632 },2633 {2634 quoteText:2635 'The free man is he who does not fear to go to the end of his thought.',2636 quoteAuthor: 'Leon Blum',2637 },2638 {2639 quoteText:2640 'Great are they who see that spiritual is stronger than any material force, that thoughts rule the world.',2641 quoteAuthor: 'Ralph Emerson',2642 },2643 {2644 quoteText:2645 'A life spent making mistakes is not only more honourable but more useful than a life spent in doing nothing.',2646 quoteAuthor: 'Bernard Shaw',2647 },2648 {2649 quoteText:2650 'The wise man does not lay up his own treasures. The more he gives to others, the more he has for his own.',2651 quoteAuthor: 'Lao Tzu',2652 },2653 {2654 quoteText:2655 "Don't leave a stone unturned. It's always something, to know you have done the most you could.",2656 quoteAuthor: 'Charles Dickens',2657 },2658 {2659 quoteText:2660 'By going beyond your own problems and taking care of others, you gain inner strength, self-confidence, courage, and a greater sense of calm.',2661 quoteAuthor: 'Dalai Lama',2662 },2663 {2664 quoteText:2665 'We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.',2666 quoteAuthor: 'Sam Keen',2667 },2668 {2669 quoteText:2670 'What lies behind us and what lies before us are tiny matters compared to what lies within us.',2671 quoteAuthor: 'Walt Emerson',2672 },2673 {2674 quoteText:2675 'There are things so deep and complex that only intuition can reach it in our stage of development as human beings.',2676 quoteAuthor: 'John Astin',2677 },2678 {2679 quoteText:2680 'A little more persistence, a little more effort, and what seemed hopeless failure may turn to glorious success.',2681 quoteAuthor: 'Elbert Hubbard',2682 },2683 {2684 quoteText:2685 'There are things so deep and complex that only intuition can reach it in our stage of development as human beings.',2686 quoteAuthor: 'John Astin',2687 },2688 {2689 quoteText:2690 "There is no retirement for an artist, it's your way of living so there is no end to it.",2691 quoteAuthor: 'Henry Moore',2692 },2693 {2694 quoteText:2695 'I will not be concerned at other men is not knowing me;I will be concerned at my own want of ability.',2696 quoteAuthor: 'Confucius',2697 },2698 {2699 quoteText:2700 'Why worry about things you can�t control when you can keep yourself busy controlling the things that depend on you?',2701 quoteAuthor: '',2702 },2703 {2704 quoteText:2705 "When you are content to be simply yourself and don't compare or compete, everybody will respect you.",2706 quoteAuthor: 'Laozi',2707 },2708 {2709 quoteText:2710 'Be not afraid of greatness: some are born great, some achieve greatness, and some have greatness thrust upon them.',2711 quoteAuthor: 'William Shakespeare',2712 },2713 {2714 quoteText:2715 'Success means having the courage, the determination, and the will to become the person you believe you were meant to be.',2716 quoteAuthor: 'George Sheehan',2717 },2718 {2719 quoteText:2720 "Do you want to know who you are? Don't ask. Act! Action will delineate and define you.",2721 quoteAuthor: 'Thomas Jefferson',2722 },2723 {2724 quoteText:2725 'It is only with the heart that one can see rightly, what is essential is invisible to the eye.',2726 quoteAuthor: 'Antoine de Saint-Exupery',2727 },2728 {2729 quoteText:2730 'Let us be grateful to people who make us happy; they are the charming gardeners who make our souls blossom.',2731 quoteAuthor: 'Marcel Proust',2732 },2733 {2734 quoteText:2735 'Make the best use of what is in your power, and take the rest as it happens.',2736 quoteAuthor: 'Epictetus',2737 },2738 {2739 quoteText:2740 'The thoughts we choose to think are the tools we use to paint the canvas of our lives.',2741 quoteAuthor: 'Louise Hay',2742 },2743 {2744 quoteText:2745 'No matter how carefully you plan your goals they will never be more that pipe dreams unless you pursue them with gusto.',2746 quoteAuthor: 'W. Clement Stone',2747 },2748 {2749 quoteText:2750 'The reason most goals are not achieved is that we spend our time doing second things first.',2751 quoteAuthor: 'Robert McKain',2752 },2753 {2754 quoteText:2755 'If your actions inspire others to dream more, learn more, do more and become more, you are a leader.',2756 quoteAuthor: 'John Quincy Adams',2757 },2758 {2759 quoteText:2760 "I'm a great believer in luck and I find the harder I work, the more I have of it.",2761 quoteAuthor: 'Thomas Jefferson',2762 },2763 {2764 quoteText:2765 'Do not waste yourself in rejection, nor bark against the bad, but chant the beauty of the good.',2766 quoteAuthor: 'Ralph Emerson',2767 },2768 {2769 quoteText:2770 'The person born with a talent they are meant to use will find their greatest happiness in using it.',2771 quoteAuthor: 'Johann Wolfgang von Goethe',2772 },2773 {2774 quoteText:2775 "Good people are good because they've come to wisdom through failure. We get very little wisdom from success, you know.",2776 quoteAuthor: 'William Saroyan',2777 },2778 {2779 quoteText:2780 "Your destiny isn't just fate; it is how you use your own developed abilities to get what you want.",2781 quoteAuthor: 'Byron Pulsifer',2782 },2783 {2784 quoteText:2785 'Iron rusts from disuse; water loses its purity from stagnation... even so does inaction sap the vigour of the mind.',2786 quoteAuthor: 'Leonardo da Vinci',2787 },2788 {2789 quoteText:2790 'A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value.',2791 quoteAuthor: 'Isaac Asimov',2792 },2793 {2794 quoteText:2795 'Be glad of life because it gives you the chance to love, to work, to play, and to look up at the stars.',2796 quoteAuthor: 'Henry Van Dyke',2797 },2798 {2799 quoteText:2800 'The person born with a talent they are meant to use will find their greatest happiness in using it.',2801 quoteAuthor: 'Johann Wolfgang von Goethe',2802 },2803 {2804 quoteText:2805 "You got to be careful if you don't know where you're going, because you might not get there.",2806 quoteAuthor: 'Yogi Berra',2807 },2808 {2809 quoteText:2810 'You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.',2811 quoteAuthor: 'Naguib Mahfouz',2812 },2813 {2814 quoteText:2815 'Life is a gift, and it offers us the privilege, opportunity, and responsibility to give something back by becoming more',2816 quoteAuthor: 'Anthony Robbins',2817 },2818 {2819 quoteText:2820 "You can't let praise or criticism get to you. It's a weakness to get caught up in either one.",2821 quoteAuthor: 'John Wooden',2822 },2823 {2824 quoteText:2825 'I will love the light for it shows me the way, yet I will endure the darkness because it shows me the stars.',2826 quoteAuthor: 'Og Mandino',2827 },2828 {2829 quoteText:2830 'Our doubts are traitors and make us lose the good we often might win, by fearing to attempt.',2831 quoteAuthor: 'Jane Addams',2832 },2833 {2834 quoteText:2835 'By nature man hates change; seldom will he quit his old home till it has actually fallen around his ears.',2836 quoteAuthor: 'Thomas Carlyle',2837 },2838 {2839 quoteText:2840 "Until you value yourself, you won't value your time. Until you value your time, you won't do anything with it.",2841 quoteAuthor: 'M. Scott Peck',2842 },2843 {2844 quoteText:2845 'The minute you settle for less than you deserve, you get even less than you settled for.',2846 quoteAuthor: 'Maureen Dowd',2847 },2848 {2849 quoteText:2850 'The highest stage in moral ure at which we can arrive is when we recognize that we ought to control our thoughts.',2851 quoteAuthor: 'Charles Darwin',2852 },2853 {2854 quoteText:2855 'It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.',2856 quoteAuthor: '',2857 },2858 {2859 quoteText:2860 'If we have a positive mental attitude, then even when surrounded by hostility, we shall not lack inner peace.',2861 quoteAuthor: 'Dalai Lama',2862 },2863 {2864 quoteText:2865 'There is only one success � to be able to spend your life in your own way.',2866 quoteAuthor: 'Christopher Morley',2867 },2868 {2869 quoteText:2870 'Promises are the uniquely human way of ordering the future, making it predictable and reliable to the extent that this is humanly possible.',2871 quoteAuthor: 'Hannah Arendt',2872 },2873 {2874 quoteText:2875 'Appreciation is the highest form of prayer, for it acknowledges the presence of good wherever you shine the light of your thankful thoughts.',2876 quoteAuthor: 'Alan Cohen',2877 },2878 {2879 quoteText:2880 'Iron rusts from disuse; water loses its purity from stagnation... even so does inaction sap the vigour of the mind.',2881 quoteAuthor: 'Leonardo da Vinci',2882 },2883 {2884 quoteText:2885 "There is only one corner of the universe you can be certain of improving, and that's your own self.",2886 quoteAuthor: 'Aldous Huxley',2887 },2888 {2889 quoteText:2890 "You're not obligated to win. You're obligated to keep trying to do the best you can every day.",2891 quoteAuthor: 'Marian Edelman',2892 },2893 {2894 quoteText:2895 'Everyone can taste success when the going is easy, but few know how to taste victory when times get tough.',2896 quoteAuthor: 'Byron Pulsifer',2897 },...

Full Screen

Full Screen

attribute.js

Source:attribute.js Github

copy

Full Screen

1"use strict";2exports.__esModule = true;3var _CSSESC_QUOTE_OPTIONS;4var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();5exports.unescapeValue = unescapeValue;6var _cssesc = require("cssesc");7var _cssesc2 = _interopRequireDefault(_cssesc);8var _unesc = require("../util/unesc");9var _unesc2 = _interopRequireDefault(_unesc);10var _namespace = require("./namespace");11var _namespace2 = _interopRequireDefault(_namespace);12var _types = require("./types");13function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }14function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }15function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }16function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }17var _require = require("util"),18 deprecate = _require.deprecate;19var WRAPPED_IN_QUOTES = /^('|")(.*)\1$/;20var warnOfDeprecatedValueAssignment = deprecate(function () {}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. " + "Call attribute.setValue() instead.");21var warnOfDeprecatedQuotedAssignment = deprecate(function () {}, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.");22var warnOfDeprecatedConstructor = deprecate(function () {}, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");23function unescapeValue(value) {24 var deprecatedUsage = false;25 var quoteMark = null;26 var unescaped = value;27 var m = unescaped.match(WRAPPED_IN_QUOTES);28 if (m) {29 quoteMark = m[1];30 unescaped = m[2];31 }32 unescaped = (0, _unesc2.default)(unescaped);33 if (unescaped !== value) {34 deprecatedUsage = true;35 }36 return {37 deprecatedUsage: deprecatedUsage,38 unescaped: unescaped,39 quoteMark: quoteMark40 };41}42function handleDeprecatedContructorOpts(opts) {43 if (opts.quoteMark !== undefined) {44 return opts;45 }46 if (opts.value === undefined) {47 return opts;48 }49 warnOfDeprecatedConstructor();50 var _unescapeValue = unescapeValue(opts.value),51 quoteMark = _unescapeValue.quoteMark,52 unescaped = _unescapeValue.unescaped;53 if (!opts.raws) {54 opts.raws = {};55 }56 if (opts.raws.value === undefined) {57 opts.raws.value = opts.value;58 }59 opts.value = unescaped;60 opts.quoteMark = quoteMark;61 return opts;62}63var Attribute = function (_Namespace) {64 _inherits(Attribute, _Namespace);65 function Attribute() {66 var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};67 _classCallCheck(this, Attribute);68 var _this = _possibleConstructorReturn(this, _Namespace.call(this, handleDeprecatedContructorOpts(opts)));69 _this.type = _types.ATTRIBUTE;70 _this.raws = _this.raws || {};71 Object.defineProperty(_this.raws, 'unquoted', {72 get: deprecate(function () {73 return _this.value;74 }, "attr.raws.unquoted is deprecated. Call attr.value instead."),75 set: deprecate(function () {76 return _this.value;77 }, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")78 });79 _this._constructed = true;80 return _this;81 }82 /**83 * Returns the Attribute's value quoted such that it would be legal to use84 * in the value of a css file. The original value's quotation setting85 * used for stringification is left unchanged. See `setValue(value, options)`86 * if you want to control the quote settings of a new value for the attribute.87 *88 * You can also change the quotation used for the current value by setting quoteMark.89 *90 * Options:91 * * quoteMark {'"' | "'" | null} - Use this value to quote the value. If this92 * option is not set, the original value for quoteMark will be used. If93 * indeterminate, a double quote is used. The legal values are:94 * * `null` - the value will be unquoted and characters will be escaped as necessary.95 * * `'` - the value will be quoted with a single quote and single quotes are escaped.96 * * `"` - the value will be quoted with a double quote and double quotes are escaped.97 * * preferCurrentQuoteMark {boolean} - if true, prefer the source quote mark98 * over the quoteMark option value.99 * * smart {boolean} - if true, will select a quote mark based on the value100 * and the other options specified here. See the `smartQuoteMark()`101 * method.102 **/103 Attribute.prototype.getQuotedValue = function getQuotedValue() {104 var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};105 var quoteMark = this._determineQuoteMark(options);106 var cssescopts = CSSESC_QUOTE_OPTIONS[quoteMark];107 var escaped = (0, _cssesc2.default)(this._value, cssescopts);108 return escaped;109 };110 Attribute.prototype._determineQuoteMark = function _determineQuoteMark(options) {111 return options.smart ? this.smartQuoteMark(options) : this.preferredQuoteMark(options);112 };113 /**114 * Set the unescaped value with the specified quotation options. The value115 * provided must not include any wrapping quote marks -- those quotes will116 * be interpreted as part of the value and escaped accordingly.117 */118 Attribute.prototype.setValue = function setValue(value) {119 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};120 this._value = value;121 this._quoteMark = this._determineQuoteMark(options);122 this._syncRawValue();123 };124 /**125 * Intelligently select a quoteMark value based on the value's contents. If126 * the value is a legal CSS ident, it will not be quoted. Otherwise a quote127 * mark will be picked that minimizes the number of escapes.128 *129 * If there's no clear winner, the quote mark from these options is used,130 * then the source quote mark (this is inverted if `preferCurrentQuoteMark` is131 * true). If the quoteMark is unspecified, a double quote is used.132 *133 * @param options This takes the quoteMark and preferCurrentQuoteMark options134 * from the quoteValue method.135 */136 Attribute.prototype.smartQuoteMark = function smartQuoteMark(options) {137 var v = this.value;138 var numSingleQuotes = v.replace(/[^']/g, '').length;139 var numDoubleQuotes = v.replace(/[^"]/g, '').length;140 if (numSingleQuotes + numDoubleQuotes === 0) {141 var escaped = (0, _cssesc2.default)(v, { isIdentifier: true });142 if (escaped === v) {143 return Attribute.NO_QUOTE;144 } else {145 var pref = this.preferredQuoteMark(options);146 if (pref === Attribute.NO_QUOTE) {147 // pick a quote mark that isn't none and see if it's smaller148 var quote = this.quoteMark || options.quoteMark || Attribute.DOUBLE_QUOTE;149 var opts = CSSESC_QUOTE_OPTIONS[quote];150 var quoteValue = (0, _cssesc2.default)(v, opts);151 if (quoteValue.length < escaped.length) {152 return quote;153 }154 }155 return pref;156 }157 } else if (numDoubleQuotes === numSingleQuotes) {158 return this.preferredQuoteMark(options);159 } else if (numDoubleQuotes < numSingleQuotes) {160 return Attribute.DOUBLE_QUOTE;161 } else {162 return Attribute.SINGLE_QUOTE;163 }164 };165 /**166 * Selects the preferred quote mark based on the options and the current quote mark value.167 * If you want the quote mark to depend on the attribute value, call `smartQuoteMark(opts)`168 * instead.169 */170 Attribute.prototype.preferredQuoteMark = function preferredQuoteMark(options) {171 var quoteMark = options.preferCurrentQuoteMark ? this.quoteMark : options.quoteMark;172 if (quoteMark === undefined) {173 quoteMark = options.preferCurrentQuoteMark ? options.quoteMark : this.quoteMark;174 }175 if (quoteMark === undefined) {176 quoteMark = Attribute.DOUBLE_QUOTE;177 }178 return quoteMark;179 };180 Attribute.prototype._syncRawValue = function _syncRawValue() {181 var rawValue = (0, _cssesc2.default)(this._value, CSSESC_QUOTE_OPTIONS[this.quoteMark]);182 if (rawValue === this._value) {183 if (this.raws) {184 delete this.raws.value;185 }186 } else {187 this.raws.value = rawValue;188 }189 };190 Attribute.prototype._handleEscapes = function _handleEscapes(prop, value) {191 if (this._constructed) {192 var escaped = (0, _cssesc2.default)(value, { isIdentifier: true });193 if (escaped !== value) {194 this.raws[prop] = escaped;195 } else {196 delete this.raws[prop];197 }198 }199 };200 Attribute.prototype._spacesFor = function _spacesFor(name) {201 var attrSpaces = { before: '', after: '' };202 var spaces = this.spaces[name] || {};203 var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {};204 return Object.assign(attrSpaces, spaces, rawSpaces);205 };206 Attribute.prototype._stringFor = function _stringFor(name) {207 var spaceName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : name;208 var concat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultAttrConcat;209 var attrSpaces = this._spacesFor(spaceName);210 return concat(this.stringifyProperty(name), attrSpaces);211 };212 /**213 * returns the offset of the attribute part specified relative to the214 * start of the node of the output string.215 *216 * * "ns" - alias for "namespace"217 * * "namespace" - the namespace if it exists.218 * * "attribute" - the attribute name219 * * "attributeNS" - the start of the attribute or its namespace220 * * "operator" - the match operator of the attribute221 * * "value" - The value (string or identifier)222 * * "insensitive" - the case insensitivity flag;223 * @param part One of the possible values inside an attribute.224 * @returns -1 if the name is invalid or the value doesn't exist in this attribute.225 */226 Attribute.prototype.offsetOf = function offsetOf(name) {227 var count = 1;228 var attributeSpaces = this._spacesFor("attribute");229 count += attributeSpaces.before.length;230 if (name === "namespace" || name === "ns") {231 return this.namespace ? count : -1;232 }233 if (name === "attributeNS") {234 return count;235 }236 count += this.namespaceString.length;237 if (this.namespace) {238 count += 1;239 }240 if (name === "attribute") {241 return count;242 }243 count += this.stringifyProperty("attribute").length;244 count += attributeSpaces.after.length;245 var operatorSpaces = this._spacesFor("operator");246 count += operatorSpaces.before.length;247 var operator = this.stringifyProperty("operator");248 if (name === "operator") {249 return operator ? count : -1;250 }251 count += operator.length;252 count += operatorSpaces.after.length;253 var valueSpaces = this._spacesFor("value");254 count += valueSpaces.before.length;255 var value = this.stringifyProperty("value");256 if (name === "value") {257 return value ? count : -1;258 }259 count += value.length;260 count += valueSpaces.after.length;261 var insensitiveSpaces = this._spacesFor("insensitive");262 count += insensitiveSpaces.before.length;263 if (name === "insensitive") {264 return this.insensitive ? count : -1;265 }266 return -1;267 };268 Attribute.prototype.toString = function toString() {269 var _this2 = this;270 var selector = [this.rawSpaceBefore, '['];271 selector.push(this._stringFor('qualifiedAttribute', 'attribute'));272 if (this.operator && this.value) {273 selector.push(this._stringFor('operator'));274 selector.push(this._stringFor('value'));275 selector.push(this._stringFor('insensitiveFlag', 'insensitive', function (attrValue, attrSpaces) {276 if (attrValue.length > 0 && !_this2.quoted && attrSpaces.before.length === 0 && !(_this2.spaces.value && _this2.spaces.value.after)) {277 attrSpaces.before = " ";278 }279 return defaultAttrConcat(attrValue, attrSpaces);280 }));281 }282 selector.push(']');283 selector.push(this.rawSpaceAfter);284 return selector.join('');285 };286 _createClass(Attribute, [{287 key: "quoted",288 get: function get() {289 var qm = this.quoteMark;290 return qm === "'" || qm === '"';291 },292 set: function set(value) {293 warnOfDeprecatedQuotedAssignment();294 }295 /**296 * returns a single (`'`) or double (`"`) quote character if the value is quoted.297 * returns `null` if the value is not quoted.298 * returns `undefined` if the quotation state is unknown (this can happen when299 * the attribute is constructed without specifying a quote mark.)300 */301 }, {302 key: "quoteMark",303 get: function get() {304 return this._quoteMark;305 }306 /**307 * Set the quote mark to be used by this attribute's value.308 * If the quote mark changes, the raw (escaped) value at `attr.raws.value` of the attribute309 * value is updated accordingly.310 *311 * @param {"'" | '"' | null} quoteMark The quote mark or `null` if the value should be unquoted.312 */313 ,314 set: function set(quoteMark) {315 if (!this._constructed) {316 this._quoteMark = quoteMark;317 return;318 }319 if (this._quoteMark !== quoteMark) {320 this._quoteMark = quoteMark;321 this._syncRawValue();322 }323 }324 }, {325 key: "qualifiedAttribute",326 get: function get() {327 return this.qualifiedName(this.raws.attribute || this.attribute);328 }329 }, {330 key: "insensitiveFlag",331 get: function get() {332 return this.insensitive ? 'i' : '';333 }334 }, {335 key: "value",336 get: function get() {337 return this._value;338 }339 /**340 * Before 3.0, the value had to be set to an escaped value including any wrapped341 * quote marks. In 3.0, the semantics of `Attribute.value` changed so that the value342 * is unescaped during parsing and any quote marks are removed.343 *344 * Because the ambiguity of this semantic change, if you set `attr.value = newValue`,345 * a deprecation warning is raised when the new value contains any characters that would346 * require escaping (including if it contains wrapped quotes).347 *348 * Instead, you should call `attr.setValue(newValue, opts)` and pass options that describe349 * how the new value is quoted.350 */351 ,352 set: function set(v) {353 if (this._constructed) {354 var _unescapeValue2 = unescapeValue(v),355 deprecatedUsage = _unescapeValue2.deprecatedUsage,356 unescaped = _unescapeValue2.unescaped,357 quoteMark = _unescapeValue2.quoteMark;358 if (deprecatedUsage) {359 warnOfDeprecatedValueAssignment();360 }361 if (unescaped === this._value && quoteMark === this._quoteMark) {362 return;363 }364 this._value = unescaped;365 this._quoteMark = quoteMark;366 this._syncRawValue();367 } else {368 this._value = v;369 }370 }371 }, {372 key: "attribute",373 get: function get() {374 return this._attribute;375 },376 set: function set(name) {377 this._handleEscapes("attribute", name);378 this._attribute = name;379 }380 }]);381 return Attribute;382}(_namespace2.default);383Attribute.NO_QUOTE = null;384Attribute.SINGLE_QUOTE = "'";385Attribute.DOUBLE_QUOTE = '"';386exports.default = Attribute;387var CSSESC_QUOTE_OPTIONS = (_CSSESC_QUOTE_OPTIONS = {388 "'": { quotes: 'single', wrap: true },389 '"': { quotes: 'double', wrap: true }390}, _CSSESC_QUOTE_OPTIONS[null] = { isIdentifier: true }, _CSSESC_QUOTE_OPTIONS);391function defaultAttrConcat(attrValue, attrSpaces) {392 return "" + attrSpaces.before + attrValue + attrSpaces.after;...

Full Screen

Full Screen

DataQuotes.js

Source:DataQuotes.js Github

copy

Full Screen

1const quotes = [2 {3 "quote":"Life isn’t about getting and having, it’s about giving and being.","author":"Kevin Kruse"},4 {5 "quote":"Whatever the mind of man can conceive and believe, it can achieve.","author":"Napoleon Hill"},6 {7 "quote":"Strive not to be a success, but rather to be of value.","author":"Albert Einstein"},8 {9 "quote":"Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.","author":"Robert Frost"},10 {11 "quote":"I attribute my success to this: I never gave or took any excuse.","author":"Florence Nightingale"},12 {13 "quote":"You miss 100% of the shots you don’t take.","author":"Wayne Gretzky"},14 {15 "quote":"I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.","author":"Michael Jordan"},16 {17 "quote":"The most difficult thing is the decision to act, the rest is merely tenacity.","author":"Amelia Earhart"},18 {19 "quote":"Every strike brings me closer to the next home run.","author":"Babe Ruth"},20 {21 "quote":"Definiteness of purpose is the starting point of all achievement.","author":"W. Clement Stone"},22 {23 "quote":"We must balance conspicuous consumption with conscious capitalism.","author":"Kevin Kruse"},24 {25 "quote":"Life is what happens to you while you’re busy making other plans.","author":"John Lennon"},26 {27 "quote":"We become what we think about.","author":"Earl Nightingale"},28 {29 "quote":"Twenty years from now you will be more disappointed by the things that you didn’t do than by the ones you did do, so throw off the bowlines, sail away from safe harbor, catch the trade winds in your sails. Explore, Dream, Discover.","author":"Mark Twain"},30 {31 "quote":"Life is 10% what happens to me and 90% of how I react to it.","author":"Charles Swindoll"},32 {33 "quote":"The most common way people give up their power is by thinking they don’t have any.","author":"Alice Walker"},34 {35 "quote":"The mind is everything. What you think you become.","author":"Buddha"},36 {37 "quote":"The best time to plant a tree was 20 years ago. The second best time is now.","author":"Chinese Proverb"},38 {39 "quote":"An unexamined life is not worth living.","author":"Socrates"},40 {41 "quote":"Eighty percent of success is showing up.","author":"Woody Allen"},42 {43 "quote":"Your time is limited, so don’t waste it living someone else’s life.","author":"Steve Jobs"},44 {45 "quote":"Winning isn’t everything, but wanting to win is.","author":"Vince Lombardi"},46 {47 "quote":"I am not a product of my circumstances. I am a product of my decisions.","author":"Stephen Covey"},48 {49 "quote":"Every child is an artist. The problem is how to remain an artist once he grows up.","author":"Pablo Picasso"},50 {51 "quote":"You can never cross the ocean until you have the courage to lose sight of the shore.","author":"Christopher Columbus"},52 {53 "quote":"I’ve learned that people will forget what you said, people will forget what you did, but people will never forget how you made them feel.","author":"Maya Angelou"},54 {55 "quote":"Either you run the day, or the day runs you.","author":"Jim Rohn"},56 {57 "quote":"Whether you think you can or you think you can’t, you’re right.","author":"Henry Ford"},58 {59 "quote":"The two most important days in your life are the day you are born and the day you find out why.","author":"Mark Twain"},60 {61 "quote":"Whatever you can do, or dream you can, begin it. Boldness has genius, power and magic in it.","author":"Johann Wolfgang von Goethe"},62 {63 "quote":"The best revenge is massive success.","author":"Frank Sinatra"},64 {65 "quote":"People often say that motivation doesn’t last. Well, neither does bathing. That’s why we recommend it daily.","author":"Zig Ziglar"},66 {67 "quote":"Life shrinks or expands in proportion to one’s courage.","author":"Anais Nin"},68 {69 "quote":"If you hear a voice within you say “you cannot paint,” then by all means paint and that voice will be silenced.","author":"Vincent Van Gogh"},70 {71 "quote":"There is only one way to avoid criticism: do nothing, say nothing, and be nothing.","author":"Aristotle"},72 {73 "quote":"Ask and it will be given to you; search, and you will find; knock and the door will be opened for you.","author":"Jesus"},74 {75 "quote":"The only person you are destined to become is the person you decide to be.","author":"Ralph Waldo Emerson"},76 {77 "quote":"Go confidently in the direction of your dreams. Live the life you have imagined.","author":"Henry David Thoreau"},78 {79 "quote":"When I stand before God at the end of my life, I would hope that I would not have a single bit of talent left and could say, I used everything you gave me.","author":"Erma Bombeck"},80 {81 "quote":"Few things can help an individual more than to place responsibility on him, and to let him know that you trust him.","author":"Booker T. Washington"},82 {83 "quote":"Certain things catch your eye, but pursue only those that capture the heart.","author":" Ancient Indian Proverb"},84 {85 "quote":"Believe you can and you’re halfway there.","author":"Theodore Roosevelt"},86 {87 "quote":"Everything you’ve ever wanted is on the other side of fear.","author":"George Addair"},88 {89 "quote":"We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light.","author":"Plato"},90 {91 "quote":"Teach thy tongue to say, “I do not know,” and thous shalt progress.","author":"Maimonides"},92 {93 "quote":"Start where you are. Use what you have. Do what you can.","author":"Arthur Ashe"},94 {95 "quote":"When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy’. They told me I didn’t understand the assignment, and I told them they didn’t understand life.","author":"John Lennon"},96 {97 "quote":"Fall seven times and stand up eight.","author":"Japanese Proverb"},98 {99 "quote":"When one door of happiness closes, another opens, but often we look so long at the closed door that we do not see the one that has been opened for us.","author":"Helen Keller"},100 {101 "quote":"Everything has beauty, but not everyone can see.","author":"Confucius"},102 {103 "quote":"How wonderful it is that nobody need wait a single moment before starting to improve the world.","author":"Anne Frank"},104 {105 "quote":"When I let go of what I am, I become what I might be.","author":"Lao Tzu"},106 {107 "quote":"Life is not measured by the number of breaths we take, but by the moments that take our breath away.","author":"Maya Angelou"},108 {109 "quote":"Happiness is not something readymade. It comes from your own actions.","author":"Dalai Lama"},110 {111 "quote":"If you’re offered a seat on a rocket ship, don’t ask what seat! Just get on.","author":"Sheryl Sandberg"},112 {113 "quote":"First, have a definite, clear practical ideal; a goal, an objective. Second, have the necessary means to achieve your ends; wisdom, money, materials, and methods. Third, adjust all your means to that end.","author":"Aristotle"},114 {115 "quote":"If the wind will not serve, take to the oars.","author":"Latin Proverb"},116 {117 "quote":"You can’t fall if you don’t climb. But there’s no joy in living your whole life on the ground.","author":"Unknown"},118 {119 "quote":"We must believe that we are gifted for something, and that this thing, at whatever cost, must be attained.","author":"Marie Curie"},120 {121 "quote":"Too many of us are not living our dreams because we are living our fears.","author":"Les Brown"},122 {123 "quote":"Challenges are what make life interesting and overcoming them is what makes life meaningful.","author":"Joshua J. Marine"},124 {125 "quote":"If you want to lift yourself up, lift up someone else.","author":"Booker T. Washington"},126 {127 "quote":"I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do.","author":"Leonardo da Vinci"},128 {129 "quote":"Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless.","author":"Jamie Paolinetti"},130 {131 "quote":"You take your life in your own hands, and what happens? A terrible thing, no one to blame.","author":"Erica Jong"},132 {133 "quote":"What’s money? A man is a success if he gets up in the morning and goes to bed at night and in between does what he wants to do.","author":"Bob Dylan"},134 {135 "quote":"I didn’t fail the test. I just found 100 ways to do it wrong.","author":"Benjamin Franklin"},136 {137 "quote":"In order to succeed, your desire for success should be greater than your fear of failure.","author":"Bill Cosby"},138 {139 "quote":"A person who never made a mistake never tried anything new.","author":" Albert Einstein"},140 {141 "quote":"The person who says it cannot be done should not interrupt the person who is doing it.","author":"Chinese Proverb"},142 {143 "quote":"There are no traffic jams along the extra mile.","author":"Roger Staubach"},144 {145 "quote":"It is never too late to be what you might have been.","author":"George Eliot"},146 {147 "quote":"You become what you believe.","author":"Oprah Winfrey"},148 {149 "quote":"I would rather die of passion than of boredom.","author":"Vincent van Gogh"},150 {151 "quote":"A truly rich man is one whose children run into his arms when his hands are empty.","author":"Unknown"},152 {153 "quote":"It is not what you do for your children, but what you have taught them to do for themselves, that will make them successful human beings.","author":"Ann Landers"},154 {155 "quote":"If you want your children to turn out well, spend twice as much time with them, and half as much money.","author":"Abigail Van Buren"},156 {157 "quote":"Build your own dreams, or someone else will hire you to build theirs.","author":"Farrah Gray"},158 {159 "quote":"The battles that count aren’t the ones for gold medals. The struggles within yourself–the invisible battles inside all of us–that’s where it’s at.","author":"Jesse Owens"},160 {161 "quote":"Education costs money. But then so does ignorance.","author":"Sir Claus Moser"},162 {163 "quote":"I have learned over the years that when one’s mind is made up, this diminishes fear.","author":"Rosa Parks"},164 {165 "quote":"It does not matter how slowly you go as long as you do not stop.","author":"Confucius"},166 {167 "quote":"If you look at what you have in life, you’ll always have more. If you look at what you don’t have in life, you’ll never have enough.","author":"Oprah Winfrey"},168 {169 "quote":"Remember that not getting what you want is sometimes a wonderful stroke of luck.","author":"Dalai Lama"},170 {171 "quote":"You can’t use up creativity. The more you use, the more you have.","author":"Maya Angelou"},172 {173 "quote":"Dream big and dare to fail.","author":"Norman Vaughan"},174 {175 "quote":"Our lives begin to end the day we become silent about things that matter.","author":"Martin Luther King Jr."},176 {177 "quote":"Do what you can, where you are, with what you have.","author":"Teddy Roosevelt"},178 {179 "quote":"If you do what you’ve always done, you’ll get what you’ve always gotten.","author":"Tony Robbins"},180 {181 "quote":"Dreaming, after all, is a form of planning.","author":"Gloria Steinem"},182 {183 "quote":"It’s your place in the world; it’s your life. Go on and do all you can with it, and make it the life you want to live.","author":"Mae Jemison"},184 {185 "quote":"You may be disappointed if you fail, but you are doomed if you don’t try.","author":"Beverly Sills"},186 {187 "quote":"Remember no one can make you feel inferior without your consent.","author":"Eleanor Roosevelt"},188 {189 "quote":"Life is what we make it, always has been, always will be.","author":"Grandma Moses"},190 {191 "quote":"The question isn’t who is going to let me; it’s who is going to stop me.","author":"Ayn Rand"},192 {193 "quote":"When everything seems to be going against you, remember that the airplane takes off against the wind, not with it.","author":"Henry Ford"},194 {195 "quote":"It’s not the years in your life that count. It’s the life in your years.","author":"Abraham Lincoln"},196 {197 "quote":"Change your thoughts and you change your world.","author":"Norman Vincent Peale"},198 {199 "quote":"Either write something worth reading or do something worth writing.","author":"Benjamin Franklin"},200 {201 "quote":"Nothing is impossible, the word itself says, “I’m possible!”","author":"–Audrey Hepburn"},202 {203 "quote":"The only way to do great work is to love what you do.","author":"Steve Jobs"},204 {205 "quote":"If you can dream it, you can achieve it.","author":"Zig Ziglar"}206 ]...

Full Screen

Full Screen

fg.brian.quotes.js

Source:fg.brian.quotes.js Github

copy

Full Screen

1var quotes = [2 { quote: "Physical fitness is not only one of the most important keys to a healthy body, it is the basis of dynamic and creative intellectual activity", author:"John F. Kennedy"},3 { quote: "Take care of your body. It's the only place you have to live.", author:"Jim Rohn"},4 { quote: "To enjoy the glow of good health, you must exercise.", author: "Gene Tunney"},5 { quote: "The purpose of training is to tighten up the slack, toughen the body, and polish the spirit.", author: "Morihei Ueshiba"},6 { quote: "I'm not in the best shape, but I want to prove to myself I can do something that seems insurmountable and inspire others by showing them no matter where they are in their fitness goals, they can do it, too.", author: "Ruben Studdard"},7 { quote: "Reading is to the mind what exercise is to the body.", author: "Joseph Addison"},8 { quote: "Time and health are two precious assets that we don't recognize and appreciate until they have been depleted.", author: "Denis Waitley"},9 { quote: "Walking is the best possible exercise. Habituate yourself to walk very far.", author: "Thomas Jefferson"},10 { quote: "The human body is the best picture of the human soul.", author: "Ludwig Wittgenstein"},11 { quote: "Exercise to stimulate, not to annihilate. The world wasn't formed in a day, and neither were we. Set small goals and build upon them.", author: "Lee Haney"},12 { quote: "True enjoyment comes from activity of the mind and exercise of the body; the two are ever united.", author: "Wilhelm von Humboldt"},13 { quote: "Swimming is normal for me. I'm relaxed. I'm comfortable, and I know my surroundings. It's my home.", author: "Michael Phelps"},14 { quote: "Bodybuilding is much like any other sport. To be successful, you must dedicate yourself 100% to your training, diet and mental approach.", author: "Arnold Schwarzenegger"},15 { quote: "Jogging is very beneficial. It's good for your legs and your feet. It's also very good for the ground. If makes it feel needed.", author: "Charles M. Schulz"},16 { quote: "I think I have just evolved as a person, as a human being. I like fitness. It's an important part of my everyday life, and I enjoy and endorse a healthy lifestyle.", author: "Karisma Kapoor"},17 { quote: "Exercise is done against one's wishes and maintained only because the alternative is worse.", author: "George A. Sheehan"},18 { quote: "I don't smoke, don't drink much, and go to the gym five times a week. I live a healthy lifestyle and feel great. I can run a marathon, you know.", author: "Sarah Michelle Gellar"},19 { quote: "Leave all the afternoon for exercise and recreation, which are as necessary as reading. I will rather say more necessary because health is worth more than learning.", author: "Thomas Jefferson"},20 { quote: "Health is the thing that makes you feel that now is the best time of the year.", author: "Franklin Pierce Adams"},21 { quote: "The mind is the most important part of achieving any fitness goal. Mental change always comes before physical change.", author: "Matt McGorry"},22 { quote: "Practice puts brains in your muscles.", author: "Sam Snead"},23 { quote: "Health is the vital principle of bliss, and exercise, of health.", author: "James Thomson"},24 { quote: "Resting for me is fitness training.", author: "Jenson Button"},25 { quote: "You need to eat normally and healthfully, and you need to exercise. I'm so passionate about this because I think people spend their lives not happy in their bodies.", author: "Courtney Thorne-Smith"},26 { quote: "Almost 70 per cent of your fitness battle is won the day you realise what your body needs and when. I've made my own diets, and I decide for myself what works for me.", author: "Arjun Rampal"},27 { quote: "I attend to my fitness. I go the gym every day and try to maintain my physical fitness; without that, it is tough to take challenges on the chess board.", author: "Viswanathan Anand"},28 { quote: "In terms of fitness and battling through cancer, exercise helps you stay strong physically and mentally.", author: "Grete Waitz"},29 { quote: "Never hurry. Take plenty of exercise. Always be cheerful. Take all the sleep you need. You may expect to be well.", author: "James Freeman Clarke"},30 { quote: "I'm French, so I'm quite lazy about exercising, and I smoke. But I do love going for a run in the morning with my dog. That's all.", author: "Eva Green"},31 { quote: "You must also give mental and physical fitness priority.", author: "Jim Otto"},32 { quote: "Once you are over 30, 35 years old, I think everyone should get down to the gym and start moving again.", author: "Warren Cuccurullo"},33 { quote: "It's been a long road back to health and fitness for me. I am just glad to have been given the opportunity to do what I love most.", author: "Jonah Lomu"},34 { quote: "Personally, I need a high level of physical fitness in order to feel at ease.", author: "Jurgen Klinsmann"},35 { quote: "Number one, like yourself. Number two, you have to eat healthy. And number three, you've got to squeeze your buns. That's my formula.", author: "Richard Simmons"},36 { quote: "A muscle is like a car. If you want it to run well early in the morning, you have to warm it up.", author: "Florence Griffith Joyner"},37 { quote: "I like to embrace natural beauty. I try to get at least 8 hours of sleep, drinking a lot of water and exercising.", author: "Tia Mowry"},38 { quote: "When I'm on the road, I'll break my exercise into a cardio session and a weights session.", author: "Robert Irvine"},39 { quote: "Cycling keeps me lean and I need to stay in shape, especially as I still like eating chocolate and ice-cream! I like to go mountain biking too. Running is also good; it's what we were designed to do as humans, so it comes naturally.", author: "Mark Webber"},40 { quote: "In the midst of these hard times it is our good health and good sleep that are enjoyable.", author: "Knute Nelson"},41 { quote: "My wife and I work out together almost every day. It's just a great way to spend time together. We're going to run a marathon together later this year, and that's one more goal that we'll accomplish as husband and wife.", author: "Bill Rancic"},42 { quote: "You can always improve your fitness if you keep training.", author: "Pastor Maldonado"},43 { quote: "A vigorous five-mile walk will do more good for an unhappy but otherwise healthy adult than all the medicine and psychology in the world.", author: "Paul Dudley White"},44 { quote: "You gotta have a body.", author: "Jayne Mansfield"},45 { quote: "I have been through various fitness regimes. I used to run about five miles a day and I did aerobics for a while.", author: "Sting"},46 { quote: "I think exercise tests us in so many ways, our skills, our hearts, our ability to bounce back after setbacks. This is the inner beauty of sports and competition, and it can serve us all well as adult athletes.", author: "Peggy Fleming"},47 { quote: "15 minutes a day! Give me just this and I'll prove I can make you a new man.", author: "Charles Atlas"},48 { quote: "Tactics, fitness, stroke ability, adaptability, experience, and sportsmanship are all necessary for winning.", author: "Fred Perry"},49 { quote: "Fitness needs to be perceived as fun and games or we subconsciously avoid it.", author: "Alan Thicke"},50 { quote: "What you want is to rev up your metabolism so that you are burning fat and calories, not preserving fat and calories.", author: "Kathy Freston"},51 { quote: "I feel if I'm healthy and happy, I look good. With a good mixture of fitness and healthy food I always feel great!", author: "Candice Swanepoel"},52 { quote: "I try and maintain a little bit of fitness, man.", author: "Frank Bruno"},53 { quote: "I'm 33 now and I seem to have hit a fitness plane. Shifting the wobbly bits isn't as easy as it used to be.", author: "Matthew Rhys"},54 { quote: "With fitness, I do Bikrams hot yoga. The gym that I have in my building is amazing. I love to do cardio and weights there.", author: "Shay Mitchell"},55 { quote: "I personally love to run outdoor fitness trails. I love the meditative value I get when out alone, challenging myself to run faster and higher.", author: "Laurieann Gibson"},56 { quote: "I think a basic level of fitness can help the body cope with all manner of incidents.", author: "Richard Hammond"},57 { quote: "I'm such a fitness freak that I eat so plain, it's gross. I have oatmeal in the morning and then I have chicken breasts and vegetables and spinach shakes.", author: "Jake Shears"},58 { quote: "I am concentrating on my fitness levels so that I don't look old.", author: "Sonu Nigam"},59 { quote: "To keep my back from getting stiff, I have a strict regime every morning of stretching and do yoga once a week and Pilates. 'Strictly Come Dancing' in 2008 was great for my fitness.", author: "Cherie Lunghi"},60 { quote: "I took up boxing as a fitness thing. I got obsessed, and I would go every day when I wasn't working. It's just an insane sport when you get into it.", author: "Lena Headey"},61 { quote: "In my judgment, physical fitness is basic to all forms of excellence and to a strong, confident nation.", author: "Robert Kennedy"},62 { quote: "Muscles come and go; flab lasts.", author: "Bill Vaughan"},63 { quote: "Exercise is labor without weariness.", author: "Samuel Johnson"}64];65var currentQuote = -1;66function qLogic(data, element) {67 console.important("Health Quotes:");68 var whatToDo = data.split("-")[0];69 if(whatToDo == "spawn" || whatToDo == "spawn_welcome"){70 var this_PopUp;71 //any quotePopup(s) spawned?72 var popUps = document.getElementsByClassName("quotePopup");73 while(popUps.length > 1){74 popUps[1].parentNode.removeChild(popUps[1]);75 }76 //if a quotePopup exists lets use it (empty it)77 if(popUps[0]){78 this_PopUp = popUps[0];79 $( ".quotePopup .quote p" ).html("");80 $( ".quotePopup .quote .author" ).html("");81 }82 //if no quotePopup exists, create one83 this_PopUp = qConstructor(whatToDo);84 //run next quote logic just to be safe85 qLogic("next");86 }87 if (whatToDo == "hide") {88 element.parentNode.parentNode.parentNode.parentNode.className ="quotePopup";89 }90 if (whatToDo == "next" || whatToDo == "previous") {91 //what is our current quote #?92 //if -1, spawn any random #93 if(currentQuote == -1){94 qLogic("random");95 }else{96 if(whatToDo == "next"){97 if(currentQuote < quotes.length){ currentQuote +=1;98 }else{ currentQuote = 0; }99 }else if (whatToDo == "previous"){100 if(currentQuote > 0){ currentQuote -=1;101 }else{ currentQuote = quotes.length; }102 }103 }104 console.log("quote update to #: " + currentQuote);105 qLogic("update");106 }107 108 if(whatToDo == "random"){109 currentQuote = Math.floor(Math.random() * quotes.length);110 }111 if(whatToDo == "update"){112 $( ".quotePopup .quote p" ).html(quotes[currentQuote].quote);113 $( ".quotePopup .quote .author" ).html(quotes[currentQuote].author);114 }115}116function qConstructor(spawnType) {117 var container = document.createElement("div");118 container.className = "quotePopup open";119 // WITHININ CONTAINER120 var content = document.createElement("div");121 content.className = "content";122 container.appendChild( content ) ;123 // WITHININ CONTENT124 if(spawnType == "spawn_welcome"){125 var welcome = document.createElement("div");126 welcome.className = "welcome";127 content.appendChild( welcome ) ;128 }129 var logo_txt = document.createElement("div");130 logo_txt.className = "logo-txt";131 content.appendChild( logo_txt ) ;132 var quote = document.createElement("div");133 quote.className = "quote";134 content.appendChild( quote ) ;135 //WITHIN QUOTE136 var nav = document.createElement("div");137 nav.className = "nav";138 quote.appendChild( nav ) ;139 //WITHIN NAV140 var d = document.createElement("div");141 nav.appendChild( d ) ;142 var b = document.createElement("button");143 b.onclick = function () { qLogic("hide", this);};144 nav.appendChild( b ) ;145 var quotePlace = document.createElement("p");146 quote.appendChild( quotePlace ) ;147 var author = document.createElement("div");148 author.className = "author";149 quote.appendChild( author ) ;150 var moreQuotes = document.createElement("div");151 moreQuotes.className = "more";152 quote.appendChild( moreQuotes ) ;153 //WITHIN MORE154 var previousQuote = document.createElement("a");155 previousQuote.onclick = function () { qLogic("previous", this);};156 var leftArrow = document.createElement("i");157 leftArrow.className = "fa fa-arrow-left";158 previousQuote.appendChild( leftArrow ) ;159 moreQuotes.appendChild( previousQuote ) ;160 var nextQuote = document.createElement("a");161 nextQuote.onclick = function () { qLogic("next", this);};162 var rightArrow = document.createElement("i");163 rightArrow.className = "fa fa-arrow-right";164 nextQuote.appendChild( rightArrow ) ;165 moreQuotes.appendChild( nextQuote ) ;166 var footer = document.createElement("div");167 footer.className = "footer";168 container.appendChild( footer ) ;169 document.body.appendChild( container ) ;170}171console.important = function( msg){172 console.log( '%c%s %s %s', 'color: white; font-size: large; font-weight: bold; background-color: rgba(0,0,0,0.5)', '', msg, '');173}174// $(function() { 175// qLogic("spawn_welcome");...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

1'use strict';2Object.defineProperty(exports, "__esModule", {3 value: true4});5var _postcss = require('postcss');6var _postcss2 = _interopRequireDefault(_postcss);7var _postcssValueParser = require('postcss-value-parser');8var _postcssValueParser2 = _interopRequireDefault(_postcssValueParser);9var _has = require('has');10var _has2 = _interopRequireDefault(_has);11function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }12/*13 * Constants (parser usage)14 */15const SINGLE_QUOTE = '\''.charCodeAt(0);16const DOUBLE_QUOTE = '"'.charCodeAt(0);17const BACKSLASH = '\\'.charCodeAt(0);18const NEWLINE = '\n'.charCodeAt(0);19const SPACE = ' '.charCodeAt(0);20const FEED = '\f'.charCodeAt(0);21const TAB = '\t'.charCodeAt(0);22const CR = '\r'.charCodeAt(0);23const WORD_END = /[ \n\t\r\f'"\\]/g;24/*25 * Constants (node type strings)26 */27const C_STRING = 'string';28const C_ESCAPED_SINGLE_QUOTE = 'escapedSingleQuote';29const C_ESCAPED_DOUBLE_QUOTE = 'escapedDoubleQuote';30const C_SINGLE_QUOTE = 'singleQuote';31const C_DOUBLE_QUOTE = 'doubleQuote';32const C_NEWLINE = 'newline';33const C_SINGLE = 'single';34/*35 * Literals36 */37const L_SINGLE_QUOTE = `'`;38const L_DOUBLE_QUOTE = `"`;39const L_NEWLINE = `\\\n`;40/*41 * Parser nodes42 */43const T_ESCAPED_SINGLE_QUOTE = { type: C_ESCAPED_SINGLE_QUOTE, value: `\\'` };44const T_ESCAPED_DOUBLE_QUOTE = { type: C_ESCAPED_DOUBLE_QUOTE, value: `\\"` };45const T_SINGLE_QUOTE = { type: C_SINGLE_QUOTE, value: L_SINGLE_QUOTE };46const T_DOUBLE_QUOTE = { type: C_DOUBLE_QUOTE, value: L_DOUBLE_QUOTE };47const T_NEWLINE = { type: C_NEWLINE, value: L_NEWLINE };48function stringify(ast) {49 return ast.nodes.reduce((str, { value }) => {50 // Collapse multiple line strings automatically51 if (value === L_NEWLINE) {52 return str;53 }54 return str + value;55 }, '');56}57function parse(str) {58 let code, next, value;59 let pos = 0;60 let len = str.length;61 const ast = {62 nodes: [],63 types: {64 escapedSingleQuote: 0,65 escapedDoubleQuote: 0,66 singleQuote: 0,67 doubleQuote: 068 },69 quotes: false70 };71 while (pos < len) {72 code = str.charCodeAt(pos);73 switch (code) {74 case SPACE:75 case TAB:76 case CR:77 case FEED:78 next = pos;79 do {80 next += 1;81 code = str.charCodeAt(next);82 } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED);83 ast.nodes.push({84 type: 'space',85 value: str.slice(pos, next)86 });87 pos = next - 1;88 break;89 case SINGLE_QUOTE:90 ast.nodes.push(T_SINGLE_QUOTE);91 ast.types[C_SINGLE_QUOTE]++;92 ast.quotes = true;93 break;94 case DOUBLE_QUOTE:95 ast.nodes.push(T_DOUBLE_QUOTE);96 ast.types[C_DOUBLE_QUOTE]++;97 ast.quotes = true;98 break;99 case BACKSLASH:100 next = pos + 1;101 if (str.charCodeAt(next) === SINGLE_QUOTE) {102 ast.nodes.push(T_ESCAPED_SINGLE_QUOTE);103 ast.types[C_ESCAPED_SINGLE_QUOTE]++;104 ast.quotes = true;105 pos = next;106 break;107 } else if (str.charCodeAt(next) === DOUBLE_QUOTE) {108 ast.nodes.push(T_ESCAPED_DOUBLE_QUOTE);109 ast.types[C_ESCAPED_DOUBLE_QUOTE]++;110 ast.quotes = true;111 pos = next;112 break;113 } else if (str.charCodeAt(next) === NEWLINE) {114 ast.nodes.push(T_NEWLINE);115 pos = next;116 break;117 }118 /*119 * We need to fall through here to handle the token as120 * a whole word. The missing 'break' is intentional.121 */122 default:123 WORD_END.lastIndex = pos + 1;124 WORD_END.test(str);125 if (WORD_END.lastIndex === 0) {126 next = len - 1;127 } else {128 next = WORD_END.lastIndex - 2;129 }130 value = str.slice(pos, next + 1);131 ast.nodes.push({132 type: C_STRING,133 value134 });135 pos = next;136 }137 pos++;138 }139 return ast;140}141function changeWrappingQuotes(node, ast) {142 const { types } = ast;143 if (types[C_SINGLE_QUOTE] || types[C_DOUBLE_QUOTE]) {144 return;145 }146 if (node.quote === L_SINGLE_QUOTE && types[C_ESCAPED_SINGLE_QUOTE] > 0 && !types[C_ESCAPED_DOUBLE_QUOTE]) {147 node.quote = L_DOUBLE_QUOTE;148 }149 if (node.quote === L_DOUBLE_QUOTE && types[C_ESCAPED_DOUBLE_QUOTE] > 0 && !types[C_ESCAPED_SINGLE_QUOTE]) {150 node.quote = L_SINGLE_QUOTE;151 }152 ast.nodes = ast.nodes.reduce((newAst, child) => {153 if (child.type === C_ESCAPED_DOUBLE_QUOTE && node.quote === L_SINGLE_QUOTE) {154 return [...newAst, T_DOUBLE_QUOTE];155 }156 if (child.type === C_ESCAPED_SINGLE_QUOTE && node.quote === L_DOUBLE_QUOTE) {157 return [...newAst, T_SINGLE_QUOTE];158 }159 return [...newAst, child];160 }, []);161}162function normalize(value, preferredQuote) {163 if (!value || !value.length) {164 return value;165 }166 return (0, _postcssValueParser2.default)(value).walk(child => {167 if (child.type !== C_STRING) {168 return;169 }170 const ast = parse(child.value);171 if (ast.quotes) {172 changeWrappingQuotes(child, ast);173 } else if (preferredQuote === C_SINGLE) {174 child.quote = L_SINGLE_QUOTE;175 } else {176 child.quote = L_DOUBLE_QUOTE;177 }178 child.value = stringify(ast);179 }).toString();180}181const params = {182 rule: 'selector',183 decl: 'value',184 atrule: 'params'185};186exports.default = _postcss2.default.plugin('postcss-normalize-string', opts => {187 const { preferredQuote } = Object.assign({}, {188 preferredQuote: 'double'189 }, opts);190 return css => {191 const cache = {};192 css.walk(node => {193 const { type } = node;194 if ((0, _has2.default)(params, type)) {195 const param = params[type];196 const key = node[param] + '|' + preferredQuote;197 if (cache[key]) {198 node[param] = cache[key];199 return;200 }201 const result = normalize(node[param], preferredQuote);202 node[param] = result;203 cache[key] = result;204 }205 });206 };207});...

Full Screen

Full Screen

normalizeString.js

Source:normalizeString.js Github

copy

Full Screen

1'use strict';2exports.__esModule = true;3var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };4var postcss = require('postcss');5var valueParser = require('postcss-value-parser');6/*7 * Constants (parser usage)8 */9var SINGLE_QUOTE = 39;10var DOUBLE_QUOTE = 34;11var BACKSLASH = 92;12var NEWLINE = 10;13var SPACE = 32;14var FEED = 12;15var TAB = 9;16var CR = 13;17var WORD_END = /[ \n\t\r\f'"\\]/g;18/*19 * Constants (node type strings)20 */21var C_STRING = 'string';22var C_ESCAPED_SINGLE_QUOTE = 'escapedSingleQuote';23var C_ESCAPED_DOUBLE_QUOTE = 'escapedDoubleQuote';24var C_SINGLE_QUOTE = 'singleQuote';25var C_DOUBLE_QUOTE = 'doubleQuote';26var C_NEWLINE = 'newline';27var C_SINGLE = 'single';28/*29 * Literals30 */31var L_SINGLE_QUOTE = '\'';32var L_DOUBLE_QUOTE = '"';33var L_NEWLINE = '\\\n';34/*35 * Parser nodes36 */37var T_ESCAPED_SINGLE_QUOTE = { type: C_ESCAPED_SINGLE_QUOTE, value: '\\\'' };38var T_ESCAPED_DOUBLE_QUOTE = { type: C_ESCAPED_DOUBLE_QUOTE, value: '\\"' };39var T_SINGLE_QUOTE = { type: C_SINGLE_QUOTE, value: L_SINGLE_QUOTE };40var T_DOUBLE_QUOTE = { type: C_DOUBLE_QUOTE, value: L_DOUBLE_QUOTE };41var T_NEWLINE = { type: C_NEWLINE, value: L_NEWLINE };42function stringify(ast) {43 return ast.nodes.reduce(function (str, _ref) {44 var value = _ref.value;45 // Collapse multiple line strings automatically46 if (value === L_NEWLINE) {47 return str;48 }49 return str + value;50 }, '');51}52function parse(str) {53 var code = void 0,54 next = void 0,55 value = void 0;56 var pos = 0;57 var len = str.length;58 var ast = {59 nodes: [],60 types: {61 escapedSingleQuote: 0,62 escapedDoubleQuote: 0,63 singleQuote: 0,64 doubleQuote: 065 },66 quotes: false67 };68 while (pos < len) {69 code = str.charCodeAt(pos);70 switch (code) {71 case SPACE:72 case TAB:73 case CR:74 case FEED:75 next = pos;76 do {77 next += 1;78 code = str.charCodeAt(next);79 } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED);80 ast.nodes.push({81 type: 'space',82 value: str.slice(pos, next)83 });84 pos = next - 1;85 break;86 case SINGLE_QUOTE:87 ast.nodes.push(T_SINGLE_QUOTE);88 ast.types[C_SINGLE_QUOTE]++;89 ast.quotes = true;90 break;91 case DOUBLE_QUOTE:92 ast.nodes.push(T_DOUBLE_QUOTE);93 ast.types[C_DOUBLE_QUOTE]++;94 ast.quotes = true;95 break;96 case BACKSLASH:97 next = pos + 1;98 if (str.charCodeAt(next) === SINGLE_QUOTE) {99 ast.nodes.push(T_ESCAPED_SINGLE_QUOTE);100 ast.types[C_ESCAPED_SINGLE_QUOTE]++;101 ast.quotes = true;102 pos = next;103 break;104 } else if (str.charCodeAt(next) === DOUBLE_QUOTE) {105 ast.nodes.push(T_ESCAPED_DOUBLE_QUOTE);106 ast.types[C_ESCAPED_DOUBLE_QUOTE]++;107 ast.quotes = true;108 pos = next;109 break;110 } else if (str.charCodeAt(next) === NEWLINE) {111 ast.nodes.push(T_NEWLINE);112 pos = next;113 break;114 }115 /*116 * We need to fall through here to handle the token as117 * a whole word. The missing 'break' is intentional.118 */119 default:120 WORD_END.lastIndex = pos + 1;121 WORD_END.test(str);122 if (WORD_END.lastIndex === 0) {123 next = len - 1;124 } else {125 next = WORD_END.lastIndex - 2;126 }127 value = str.slice(pos, next + 1);128 ast.nodes.push({129 type: C_STRING,130 value: value131 });132 pos = next;133 }134 pos++;135 }136 return ast;137}138function changeWrappingQuotes(node, ast) {139 var types = ast.types;140 if (types[C_SINGLE_QUOTE] || types[C_DOUBLE_QUOTE]) {141 return;142 }143 if (node.quote === L_SINGLE_QUOTE && types[C_ESCAPED_SINGLE_QUOTE] > 0 && !types[C_ESCAPED_DOUBLE_QUOTE]) {144 node.quote = L_DOUBLE_QUOTE;145 }146 if (node.quote === L_DOUBLE_QUOTE && types[C_ESCAPED_DOUBLE_QUOTE] > 0 && !types[C_ESCAPED_SINGLE_QUOTE]) {147 node.quote = L_SINGLE_QUOTE;148 }149 ast.nodes = ast.nodes.reduce(function (newAst, child) {150 if (child.type === C_ESCAPED_DOUBLE_QUOTE && node.quote === L_SINGLE_QUOTE) {151 return [].concat(newAst, [T_DOUBLE_QUOTE]);152 }153 if (child.type === C_ESCAPED_SINGLE_QUOTE && node.quote === L_DOUBLE_QUOTE) {154 return [].concat(newAst, [T_SINGLE_QUOTE]);155 }156 return [].concat(newAst, [child]);157 }, []);158}159function normalize(value, preferredQuote) {160 if (!value || !value.length) {161 return value;162 }163 return valueParser(value).walk(function (child) {164 if (child.type !== C_STRING) {165 return;166 }167 var ast = parse(child.value);168 if (ast.quotes) {169 changeWrappingQuotes(child, ast);170 } else if (preferredQuote === C_SINGLE) {171 child.quote = L_SINGLE_QUOTE;172 } else {173 child.quote = L_DOUBLE_QUOTE;174 }175 child.value = stringify(ast);176 }).toString();177}178exports.default = postcss.plugin('cssnano-normalize-string', function (opts) {179 var _preferredQuote$opts = _extends({180 preferredQuote: 'double'181 }, opts),182 preferredQuote = _preferredQuote$opts.preferredQuote;183 return function (css) {184 css.walk(function (node) {185 if (node.type === 'rule') {186 node.selector = normalize(node.selector, preferredQuote);187 }188 if (node.type === 'decl') {189 node.value = normalize(node.value, preferredQuote);190 }191 if (node.type === 'atrule') {192 node.params = normalize(node.params, preferredQuote);193 }194 });195 };196});...

Full Screen

Full Screen

CMnQuoteDetailEvents.js

Source:CMnQuoteDetailEvents.js Github

copy

Full Screen

1define([2], function (){3 "use strict";4 var events = {};5 //static event types for the action button bar.6 events.ACCOUNT_CHANGED = "accountChanged";7 events.LOAD_QUOTE = "loadQuote";8 events.QUOTE_LOADED = "quoteLoaded";9 events.CREATE_QUOTE = "createQuote";10 events.SAVE_QUOTE = "saveQuote";11 events.QUOTE_SAVED = "quoteSaved";12 events.QUOTE_HEADER_SAVED = "quoteHeaderSaved";13 events.QUOTE_SAVE_FAILED = "quoteSaveFailed";14 events.DELETE_QUOTE = "deleteQuote";15 events.QUOTE_DELETED = "quoteDeleted";16 events.QUOTE_DELETE_FAILED = "quoteDeleteFailed";17 events.QUOTE_HAS_ERROR = "quoteHasError";18 events.LOAD_QUOTE_LINES_TABLE_DEFINITIONS = "loadQuoteLinesTableDefinitions";19 events.QUOTE_LINES_TABLE_DEFINITIONS_LOADED = "quoteLinesTableDefinitionsLoaded";20 events.FILTER_QUOTE_LINES = "filterQuoteLines";21 events.QUOTE_LINES_FILTER_CLEARED_ON_ADD = "quoteLinesFilterClearedOnAdd";22 events.FILTER_BY = "filterBy";23 events.LOAD_QUOTE_LINES = "loadQuoteLines";24 events.QUOTE_LINES_LOADED = "quoteLinesLoaded";25 events.QUOTE_SUB_LINES_LOADED = "quoteSubLinesLoaded";26 events.SOLUTION_LINE_LOADED = "solutionLineLoaded";27 events.SAVE_QUOTE_LINES = "saveQuoteLines";28 events.QUOTE_LINES_SAVED = "quoteLinesSaved";29 events.QUOTE_LINES_SAVE_FAILED = "quoteLinesSaveFailed";30 events.ADD_QUOTE_LINE = "addQuoteLine";31 events.QUOTE_LINE_ADDED = "quoteLineAdded";32 events.SOLUTION_ADDED = "solutionAdded";33 events.QUOTE_LINE_ADD_FAILED = "quoteLineAddFailed";34 events.LOAD_PRODUCTS = "loadProducts";35 events.PRODUCTS_LOADED = "productsLoaded";36 events.DELETE_QUOTE_LINE = "deleteQuoteLine";37 events.QUOTE_LINE_DELETED = "quoteLineDeleted";38 events.QUOTE_LINE_DELETE_FAILED = "quoteLineDeleteFailed";39 events.CHECK_QUOTE_NEEDS_APPROVAL = "checkQuoteNeedsApproval";40 events.QUOTE_NEEDS_NO_APPROVAL = "quoteNeedsNoApproval";41 events.QUOTE_NEEDS_APPROVAL = "quoteNeedsApproval";42 events.SUBMIT_QUOTE_FOR_APPROVAL = "submitQuoteForApproval";43 events.QUOTE_SUBMITTED_FOR_APPROVAL = "quoteSubmittedForApproval";44 events.QUOTE_SUBMIT_FOR_APPROVAL_FAILED = "quoteSubmitForApprovalFailed";45 events.CHECK_QUOTE_APPROVER = "checkQuoteApprover";46 events.YOU_ARE_QUOTE_APPROVER = "youAreQuoteApprover";47 events.YOU_ARE_NOT_QUOTE_APPROVER = "youAreNotQuoteApprover";48 events.CHECK_QUOTE_SUBMITTER = "checkQuoteSubmitter";49 events.YOU_ARE_QUOTE_SUBMITTER = "youAreQuoteSubmitter";50 events.YOU_ARE_NOT_QUOTE_SUBMITTER = "youAreNotQuoteSubmitter";51 events.APPROVE_QUOTE = "approveQuote";52 events.QUOTE_APPROVED = "quoteApproved";53 events.QUOTE_APPROVAL_FAILED = "quoteApprovalFailed";54 events.REJECT_QUOTE = "rejectQuote";55 events.QUOTE_REJECTED = "quoteRejected";56 events.QUOTE_REJECT_FAILED = "quoteRejectFailed";57 events.RECALL_QUOTE = "recallQuote";58 events.QUOTE_RECALLED = "quoteRecalled";59 events.QUOTE_RECALL_FAILED = "quoteRecallFailed";60 events.UPDATE_QUOTE_STATUS = "updateQuoteStatus";61 events.QUOTE_STATUS_READY = "quoteStatusReady";62 events.QUOTE_STATUS_DRAFT = "quoteStatusDraft";63 events.QUOTE_STATUS_ORDERED = "quoteStatusOrdered";64 events.UPDATE_QUOTE_STATUS_FAILED = "updateQuoteStatusFailed";65 events.QUOTE_WORKFLOW_FAILED = "quoteWorkflowFailed";66 events.NAVIGATE_TO_OPP = "navigateToOpp";67 events.GET_CATALOG = "getCatalog";68 events.CATALOG_AVAILABLE = "catalogAvailable";69 events.NAVIGATE_TO_PROPOSAL_DETAILS = "navigateToProposalDetails";70 events.NAVIGATE_TO_PROPOSAL_DETAILS = "navigateToImportQuoteItems";71 events.ENABLE_OR_DISABLE_SUBMIT_BTN = "enableOrDisableSubmitButton";72 events.QUOTE_EXPIRED = "quoteExpired";73 events.QUOTE_UNEXPIRED = "quoteUnExpired";74 events.NAVIGATE_TO_PRODUCT_DETAIL = "navigateToProductDetail";75 events.NAVIGATE_TO_QUOTE_HOME = "navigateToQuoteHome";76 events.DISCOUNT_SIGN_CHANGED = "discountSignChanged";77 events.LOAD_RECOMMENDED_PRODUCTS = 'loadRecommendedProducts';78 events.RECOMMENDED_PRODUCTS_LOADED = 'loadedRecommendedProducts';79 events.END_CONFIG_SESSION = "endConfigSession";80 return events;...

Full Screen

Full Screen

script.js

Source:script.js Github

copy

Full Screen

1const quoteContainer = document.getElementById('quote-container');2const quoteText = document.getElementById('quote');3const authorText = document.getElementById('author');4const twitterBtn = document.getElementById('twitter');5const newQuoteBtn = document.getElementById('new-quote');6const loader = document.getElementById('loader');7// showing loader8function loading(){9 loader.hidden = false;10 quoteContainer.hidden = true;11}12// hiding loader13function complete(){14 if(!loader.hidden){15 loader.hidden = true;16 quoteContainer.hidden = false;17 }18}19// get quote from api20async function getQuote(){21 loading();22 const proxyUrl = 'https://tranquil-everglades-16767.herokuapp.com/'23 const apiUrl = `http://api.forismatic.com/api/1.0/?method=getQuote&lang=en&format=json`;24 try {25 const response = await fetch(proxyUrl + apiUrl);26 const data = await response.json();27 if(data.quoteAuthor === ''){28 authorText.innerText = 'Unknown';29 } else {30 authorText.innerText = data.quoteAuthor;31 }32 quoteText.innerText = data.quoteText;33 if(data.quoteText.length >= 120){34 quoteText.classList.add('long-quote');35 } else {36 quoteText.classList.remove('long-quote');37 }38 complete();39 } catch (error) {40 getQuote();41 console.log(error)42 }43}44// tweet quote function45function tweetQuote(){46 const quote = quoteText.innerText;47 const author = authorText.innerText;48 const twitterUrl = `https://twitter.com/intent/tweet?text=${quote} - ${author}`;49 window.open(twitterUrl, '_blank')50}51//event listeners52newQuoteBtn.addEventListener('click', getQuote);53twitterBtn.addEventListener('click', tweetQuote);54// load quote...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const playwright = require('playwright');2(async () => {3 for (const browserType of ['chromium', 'firefox', 'webkit']) {4 const browser = await playwright[browserType].launch();5 const context = await browser.newContext();6 const page = await context.newPage();7 await page.click('"Get started"');8 await page.waitForTimeout(5000);9 await browser.close();10 }11})();12const { chromium } = require('playwright');13(async () => {14 const browser = await chromium.launch();15 const context = await browser.newContext();16 const page = await context.newPage();17 await page.click('"Get started"');18 await page.waitForTimeout(5000);19 await browser.close();20})();21const { chromium } = require('playwright');22(async () => {23 const browser = await chromium.launch();24 const context = await browser.newContext();25 const page = await context.newPage();26 await page.click('"Get started"');27 await page.waitForTimeout(5000);28 await browser.close();29})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch({ headless: false });4 const context = await browser.newContext();5 const page = await context.newPage();6 await page.fill('input[name="q"]', page.quote('foo bar'));7 await page.click('input[name="btnK"]');8 await page.waitForTimeout(5000);9 await browser.close();10})();11const { chromium } = require('playwright');12(async () => {13 const browser = await chromium.launch({ headless: false });14 const context = await browser.newContext();15 const page = await context.newPage();16 await page.fill('input[name="q"]', page.quote('foo bar'));17 await page.click('input[name="btnK"]');18 await page.waitForTimeout(5000);19 await browser.close();20})();21const { chromium } = require('playwright');22(async () => {23 const browser = await chromium.launch({ headless: false });24 const context = await browser.newContext();25 const page = await context.newPage();26 await page.fill('input[name="q"]', page.quote('foo bar'));27 await page.click('input[name="btnK"]');28 await page.waitForTimeout(5000);29 await browser.close();30})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const context = await browser.newContext();5 const page = await context.newPage();6 await page.click('#gbqfq');7 await page.keyboard.type('Hello World!');8 await page.keyboard.press('Enter');9 await page.screenshot({ path: `example.png` });10 await browser.close();11})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const playwright = require('playwright')2const { quote } = playwright._internalApi.selectors3const selector = quote('div')4console.log(selector)5const { test, expect } = require('@playwright/test')6test('test', async ({ page }) => {7 await page.setContent('<div></div>')8 const selector = quote('div')9 console.log(selector)10 expect(await page.$(selector)).toBeTruthy()11})

Full Screen

Playwright tutorial

LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.

Chapters:

  1. What is Playwright : Playwright is comparatively new but has gained good popularity. Get to know some history of the Playwright with some interesting facts connected with it.
  2. How To Install Playwright : Learn in detail about what basic configuration and dependencies are required for installing Playwright and run a test. Get a step-by-step direction for installing the Playwright automation framework.
  3. Playwright Futuristic Features: Launched in 2020, Playwright gained huge popularity quickly because of some obliging features such as Playwright Test Generator and Inspector, Playwright Reporter, Playwright auto-waiting mechanism and etc. Read up on those features to master Playwright testing.
  4. What is Component Testing: Component testing in Playwright is a unique feature that allows a tester to test a single component of a web application without integrating them with other elements. Learn how to perform Component testing on the Playwright automation framework.
  5. Inputs And Buttons In Playwright: Every website has Input boxes and buttons; learn about testing inputs and buttons with different scenarios and examples.
  6. Functions and Selectors in Playwright: Learn how to launch the Chromium browser with Playwright. Also, gain a better understanding of some important functions like “BrowserContext,” which allows you to run multiple browser sessions, and “newPage” which interacts with a page.
  7. Handling Alerts and Dropdowns in Playwright : Playwright interact with different types of alerts and pop-ups, such as simple, confirmation, and prompt, and different types of dropdowns, such as single selector and multi-selector get your hands-on with handling alerts and dropdown in Playright testing.
  8. Playwright vs Puppeteer: Get to know about the difference between two testing frameworks and how they are different than one another, which browsers they support, and what features they provide.
  9. Run Playwright Tests on LambdaTest: Playwright testing with LambdaTest leverages test performance to the utmost. You can run multiple Playwright tests in Parallel with the LammbdaTest test cloud. Get a step-by-step guide to run your Playwright test on the LambdaTest platform.
  10. Playwright Python Tutorial: Playwright automation framework support all major languages such as Python, JavaScript, TypeScript, .NET and etc. However, there are various advantages to Python end-to-end testing with Playwright because of its versatile utility. Get the hang of Playwright python testing with this chapter.
  11. Playwright End To End Testing Tutorial: Get your hands on with Playwright end-to-end testing and learn to use some exciting features such as TraceViewer, Debugging, Networking, Component testing, Visual testing, and many more.
  12. Playwright Video Tutorial: Watch the video tutorials on Playwright testing from experts and get a consecutive in-depth explanation of Playwright automation testing.

Run Playwright Internal automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful