Quote Generator
How do I make an quote generator?
What is a quote generator? How do you make a quote generator? This script and codes were developed by Ujjwal Sharma on 25 August 2022, Thursday.
Quote Generator - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Quote Generator</title> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='http://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.3/animate.min.css'>
</head>
<body> <center> <h1 class='text-primary'> Random Quote Generator </h1> <button class="btn btn-primary" id="generate">Generate</button> <br> <br> <div class="well"> <p id="quote"></p> <p id="author"></p> </div> <a href="https://twitter.com/share" class="twitter-share-button" {count} data-via="Ryzokuken" data-size="large">Tweet</a> <script> !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs'); </script>
</center> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Quote Generator - Script Codes JS Codes
$(document).ready(function() { var quote = new String(); var quotes = ["God does not play dice.@Albert Einstein", "Big Brother is watching you.@George Orwell", "To love is to act.@Victor Hugo", "Music is love in search of a word.@Sidney Lanier", "Conscience is a man's compass.@Vincent Van Gogh", "War is fear cloaked in courage.@William Westmoreland", "Words of love, are works of love.@William R. Alger", "Well done is better than well said.@Benjamin Franklin", "The basis of optimism is sheer terror.@Oscar Wilde", "Hatred is blind, as well as love.@Oscar Wilde", "O, had I but followed the arts!@William Shakespeare", "Happiness is a direction, not a place.@Sydney J. Harris"]; function generate() { var randquote = quotes[Math.floor(Math.random() * quotes.length)]; if(randquote == quote) generate(); else { quote = randquote; var quotearray = quote.split("@"); $("#quote").text(quotearray[0]); $("#author").text(quotearray[1]); } } generate(); $("#generate").on("click",function() { generate(); });
});
Developer | Ujjwal Sharma |
Username | ryzokuken |
Uploaded | August 25, 2022 |
Rating | 3 |
Size | 2,355 Kb |
Views | 32,384 |
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!
Name | Size |
Force Directed Graph D3 | 2,221 Kb |
D3 Heatmap | 2,011 Kb |
Twitch.tv API | 2,618 Kb |
Portfolio-material | 5,736 Kb |
A Pen by Ujjwal Sharma | 7,326 Kb |
Camper News | 2,594 Kb |
Weather App | 2,658 Kb |
Tic Tac Toe | 3,220 Kb |
Handbook | 3,077 Kb |
Game of Life | 5,003 Kb |
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!
Name | Username | Size |
SVG Icons Template | Legofsalmon | 2,618 Kb |
CircleType | Peterhry | 3,535 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
CSS Chat Bubbles | Boylett | 2,094 Kb |
Exploding Text | Jjmartucci | 4,749 Kb |
Wikipedia Viewer | Codinger | 4,681 Kb |
Pure CSS albums gallery | Renaudtertrais | 2,978 Kb |
Flying Bee | Pwsm50 | 3,711 Kb |
Login-ng-modal | Heedoo | 3,566 Kb |
Pure CSS Dial | Lukewatts | 3,018 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!