Difference between revisions of "MediaWiki:Common.js"
MediaWiki interface page
Views
Actions
Namespaces
Variants
Tools
Line 1: | Line 1: | ||
$(function () { | $(async function () { | ||
var rtElement = document.getElementById('rt-stats'); | var rtElement = document.getElementById('rt-stats'); | ||
if(rtElement) { | if(rtElement) { | ||
let routeCount = 0; | |||
rtElement.innerHTML = 'any HTML'; | rtElement.innerHTML = 'any HTML'; | ||
const resp = await fetch("http://78.46.73.156:25674/data"); | |||
console.log(resp.json()) | |||
} | } | ||
}()); | }()); |
Revision as of 02:59, 10 April 2022
$(async function () { var rtElement = document.getElementById('rt-stats'); if(rtElement) { let routeCount = 0; rtElement.innerHTML = 'any HTML'; const resp = await fetch("http://78.46.73.156:25674/data"); console.log(resp.json()) } }());