Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This is the HTML file for my Wikipedia Viewer from FreeCodeCamp
<!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://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
crossorigin="anonymous">
<title>The Official Shortcutpedia!</title>
<style>
body {
background: #076585;
/* fallback for old browsers */
background: -webkit-linear-gradient(to right, #fff, #076585);
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #fff, #076585);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
color: #f3f3f3;
}
</style>
</head>
<body>
<div class="container mt-5">
<div class="row">
<div class="jumbotron text-center mt-5 mx-auto" style=" background-color: transparent">
<div class="container">
<h1 class="display-4">Shortcutpedia</h1>
<p class="lead">Search Wikipedia articles...faster than ever.</p>
<div class="input-group mb-3">
<input id="search" type="text" class="form-control" aria-label="Default" placeholder="Search & press Enter" aria-describedby="inputGroup-sizing-default">
</div>
<a id="random" class="mt-3 btn btn-info" href="#" role="button"> Click for a random article</a>
</div>
</div>
</div>
</div>
<div class="container mt-2">
<div class="row">
<div id="results" class="list-group mx-auto">
</div>
</div>
</div>
<!-- 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.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T"
crossorigin="anonymous"></script>
<!-- Optional JavaScript -->
<script src="wiki.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment