Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The HTML for the workaround of the FreeCodeCamp random quotes app
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<title>Example</title>
<style>
body {
background-color: #333 !important;
}
</style>
</head>
<body>
<div class="container mt-5">
<div class="row">
<div class="card mt-5 mx-auto" style="width: 32rem;">
<div class="card-header justify-content-between" style="display: flex;">
<small class="text-left">Random Quotes</small>
<i id="tweet-icon" class="text-right fab fa-twitter fa-lg"></i>
</div>
<div class="card-body">
<blockquote class="blockquote mb-0">
<p id="quote"></p>
<a id="quote-button" href="#" class="mt-3 mb-3 btn btn-dark">Next</a>
</blockquote>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<!-- Local javascript -->
<script src="b.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment