Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
686 B
4
Indexable
Never


fetch("../json/overview.json")
.then(function(response){
    return response.json();
})
.then(function(events){
    let placeholder = document.querySelector("#event-output");
    let eventsout = "";

    for(let event of events){
        eventsout +=  `
    <div class="event_si" id="event_si">
        <div class="event_Machine" id="event_Machine">${event.Machine}</div>
        ${event.Source}
        <div class="event_Message" id="event_Message">${event.Message}</div>
        <div class="event_TimeGenerated" id="event_TimeGenerated">${event.TimeGenerated}</div>
    </div>




        


        `;

    }

placeholder.innerHTML = eventsout;
})