Jump to content

MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3:
function fetch_worldguard_data() {
fetch("https://betadynmap.puucraft.net/standalone/regions_world.json")
.then(function(response) => {
if (response.ok) {
return response.json()
Line 10:
}
})
.then(function(data =>) {
let div_for_worldguard_list = document.getElementById('load_fetched_json_worldguard_data')
let list = document.createElement('ul')
Line 21:
}
})
.catch(function (error) => {console.error("FETCH ERROR:", error)})
}
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.