This commit is contained in:
Oliver
2025-07-28 08:24:37 -03:00
parent 95771e4f54
commit 5f419d580f
2 changed files with 80 additions and 5 deletions

View File

@@ -0,0 +1,80 @@
/* Headline above the wizard */
.wizard-headline {
text-align: center;
font-size: 24px;
font-weight: bold;
padding: 20px 0;
background-color: #f8f9f9;
color: #2c3e50;
border-bottom: 2px solid #ddd;
}
/* Main wizard container */
.wizard {
display: flex;
justify-content: space-between;
list-style: none;
padding: 0;
margin: 0;
width: 100%;
background-color: #e0e0e0;
}
/* Each step box */
.wizard li {
flex: 1;
display: flex;
flex-direction: column;
border-right: 2px solid #fff;
color: white;
box-sizing: border-box;
}
.wizard li:last-child {
border-right: none;
}
/* Header inside each box (icon + label) */
.wizard .header {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
padding: 10px;
font-weight: bold;
font-size: 16px;
text-align: center;
}
/* Detail text area inside the box */
.wizard .text {
padding: 20px 10px;
text-align: center;
font-size: 14px;
flex-grow: 1;
}
/* DARK GREY: Open */
.wizard li.open {
background-color: #7f8c8d;
}
.wizard li.open .header {
background-color: #5d6d7e;
}
/* DARK GREEN: Done */
.wizard li.done {
background-color: #1e8449;
}
.wizard li.done .header {
background-color: #145a32;
}
/* Icon style */
.wizard i {
font-size: 18px;
}

View File

@@ -1,10 +1,5 @@
document.addEventListener('DOMContentLoaded', async () => {
try {
const id = window.location.hostname || "localhost";
console.log("Detected domain ID:", id);
const configUrl = `https://od8n.com/widget/custom/${id}.json`;
console.log(configUrl);
const response = await fetch(configUrl);
if (!response.ok) throw new Error(`Config not found at ${configUrl}`);