diff --git a/components.html b/components.html
new file mode 100644
index 00000000..a40bad4f
--- /dev/null
+++ b/components.html
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/js/model.js b/js/model.js
index af0da7a4..3895a394 100644
--- a/js/model.js
+++ b/js/model.js
@@ -28,7 +28,7 @@ function loadGenerator(generator) {
versions.forEach(v => {
$('#versionList').append(`${v}`)
});
- const promises = [initLng(), loadVersion(generator, '1.15')];
+ const promises = [initShared(), initLng(), loadVersion(generator, '1.15')];
Promise.all(promises).then(() => {
invalidated()
});
@@ -48,6 +48,13 @@ function loadVersion(generator, version) {
});
}
+async function initShared() {
+ const components = await fetch('../components.html').then(r => r.text());
+ const shared = await fetch('../shared.html').then(r => r.text());
+ $('body').append(components);
+ $('div.container').append(shared);
+}
+
$("#source").val('');
$('#luckBased').prop('checked', false);
$('#tableType').val("minecraft:generic");
diff --git a/shared.html b/shared.html
new file mode 100644
index 00000000..2c721169
--- /dev/null
+++ b/shared.html
@@ -0,0 +1,47 @@
+