Wikipedia Viewer

What is a wikipedia viewer How do you make a wikipedia viewer? This script and codes were developed by Jimmy Lin on 14 February 2022, Monday.

How do I make an wikipedia viewer?
  1. Wikipedia Viewer Previews
  2. Wikipedia Viewer HTML Codes
  3. Wikipedia Viewer CSS Codes
  4. Wikipedia Viewer JS Codes
Wikipedia Viewer Previews

Wikipedia Viewer HTML Codes

<!DOCTYPE html>
<html >
  <meta charset="UTF-8">
  <title>Wikipedia Viewer</title>
  <link rel='stylesheet prefetch' href=''>

      <link rel="stylesheet" href="css/style.css">


  <link href="" rel="stylesheet">

<div class="container text-center">
   <h1> Wikipedia Viewer </h1>
   <h4>Free Code Camp Project</h4>
      <a href = "" target="blank">
       <img src= >
      <input class="from-control" id="searchTerm">
      <button id="search" type="button" class="btn btn-primary"> Submit </button>
      <ul id = "output">
  <script src=''></script>

    <script src="js/index.js"></script>


Wikipedia Viewer CSS Codes

h1, h4 {
  font-family: "Lobster", Times New Roman;

Wikipedia Viewer JS Codes

  //When search is clicked run code
    // Gets search input
    var searchTerm= $('#searchTerm').val();
    //API url with searchTerm 
      var url = ""+ searchTerm + "&format=json&callback=?";
      dataType: "json",
      success: function(data){
       // get heading console.log(data[3][0]);
       // get description console.log(data[2][0]);
       // get link console.log(data[1][0]);
      for (var i=0; i<data[1].length; i++){
        $('#output').prepend("<li><a href= "+data[3][i]+">"+data[1][i] +"</a><p>" +data[2][i]+"</p></li>");      
      error: function(errorMessage){
Do you want hide your ip address?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.