Random Quote Machine
How do I make an random quote machine?
FreeCodeCamp project. What is a random quote machine? How do you make a random quote machine? This script and codes were developed by Kevin Bäckstäde on 24 November 2022, Thursday.
Random Quote Machine - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Random Quote Machine</title> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0", minimum-scale=1, user-scalable=yes" />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Pacifico|Indie+Flower" rel="stylesheet"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="page"> <div class="tablecell"> <div id="frame"> <h1>Inspirational Quotes:</h1> <div class="underline"><p id="quote"></p></div> <div class="underline"></div> <div class="underline"></div> <div class="underline"></div> <div id="author-box"> <p id="author">-The author</p> </div> <div id="medias"> </div> </div> </div>
</div> <script src="js/index.js"></script>
</body>
</html>
Random Quote Machine - Script Codes CSS Codes
* { padding: 0; margin: 0;
}
div#medias { width: 80%; height: 20%; border-top: 1px solid grey; border-bottom: 1px solid grey; margin: auto; margin-top: 3%;
}
div#author-box { border: 2px solid red; height: ; width: 70%; margin: auto; margin-top: .8%;
}
p#author { text-align: right; color: rgba(0, 0, 0, .5);
}
p#quote { font-family: 'Indie Flower', cursive; height: 100%;
}
h1 { font-family: 'Pacifico', cursive; text-align: center; padding-top: 2%;
}
body { width: 100%; height: 100%; background-color: #000;
}
div#page { overflow: hidden; margin: auto;
}
div.tablecell { width: inherit; height: inherit; display: table-cell; vertical-align: middle;
}
div#frame { background-color: #fff; border-radius: 15px; margin: 0 auto;
}
div.underline { border-bottom: 1px solid black; width: 70%; margin: auto;
}
Random Quote Machine - Script Codes JS Codes
function relative(num) { return num * ($(window).width() / 1920); } $(document).ready(function() { $("#page").css({"width": $(window).width()-10, "height": $(window).height()-10}); $("#frame").css({"width": ($(window).width()-10) * 0.65, "height": ($(window).width()-10) * (0.65 / 2.1)}); $(".underline").css({"height": (($(window).width()-10) * (0.65 / 2.1))/10 }); $("h1").css({"font-size": relative(3) + "em"}); $("#quote").css({"font-size": relative(3) + "em", "padding-top": relative(11) + "px", "line-height": relative(62) + "px"}); $("#author").css({"font-size": relative(1.3) + "em"});
});
$("#quote").html("this is the quote I am gonna use for right now so don't blame me. and aiwadiajdajdsaijdiasjdiasjdiajsidjasidjiassssssssssssssssssssss ssssssssssssssssssss");
Developer | Kevin Bäckstäde |
Username | Kevsterking |
Uploaded | November 24, 2022 |
Rating | 3 |
Size | 2,629 Kb |
Views | 8,096 |
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 |
Tiger Woods Tribute | 5,557 Kb |
Personal Portfolio | 4,516 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 |
Add This API | ThatGuySam | 2,848 Kb |
Improve | Gavra | 1,652 Kb |
Chuck Norris Background | Manz | 1,967 Kb |
Rotate Demo | Agelber | 3,061 Kb |
Brent Burns Tribute Page | Nevada48 | 2,569 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
Lunar eclipse | Ademilter | 2,056 Kb |
Nav Test -- cats 1 | Payls | 4,735 Kb |
Hoi hoi | JohnTheCat | 7,248 Kb |
Update CSS Variables with JS | Wesbos | 2,335 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!