My Random Quote Machine
How do I make an my random quote machine?
This is my third project on FCC, my Random Quote Machine.. What is a my random quote machine? How do you make a my random quote machine? This script and codes were developed by Jerry Byron on 11 December 2022, Sunday.
My Random Quote Machine - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>My Random Quote Machine</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container-fluid text-center"> <h1><strong>My Random Quote Machine</strong></div> <h3 class="text-center"><strong>Quotes About Inspirational</strong></h3>
<div class="quotes"> <spam class="quote">I have not failed. I've just found 10,000 ways that won't work.</spam> <spam class="author">-Thomas A. Edison</spam>
</div> </br> <div class="text-center"> <buttom class="btn btn-default" type="submit">New Quote</buttom>
</div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
My Random Quote Machine - Script Codes CSS Codes
body{
background:#87CEFA;
}
h1{
font-family:times roman;
padding:20px; font-size:25px;
}
h3{
font-family:times roman; font-size:20px;
font-style:italic; margin:5px;
}
.quotes{ background-color:#F0F8FF; width:75%; margin-right:auto; margin-left:auto; border-color:black; border-style:solid; border-radius:5px; padding:10px; padding-top:10px; height:auto;
}
.quotes{
font-size:20px;
font-family:times roman;
}
.author{
font-style:italic;
font-size:18px;
}
My Random Quote Machine - Script Codes JS Codes
$(document).ready(function(){
function getQuote(){ var quotes = ["Be the change that you wish to see in the world.", "No one can make you feel inferior without your consent.", "Live as if you were to die tomorrow. Learn as if you were to live forever.", "Without music, life would be a mistake.", "Yesterday is history, tomorrow is a mystery, today is a gift of God, which is why we call it the present."];
var author=[".Mahatma Gandhi", ".Eleanor Roosevelt", ".Mahatma Gandhi", ".Friedrich Nietzsche", ".Bil Keane"];
var randomNum = Math.floor((Math.random()*quotes.length)); var randomQuote = quotes[randomNum]; var randomAuthor = author[randomNum]; $(".quote").text(randomQuote); $(".author").text(randomAuthor);
}
$(".btn").on("click", function(){
getQuote();
});
});
Developer | Jerry Byron |
Username | tomcolby |
Uploaded | December 11, 2022 |
Rating | 3 |
Size | 2,437 Kb |
Views | 18,216 |
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 |
Wikipedia Search | 1,867 Kb |
Show the Local Weather | 2,873 Kb |
A Pen by Jerry Byron | 1,290 Kb |
My second project, My Portfolio webpage. | 3,313 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 |
Working around OS X Dynamic Scrollbars | Jrjenk | 2,279 Kb |
CSS3 Butterfly | Timohausmann | 3,430 Kb |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
No Vacancy 404 CSS Only | Sethkontny | 0 Kb |
CSS Social Media Icon | TychoBlender | 3,871 Kb |
Webkit decolorize | Fivera | 1,675 Kb |
Fun animations with CSS3 | Minimalmonkey | 2,360 Kb |
Funny menu | AxeLVaisper | 4,671 Kb |
A Pen by Tosh | Panev | 2,586 Kb |
This in constructor context | _shree33 | 1,718 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!