@@ -237,79 +48,8 @@
-
+
+
diff --git a/article-guidelines.html b/article-guidelines.html
index ec13ee1..257f26e 100644
--- a/article-guidelines.html
+++ b/article-guidelines.html
@@ -1,201 +1,12 @@
-
-
+
-
-
+
DP Trade — Bottle Card Variants
-
-
-
-
-
-
-
-
-
@@ -303,79 +114,8 @@
-
+
+
diff --git a/assets/js/components.js b/assets/js/components.js
new file mode 100644
index 0000000..5d8086d
--- /dev/null
+++ b/assets/js/components.js
@@ -0,0 +1,13 @@
+(function () {
+ async function load(id, url) {
+ var el = document.getElementById(id);
+ if (!el) return;
+ var r = await fetch(url);
+ if (!r.ok) return;
+ el.outerHTML = await r.text();
+ }
+ document.addEventListener('DOMContentLoaded', function () {
+ load('site-header', 'components/menu.html');
+ load('site-footer', 'components/footer.html');
+ });
+})();
diff --git a/bottle-cards.html b/bottle-cards.html
index 9d8dbb7..b29536d 100644
--- a/bottle-cards.html
+++ b/bottle-cards.html
@@ -1,201 +1,12 @@
-
-
+
-
-
+
+
diff --git a/catalog.html b/catalog.html
index da88156..fea282e 100644
--- a/catalog.html
+++ b/catalog.html
@@ -1,201 +1,12 @@
-
-
+
DP Trade — Catalog
-
DP Trade — Контакты / Auth Gate
-
-
-
-
-
-
-
-
-
@@ -423,79 +234,8 @@
-
+
-
-
+
-
+
+
diff --git a/components/head.js b/components/head.js
new file mode 100644
index 0000000..ed3001c
--- /dev/null
+++ b/components/head.js
@@ -0,0 +1,17 @@
+(function () {
+ var css = document.currentScript.getAttribute('data-css') || 'css/site.css';
+ document.currentScript.insertAdjacentHTML('beforebegin',
+ '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '
-
-
-
-
-
-
-
-
@@ -271,79 +82,8 @@
-
-
+
-
-
-
-
-
-
-
-
@@ -252,79 +63,8 @@
-
+
+