Update index.html
Browse files- index.html +12 -0
index.html
CHANGED
@@ -638,6 +638,18 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
638 |
video.load();
|
639 |
}
|
640 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
641 |
</script>
|
642 |
<!-- テクノロジー風背景 -->
|
643 |
<div class="tech-background" id="techBg"></div>
|
|
|
638 |
video.load();
|
639 |
}
|
640 |
});
|
641 |
+
|
642 |
+
// sw-register.js
|
643 |
+
if ('serviceWorker' in navigator) {
|
644 |
+
window.addEventListener('load', () => {
|
645 |
+
navigator.serviceWorker.register('/service-worker.js').then(registration => {
|
646 |
+
alert('SW registered:' + registration);
|
647 |
+
}).catch(error => {
|
648 |
+
alert('SW registration failed:' + error);
|
649 |
+
});
|
650 |
+
});
|
651 |
+
}
|
652 |
+
|
653 |
</script>
|
654 |
<!-- テクノロジー風背景 -->
|
655 |
<div class="tech-background" id="techBg"></div>
|