Random Quote Machine

Size
2,629 Kb
Views
8,096

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 Previews

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");
Random Quote Machine - Script Codes
Random Quote Machine - Script Codes
Home Page Home
Developer Kevin Bäckstäde
Username Kevsterking
Uploaded November 24, 2022
Rating 3
Size 2,629 Kb
Views 8,096
Do you need developer help for Random Quote Machine?

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!

Kevin Bäckstäde (Kevsterking) Script Codes
Create amazing love letters 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!