MediaWiki:Common.js: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 11: Line 11:
})
})
.then(function(data) {
.then(function(data) {
let div_for_worldguard_list = document.getElementById('load_fetched_json_worldguard_data')
let div_for_worldguard_list = document.getElementById('load_fetched_json_worldguard_data');
let list = document.createElement('ul')
let list = document.createElement('ul');
}
}
for (worldguardName in data) {
for (worldguardName in data) {
let li = document.createElement('li')
let li = document.createElement('li');
li.innerHTML = worldguardName
li.innerHTML = worldguardName;
list.appendChild(li)
list.appendChild(li);
div_for_worldguard_list.appendChild(list)
div_for_worldguard_list.appendChild(list);
}
}
})
})