mirror of
https://github.com/misode/misode.github.io.git
synced 2026-05-01 21:23:12 +00:00
Add version selection
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
let structure;
|
||||
let components;
|
||||
|
||||
$.getJSON('structure.json', json => {
|
||||
structure = json.root;
|
||||
components = json.components;
|
||||
invalidated();
|
||||
});
|
||||
changeVersion('1.14');
|
||||
function changeVersion(version) {
|
||||
$.getJSON('schemas/' + version + '.json', json => {
|
||||
$('#versionLabel').text(version);
|
||||
structure = json.root;
|
||||
components = json.components;
|
||||
invalidated();
|
||||
});
|
||||
}
|
||||
|
||||
function invalidated() {
|
||||
if (structure) {
|
||||
|
||||
Reference in New Issue
Block a user