Quote Generator

Developer
Size
2,355 Kb
Views
32,384

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 Previews

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(); });
});
Quote Generator - Script Codes
Quote Generator - Script Codes
Home Page Home
Developer Ujjwal Sharma
Username ryzokuken
Uploaded August 25, 2022
Rating 3
Size 2,355 Kb
Views 32,384
Do you need developer help for Quote Generator?

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!

Ujjwal Sharma (ryzokuken) 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!