Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
825 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">
        <div class="event_name">
            <h5><b>${event.Machine}</b><h5>${event.InstanceId}
        </div>
        <div class="event_detail">
            <div class="si_detail_one">
                <div class="event_source"><div class="si_icon">SRC</div>${event.Source}</div>
                <div class="event_time"><div class="si_icon">TME</div>${event.TimeGenerated}</div>
            </div>

        </div>
    </div>





        


        `;


    }

placeholder.innerHTML = eventsout;
})