<!DOCTYPE html>
        <title>My wiki-project</title>
        <link rel="stylesheet" href="style.css" type="text/css">
        <div class="title-bar">
            <h1>Today In History</h1>
        <div class="wrap">
            <div class="root-div">
                <div class="item">
                    <h4>1854 - 125years ago</h4>
                    <h1>Hlelsdf sdfsdf sdfsd fsdfs dfsdfsdfsd sdfsd fsdfsdf dsfsdfsdf dsfsdfsdf sdfsdf</h1>
    <script src="app.js"></script>
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    transition: 0.4s;

    padding-top: 120px;
    background-color: burlywood;

    display: flex;
    justify-content: center;
    width: 100%;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.534);
    backdrop-filter: blur(10px); /*Less Browser Suppor*/

    width: 700px;
    padding: 30px;
    min-height: 100vh;
    margin-top: 20px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 4px 12px 40px 6px rgb(0 0 0 / 9%);
    margin-bottom: 20px;
    cursor: pointer;

    transform: scale(1.1) rotate(5deg);

.item h1{
    font-size: 20px;
    line-height: 25px;
    color: #333333;

.item h4{
    font-size: 15px;
    margin-bottom: 15px;
    color: #2575fc;

    text-decoration: none;
var today = new Date();//New date class
var year = today.getFullYear(); //Get fill year
var month = today.getMonth() + 1; //Get the month
var date = today.getDate();// Get the date
var api_type = "events"; //events | deaths | births
var root_div = document.querySelector(".root-div"); //Selecting the DOM
//Api url construction
var api = "https://cdn.jsdelivr.net/gh/harrify-apis/historyjs/" + api_type + "/" + month + "_" + date + ".json";

//Javascript fetch from json api
        response.json().then(function(json) {

            json = json[api_type];
            const list = Object.values(json).map(post => `

            <a href="${post.wikipedia[0].wikipedia}" target="_blank">
                <div class="item">
                    <h4>${post.year} - ${year - post.year} years ago</h4>

            var html = list.join("");
            root_div.innerHTML = html;
        //Mapping Json Response


External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.