diff --git a/advancement/index.html b/advancement/index.html new file mode 100644 index 00000000..e003a009 --- /dev/null +++ b/advancement/index.html @@ -0,0 +1,31 @@ + + + + + + + + + + + Advancement Generator Minecraft 1.15 + + + + + + + + + + + + + + + diff --git a/custom.css b/css/custom.css similarity index 100% rename from custom.css rename to css/custom.css diff --git a/i18n.js b/js/i18n.js similarity index 91% rename from i18n.js rename to js/i18n.js index faee506f..97ac84b1 100644 --- a/i18n.js +++ b/js/i18n.js @@ -10,7 +10,7 @@ i18next .use(i18nextBrowserLanguageDetector) .use(i18nextXHRBackend) .init({ - backend: { loadPath: 'locales/{{lng}}.json' }, + backend: { loadPath: '../locales/{{lng}}.json' }, fallbackLng: 'en', whitelist: lngs.map(v => v[0]), keySeparator: false diff --git a/model.js b/js/model.js similarity index 99% rename from model.js rename to js/model.js index 991998cd..422c6259 100644 --- a/model.js +++ b/js/model.js @@ -219,10 +219,7 @@ function addToSet(el, array) { function removeFromSet(el, array) { let parent = getParent(el); - console.warn(parent[array]); - console.log($(el).attr('value')); let index = parent[array].indexOf($(el).attr('value')); - console.log(parent, index); if (index > -1) { parent[array].splice(index, 1); invalidated(); diff --git a/view.js b/js/view.js similarity index 99% rename from view.js rename to js/view.js index 298af75d..fbada69a 100644 --- a/view.js +++ b/js/view.js @@ -15,7 +15,7 @@ generators[generator].forEach(v => { changeVersion('1.15'); function changeVersion(version) { - $.getJSON('schemas/' + version + '.json', json => { + $.getJSON('../schemas/' + version + '.json', json => { if (json.root) { structure = json.root; } else if (json.roots) { diff --git a/loot-table/index.html b/loot-table/index.html new file mode 100644 index 00000000..cfe77f8b --- /dev/null +++ b/loot-table/index.html @@ -0,0 +1,31 @@ + + + + + + + + + + + Loot Table Generator Minecraft 1.15 + + + + + + + + + + + + + + + diff --git a/predicate/index.html b/predicate/index.html new file mode 100644 index 00000000..e1c6f4d6 --- /dev/null +++ b/predicate/index.html @@ -0,0 +1,31 @@ + + + + + + + + + + + Predicate Generator Minecraft 1.15 + + + + + + + + + + + + + + +