feat: add dev AB toggle button (visible with ?dev=1)

This commit is contained in:
posimai 2026-04-01 09:07:53 +09:00
parent fad8f01ce3
commit b68f1e634c
2 changed files with 24 additions and 0 deletions

View File

@ -654,5 +654,17 @@
<script> <script>
if (window.lucide) lucide.createIcons(); if (window.lucide) lucide.createIcons();
</script> </script>
<!-- Dev toggle — visible only when ?dev=1 -->
<script>
(function(){
if(!location.search.includes('dev=1')) return;
const btn = document.createElement('a');
btn.href = '/?dev=1';
btn.textContent = '← Design A';
btn.style.cssText = 'position:fixed;bottom:20px;right:20px;z-index:9999;font-family:monospace;font-size:11px;padding:6px 12px;background:rgba(255,255,255,0.9);color:#2D9B6B;border:1px solid #2D9B6B;border-radius:6px;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,0.12);';
document.body.appendChild(btn);
})();
</script>
</body> </body>
</html> </html>

View File

@ -592,5 +592,17 @@ if ('serviceWorker' in navigator) {
} }
if (window.lucide) lucide.createIcons(); if (window.lucide) lucide.createIcons();
</script> </script>
<!-- Dev toggle — visible only when ?dev=1 -->
<script>
(function(){
if(!location.search.includes('dev=1')) return;
const btn = document.createElement('a');
btn.href = '/index-b.html?dev=1';
btn.textContent = 'Design B →';
btn.style.cssText = 'position:fixed;bottom:20px;right:20px;z-index:9999;font-family:monospace;font-size:11px;padding:6px 12px;background:rgba(0,0,0,0.7);color:#6EE7B7;border:1px solid #6EE7B7;border-radius:6px;text-decoration:none;backdrop-filter:blur(8px);';
document.body.appendChild(btn);
})();
</script>
</body> </body>
</html> </html>