Random Quote Machine

Developer
Size
9,460 Kb
Views
20,240

How do I make an random quote machine?

What is a random quote machine? How do you make a random quote machine? This script and codes were developed by Anton Babkin on 18 August 2022, Thursday.

Random Quote Machine Previews

Random Quote Machine - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Random Quote Machine</title> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine"> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <h1 class="text-center text-primary" style="font-family: Tangerine; font-size: 500%">Random Quote Machine</h1> <div class="row"> <div class="col-xs-6 col-xs-offset-3 bg-info text-center"> This application displays a random quote about reading. The collection of quotes was downloaded from <a href="http://www.readfaster.com/readingquotes.asp">www.readfaster.com</a> </div> <div class="col-xs-12 text-center" style="margin: 1em;"> <button class="btn btn-danger" id="get">Get a new quote!</button> </div> <div class="col-xs-6 col-xs-offset-3 bg-primary text-center quote"> <p id="quote-text">I code, therefore I exist!</p> <p><i id="quote-author">Unknown</i></p> </div> <div class="col-xs-12 text-center" style="margin: 1em;" id="tweet-container"> <a class="twitter-share-button" href="https://twitter.com/share" data-size="large" data-url=" " data-text="&quot;I code, therefore I exist!&quot; Unknown">Tweet</a> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Random Quote Machine - Script Codes CSS Codes

.quote { border: solid 5px blue; border-radius: 5px; min-height: 6em; padding: 1em;
}

Random Quote Machine - Script Codes JS Codes

// Twitter widgets
window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); t._e = []; t.ready = function(f) { t._e.push(f); }; return t;
}(document, "script", "twitter-wjs"));
$(document).ready(function () { var quotes = [ {"quote": "To read is to fly: it is to soar to a point of vantage which gives a view over wide terrains of history, human variety, ideas, shared experience and the fruits of many inquiries.",
"author": "A C Grayling, Financial Times (in a review of A History of Reading by Alberto Manguel)"},
{"quote": "A capacity and taste for reading gives access to whatever has already been discovered by others.",
"author": "Abraham Lincoln"},
{"quote": "The things I want to know are in books; my best friend is the man who\'ll get me a book I ain\'t read.",
"author": "Abraham Lincoln"},
{"quote": "To read a writer is for me not merely to get an idea of what he says, but to go off with him and travel in his company.",
"author": "Andre Gide"},
{"quote": "Reading a book is like re-writing it for yourself. You bring to a novel, anything you read, all your experience of the world. You bring your history and you read it in your own terms.",
"author": "Angela Carter"},
{"quote": "Give me a man or woman who has read a thousand books and you give me an interesting companion. Give me a man or woman who has read perhaps three and you give me a dangerous enemy indeed.",
"author": "Anne Rice, The Witching Hour"},
{"quote": "If you can read this, thank a teacher.",
"author": "Anonymous teacher"},
{"quote": "The habit of reading is the only enjoyment in which there is no alloy; it lasts when all other pleasures fade.",
"author": "Anthony Trollope"},
{"quote": "All the best stories in the world are but one story in reality -- the story of escape. It is the only thing which interests us all and at all times, how to escape.",
"author": "Arthur Christopher Benson"},
{"quote": "Reading is sometimes an ingenious device for avoiding thought.",
"author": "Arthur Helps"},
{"quote": "Wear the old coat and buy the new book.",
"author": "Austin Phelps"},
{"quote": "The ability to read awoke inside me some long dormant craving to be mentally alive.",
"author": "Autobiography of Malcolm X, 1964"},
{"quote": "He that loves a book will never want a faithful friend, a wholesome counselor, a cheerful companion, an effectual comforter. By study, by reading, by thinking, one may innocently divert and pleasantly entertain himself, as in all weathers, as in all fortunes.",
"author": "Barrow"},
{"quote": "Life-transforming ideas have always come to me through books.",
"author": "Bell Hooks"},
{"quote": "We read to know we are not alone.",
"author": "C.S. Lewis"},
{"quote": "The fluent reader sounds good, is easy to listen to, and reads with enough expression to help the listener understand and enjoy the material.",
"author": "Charles Clark, \"Building Fluency: Do It Right and Do It Well\'\" (1999)"},
{"quote": "You\'re the same today as you\'ll be in five years except for the people you meet and the books you read.",
"author": "Charlie \"Tremendous\" Jones"},
{"quote": "When you sell a man a book you don\'t sell him just 12 ounces of paper and ink and glue - you sell him a whole new life.",
"author": "Christopher Morley"},
{"quote": "No matter how busy you may think you are, you must find time for reading, or surrender yourself to self-chosen ignorance.",
"author": "Confucius"},
{"quote": "I used to walk to school with my nose buried in a book.",
"author": "Coolio"},
{"quote": "It is better to read a little and ponder a lot than to read a lot and ponder a little.",
"author": "Denis Parsons Burkitt"},
{"quote": "The reading of all good books is like conversation with the finest men of the past centuries.",
"author": "Descartes"},
{"quote": "The connection between reading speed and comprehension; a film is made up of still images flashed in rapid succession to simulate movement. Slow down the film, and the movement and meaning slows and the film\'s impact is diminished. Viewers won\'t learn as much about the film as if it were shown at normal speed. With reading the same thing can happen. When a person reads word by word, like frame by frame, they are not reading on the level of ideas. You need to read on some level that\'s more conversational and allows things to coalesce into ideas themselves.",
"author": "Doug Evans, Institute of Reading Development"},
{"quote": "The more you read, the more things you will know. The more that you learn, the more places you\'ll go.",
"author": "Dr. Seuss, \"I Can Read With My Eyes Shut\'\""},
{"quote": "Reading without reflecting is like eating without digesting.",
"author": "Edmund Burke"},
{"quote": "A book is the only place in which you can examine a fragile thought without breaking it, or explore an explosive idea without fear it will go off in your face. It is one of the few havens remaining where a man\'s mind can get both provocation and privacy.",
"author": "Edward P. Morgan"},
{"quote": "This will never be a civilized country until we expend more money for books than we do for chewing gum.",
"author": "Elbert Hubbard"},
{"quote": "The greatest gift is a passion for reading.",
"author": "Elizabeth Hardwick"},
{"quote": "Children are made readers on the laps of their parents.",
"author": "Emilie Buchwald"},
{"quote": "How my life has been brought to undiscovered lands, and how much richer it gets - all from words printed on a page.... How a book can have 560 pages, but in only three pages change the reader\'s life.",
"author": "Emoke B\'Racz, Writing in Malaprop\'s Newsletter"},
{"quote": "Reading has given me more satisfaction than really anything else.",
"author": "Fashion designer Bill Blass, quoted in Worth (September 1999)"},
{"quote": "Reading will give you lasting pleasure.",
"author": "First Lady Laura Bush (quoted in U.S. News & World Report)"},
{"quote": "Some people will lie, cheat, steal and back-stab to get ahead... and to think, all they have to do is READ.",
"author": "Fortune"},
{"quote": "Some books are to be tasted, others to be swallowed, and some few are to be chewed and digested.",
"author": "Francis Bacon"},
{"quote": "Once you learn to read, you will be forever free.",
"author": "Frederick Douglass"},
{"quote": "To feel most beautifully alive means to be reading something beautiful, ready always to apprehend in the flow of language the sudden flash of poetry.",
"author": "Gaston Bachelard"},
{"quote": "The nonreading children are the greatest problem in American education.",
"author": "Glenn Doman, \"How to Teach Your Baby to Read\""},
{"quote": "I find television very educating. Every time somebody turns on the set, I go into the other room and read a book.",
"author": "Groucho Marx"},
{"quote": "Read in order to live.",
"author": "Gustave Flaubert"},
{"quote": "Not all readers are leaders, but all leaders are readers.",
"author": "Harry S. Truman"},
{"quote": "All evidence points to the seemingly illogical conclusion that the faster most people read, the better they understand.",
"author": "Harry Shefter, Faster Reading Self-Taught"},
{"quote": "Reading takes us away from home, but more important, it finds homes for us everywhere.",
"author": "Hazel Rochman"},
{"quote": "When I read about the evils of drinking, I gave up reading.",
"author": "Henny Youngman"},
{"quote": "The goal in fluency instruction is not fast reading, although that happens to be a by-product of the instruction, but fluent meaning-filled reading.",
"author": "International Reading Association"},
{"quote": "There is an art of reading, as well as an art of thinking, and an art of writing.",
"author": "Isaac D\'Israeli"},
{"quote": "There are many little ways to enlarge your child\'s world. Love of books is the best of all.",
"author": "Jacqueline Kennedy"},
{"quote": "When we read a story, we inhabit it. The covers of the book are like a roof and four walls. What is to happen next will take place within the four walls of the story. And this is possible because the story\'s voice makes everything its own.",
"author": "John Berger"},
{"quote": "Never read a book through merely because you have begun it.",
"author": "John Witherspoon"},
{"quote": "Of all the diversions of life, there is none so proper to fill up its empty spaces as the reading of useful and entertaining authors.",
"author": "Joseph Addison"},
{"quote": "There are worse crimes than burning books. One of them is not reading them.",
"author": "Joseph Brodsky"},
{"quote": "The great objection to new books is that they prevent our reading old ones.",
"author": "Joseph Joubert"},
{"quote": "It is not enough to simply teach children to read; we have to give them something worth reading. Something that will stretch their imaginations--something that will help them make sense of their own lives and encourage them to reach out toward people whose lives are quite different from their own.",
"author": "Katherine Patterson"},
{"quote": "No entertainment is so cheap as reading, nor any pleasure so lasting. She will not want new fashions nor regret the loss of expensive diversions or variety of company if she can be amused with an author in her closet.",
"author": "Lady Montagu"},
{"quote": "People say that life is the thing, but I prefer reading.",
"author": "Logan Pearsall Smith"},
{"quote": "It is well to read everything of something, and something of everything.",
"author": "Lord Henry P. Brougham"},
{"quote": "Teaching reading IS rocket science.",
"author": "Louisa Moats"},
{"quote": "A book is the most effective weapon against intolerance and ignorance.",
"author": "Lyndon Baines Johnson"},
{"quote": "Listening to good models of fluent reading, students can learn how a reader\'s voice can help text make sense.",
"author": "M.R. Kuhn & S.A. Stahl, \"Fluency: A Review of Development and Remedial Practices\" (2003)"},
{"quote": "Everyone probably thinks that I\'m a raving nymphomaniac, that I have an insatiable sexual appetite, when the truth is I\'d rather read a book.",
"author": "Madonna (1991)"},
{"quote": "It has been established beyond a shadow of doubt that readers in general waste a great deal of time and effort.",
"author": "Manya and Eric De Leeuw, Read Better, Read Faster: A New Approach to Efficient Reading"},
{"quote": "Every reader finds himself. The writer\'s work is merely a kind of optical instrument that makes it possible for the reader to discern what, without this book, he would perhaps never have seen in himself.",
"author": "Marcel Proust"},
{"quote": "Today a reader, tomorrow a leader.",
"author": "Margaret Fuller"},
{"quote": "A text is at a students\' independent reading level if they can read it with about 95% accuracy.",
"author": "Marie B. Clay, \"An observation survey of early literacy achievement\" (1993)"},
{"quote": "As the child approaches a new text he is entitled to an introduction so that when he reads, the gist of the... story can provide some guide for a fluent reading.",
"author": "Marie Clay"},
{"quote": "Reading aloud with children is known to be the single most important activity for building the knowledge and skills they will eventually require for learning to read.",
"author": "Marilyn Jager Adams"},
{"quote": "The man who does not read good books has no advantage over the man who can\'t read.",
"author": "Mark Twain"},
{"quote": "A classic is something that everybody wants to have read and nobody wants to read.",
"author": "Mark Twain"},
{"quote": "A good book is the best of friends, the same today and forever.",
"author": "Martin Tupper"},
{"quote": "Reading is a discount ticket to everywhere.",
"author": "Mary Schmich"},
{"quote": "Reading gives us someplace to go when we have to stay where we are.",
"author": "Mason Cooley"},
{"quote": "I was born with a reading list I will never finish.",
"author": "Maud Casey"},
{"quote": "There is no substitute for books in the life of a child.",
"author": "May Ellen Chase"},
{"quote": "Any book that helps a child to form a habit of reading, to make reading one of his deep and continuing needs, is good for him.",
"author": "Maya Angelou"},
{"quote": "A big book is like a serious relationship; it requires a commitment. Not only that, but there\'s no guarantee that you will enjoy it, or that it will have a happy ending.",
"author": "Mick Foley"},
{"quote": "Reading is a basic tool in the living of a good life.",
"author": "Mortimer Adler"},
{"quote": "Thank you for sending me a copy of your book ? I?ll waste no time reading it.",
"author": "Moses Hadas"},
{"quote": "Fluency is a bigger problem for many American middle graders than accuracy.",
"author": "National Reading Panel, 2000"},
{"quote": "Students who do not develop reading fluency, regardless of how bright they are, are likely to remain poor readers throughout their lives.",
"author": "National Reading Panel, 2000"},
{"quote": "There is ample evidence that one of the major differences between poor and good readers is the difference in the quantity of total time they spend reading.",
"author": "National Reading Panel, 2000"},
{"quote": "have given up reading books; I find it takes my mind off myself.",
"author": "Oscar Levant"},
{"quote": "Always read something that will make you look good if you die in the middle of it.",
"author": "P. J. O\'Rourke"},
{"quote": "You teach a child to read, and he or she will be able to pass a literacy test.",
"author": "President George W. Bush (Townsend, Tennessee, Feb. 21, 2001)"},
{"quote": "A man is known by the books he reads.",
"author": "Ralph Waldo Emerson"},
{"quote": "In the highest civilization, the book is still the highest delight. He who has once known its satisfactions is provided with a resource against calamity.",
"author": "Ralph Waldo Emerson"},
{"quote": "You don\'t have to burn books to destroy a culture. Just get people to stop reading them.",
"author": "Ray Bradbury"},
{"quote": "Effective readers, even at their earliest levels, read in five to seven word phrases rather than word by word.",
"author": "Richard L. Allington, \"What Really Matters for Struggling Readers\" (2001)"},
{"quote": "Reading is to the mind what exercise is to the body.",
"author": "Richard Steele"},
{"quote": "So please, oh PLEASE, we beg, we pray, Go throw your TV set away, And in its place you can install, A lovely bookshelf on the wall.",
"author": "Roald Dahl, Charlie and the Chocolate Factory"},
{"quote": "A truly great book should be read in youth, again in maturity and once more in old age, as a fine building should be seen by morning light, at noon and by moonlight.",
"author": "Robertson Davies"},
{"quote": "It is not true we have only one life to love, if we can read, we can live as many lives and as many kinds of lives as we wish.",
"author": "S.I. Hayakawa"},
{"quote": "A writer only begins a book. A reader finishes it.",
"author": "Samuel Johnson"},
{"quote": "A man ought to read just as inclination leads him, for what he reads as a task will do him little good.",
"author": "Samuel Johnson"},
{"quote": "Choose an author as you choose a friend.",
"author": "Sir Christopher Wren"},
{"quote": "To acquire the habit of reading is to construct for yourself a refuge from almost all the miseries of life.",
"author": "Somerset Maugham"},
{"quote": "The world may be full of fourth-rate writers but it\'s also full of fourth-rate readers.",
"author": "Stan Barstow"},
{"quote": "Babies are born with the instinct to speak, the way spiders are born with the instinct to spin webs. You don\'t need to train babies to speak; they just do. But reading is different.",
"author": "Steven Pinker"},
{"quote": "The man who reads nothing at all is better educated than the man who reads nothing but newspapers.",
"author": "Thomas Jefferson"},
{"quote": "To learn to read is to light a fire; every syllable that is spelled out is a spark.",
"author": "Victor Hugo"},
{"quote": "Let us read and let us dance - two amusements that will never do any harm to the world.",
"author": "Voltaire"},
{"quote": "Today a reader, tomorrow a leader.",
"author": "W. Fusselman"},
{"quote": "There is more treasure in books than in all the pirate\'s loot on Treasure Island.",
"author": "Walt Disney"},
{"quote": "The first law of skillful reading is merely an application of the Law of Relative Importance. You must perceive, first of all, the total offerings of the printed matter; then you must appraise these.",
"author": "Walter Pitkin, The Art of Rapid Reading"},
{"quote": "What is reading but silent conversation?",
"author": "Walter Savage Landor"},
{"quote": "Read, read, read.",
"author": "William Faulkner"},
{"quote": "So it is with children who learn to read fluently and well: They begin to take flight into whole new worlds as effortlessly as young birds take to the sky.",
"author": "William James"},
{"quote": "The only thing better than good English writing is - I can\'t think of anything. You just don\'t pour it pureed over your potatoes. You savor it as if it were a find chardonnay. What on Earth does it matter if you stop and repeat a phrase, roll it around on your tongue, dart a few lines ahead and then suddenly come back and reread it? If the phrase is good enough, you are supposed to stop and rejoice in it.",
"author": "William Murchison"},
{"quote": "I divide all readers into two classes: Those who read to remember and those who read to forget.",
"author": "William Phelps"}]; function updateTweet(q, a) { // prepare a tweet line, // cutting the quote if neccessary to fit into 140 symbols var qLen, text = '"'; qLen = 137 - a.length; if (q.length <= qLen) { text += q; } else { text += q.substr(0, qLen - 3) + '...'; } text += '" ' + a; // destroy and re-create tweet button $('#tweet-container').empty(); twttr.widgets.createShareButton( ' ', document.getElementById('tweet-container'), { text: text } ); } $('#get').on('click', function () { var i = Math.floor(quotes.length * Math.random()), quote = quotes[i].quote, author = quotes[i].author; $('#quote-text').html(quote); $('#quote-author').html(author); updateTweet(quote, author); });
});
Random Quote Machine - Script Codes
Random Quote Machine - Script Codes
Home Page Home
Developer Anton Babkin
Username antonbabkin
Uploaded August 18, 2022
Rating 3
Size 9,460 Kb
Views 20,240
Do you need developer help for Random Quote Machine?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Anton Babkin (antonbabkin) Script Codes
Create amazing web content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!