Random Quote Machine
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 Codoer on 07 December 2022, Wednesday.
Random Quote Machine - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Random Quote Machine</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container-fluid " > <div class="row text-center general"> <div class="quote-area" id="quo"> <q class="quote-text">quote text</q> <h4 class="quote-author">author</h4>
<a href="#" target="_blank" class="btn btn-info pull-left" id="quote-tweet"></i> Tweet</a> <a class="btn btn-info pull-right" href="#" id="refresh" onclick="getQuote()">New Quote</a> </div> </div> </div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Random Quote Machine - Script Codes CSS Codes
body { background: url(http://www.wallpaperdx.com/images/sea-coast-and-lighthouse-sky-full-hd-nature-wallpaper.jpg)
no-repeat center center fixed; color: black;
background-size: cover;
}
.quote-area{
width: 750px;
/*background-color: #e5f4f3;*/
/*background-color:rgba(0,25,0,0.2);*/
margin-top: 130px;
margin-left: 90px;
padding-top: 10px;
padding-left: 30px;
padding-right: 30px;
padding-bottom: 60px;
border-radius: 30px;
color:white;
}
.quote-text{ font-size: 30px;
}
.quote-author{ text-align: right; padding-right:30px; font-style: italic; font-weight: 200;
}
Random Quote Machine - Script Codes JS Codes
function changeColor(){ var random = function() { return Math.floor(Math.random() * 256); } var color="rgba("+random()+","+random()+","+random()+",0.3)"; $(".quote-area").css("background-color", color);
}
function getQuote(){
$.getJSON("https://api.forismatic.com/api/1.0/?method=getQuote&key=457653&format=jsonp&lang=en&jsonp=?", function(data) { $(".quote-text").text(data.quoteText); if(data.quoteAuthor===""){$(".quote-author").text("Unknown"); $("#quote-tweet").attr("href", "https://twitter.com/share?text="+"\""+data.quoteText+"\""+" Author: Unkown."); } else { $(".quote-author").text(data.quoteAuthor);
$("#quote-tweet").attr("href", "https://twitter.com/share?text="+"\""+data.quoteText+"\""+" Author: "+data.quoteAuthor+".");
}
changeColor();
})
}
getQuote();
Developer | Codoer |
Username | c0d0er |
Uploaded | December 07, 2022 |
Rating | 3 |
Size | 2,411 Kb |
Views | 10,120 |
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 |
Pomodoro positions | 2,182 Kb |
Jd wiki | 3,082 Kb |
Perseverance Portfolio | 2,756 Kb |
Twitch TV App | 3,530 Kb |
Pomodoro Clock | 3,279 Kb |
Visualize Data with a Heat Map | 6,445 Kb |
Visualize US GDP Data with a Bar Chart | 7,811 Kb |
React Markdown Previewer | 3,190 Kb |
Game of Life React | 6,561 Kb |
Calculator | 3,530 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 |
CSS Social Media Icon | TychoBlender | 3,871 Kb |
STIKHOI | Denmch | 7,122 Kb |
Replace url via jquery | Serluk | 1,429 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
Angular Route | Arun_v606 | 1,837 Kb |
SVG email test v2.0 | M_J_Robbins | 2,090 Kb |
Modal Dialog | Gigaleet | 2,251 Kb |
Single element checkbox | Ivijaygupta | 1,996 Kb |
Price table | Serluk | 5,928 Kb |
Fun animations with CSS3 | Minimalmonkey | 2,360 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!