+
diff --git a/_projects/helmet_lights.md b/_projects/helmet_lights.md
index 6e4e3a6..43b8b96 100644
--- a/_projects/helmet_lights.md
+++ b/_projects/helmet_lights.md
@@ -10,4 +10,24 @@ img:
class: invertable
social_image: /assets/projects/helmet_lights/thumbnail.png
----
\ No newline at end of file
+models: /assets/projects/helmet_lights/models
+
+head: |
+
+
+
+
+---
+
+
+
+
Loading model...
+
\ No newline at end of file
diff --git a/_sass/main.scss b/_sass/main.scss
index 17c8087..a8f8cb1 100644
--- a/_sass/main.scss
+++ b/_sass/main.scss
@@ -115,6 +115,27 @@ figure > img, figure > svg, figure > canvas {
border-radius: 10px;
}
+// For fallback images inside custom outline-model-viewer elements
+outline-model-viewer, .outline-model-poster {
+ width: 100%;
+ height: 300px;
+}
+
+outline-model-viewer {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+// If the browser doesn't support web components, hide anything with has-wc class
+body.has-wc .no-wc {
+ display: none;
+}
+// If the browser does support web components, hide anything with no-wc class
+body:not(.has-wc) .has-wc {
+ display: none;
+}
+
@media
only screen and (max-width: $horizontal_breakpoint),
only screen and (max-height: $vertical_breakpoint)
diff --git a/assets/js/index.js b/assets/js/index.js
index cf35068..8ad0d30 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -1,5 +1,3 @@
-
-
function toggle_summary_by_class(element, topic) {
details = document.querySelectorAll(`details.${topic}`);
@@ -10,6 +8,11 @@ function toggle_summary_by_class(element, topic) {
element.textContent = "Expand all"
details.forEach(e => e.open = false);
}
-
-
+
+}
+
+// This signals to css that we have support for web components
+// Allows us to set elements to act as fallbacks when js/web components are disabled.
+if (window.customElements) {
+ document.querySelector('body').classList.add('has-wc');
}
\ No newline at end of file