The District of Joban Difference between revisions of "MediaWiki:Common.js"

Difference between revisions of "MediaWiki:Common.js"

MediaWiki interface page
Line 1: Line 1:
$(async function () {
$(function () {
var rtElement = document.getElementById('rt-stats');
var rtElement = document.getElementById('rt-stats');
     if(rtElement) {
     if(rtElement) {
         let routeCount = 0;
         let routeCount = 0;
         rtElement.innerHTML = 'any HTML';
         rtElement.innerHTML = 'any HTML';
         const resp = await fetch("http://78.46.73.156:25674/data");
         const resp = fetch("http://78.46.73.156:25674/data");
         console.log(resp.json())
         console.log(resp)
     }
     }
}());
}());

Revision as of 02:59, 10 April 2022

$(function () {
	var rtElement = document.getElementById('rt-stats');
    if(rtElement) {
        let routeCount = 0;
        rtElement.innerHTML = 'any HTML';
        const resp = fetch("http://78.46.73.156:25674/data");
        console.log(resp)
    }
}());