-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools.js
More file actions
94 lines (91 loc) · 2.87 KB
/
tools.js
File metadata and controls
94 lines (91 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Tool registry — add new tools here, they auto-appear on the grid
const TOOLS = [
{
id: "error-decoder",
icon: "🔴",
name: "Error Decoder",
desc: "Paste any Windows error or crash message. Get back what it means and exactly what to do.",
badge: "free",
status: "live",
},
{
id: "quote-builder",
icon: "📄",
name: "Quote Builder",
desc: "Describe a job in plain English. Get a professional quote ready to send to a client.",
badge: "free",
status: "live",
},
{
id: "bill-decoder",
icon: "🧾",
name: "Bill Decoder",
desc: "Paste your phone, internet, or cable bill. Find out what you're paying for and what to cut.",
badge: "free",
status: "live",
},
{
id: "lease-reader",
icon: "📋",
name: "Lease Reader",
desc: "Paste any lease or contract. Get the 5 things you need to know before signing.",
badge: "free",
status: "live",
},
{
id: "medical-bill",
icon: "🏥",
name: "Medical Bill Decoder",
desc: "Paste your hospital bill or insurance statement. Find out what each charge means and what to dispute.",
badge: "free",
status: "live",
},
{
id: "error-decoder-es",
icon: "🔴🇲🇽",
name: "Decodificador de Errores",
desc: "Pega tu mensaje de error de Windows. Te explicamos qué significa y qué hacer — en español.",
badge: "free",
status: "live",
},
{
id: "eob-decoder",
icon: "📋",
name: "Insurance EOB Decoder",
desc: "Paste your Explanation of Benefits. Find out what you actually owe — and what to dispute.",
badge: "free",
status: "live",
},
{
id: "notice-decoder",
icon: "📬",
name: "Notice & Warning Decoder",
desc: "Paste any IRS letter, utility shutoff, or government notice. Get what it means and what to do by when.",
badge: "free",
status: "live",
},
{
id: "demand-letter",
icon: "✉️",
name: "Demand Letter Writer",
desc: "Describe your dispute in plain English. Get a professional demand letter ready to send — no lawyer needed.",
badge: "free",
status: "live",
},
];
function renderGrid() {
const grid = document.getElementById("tool-grid");
if (!grid) return;
grid.innerHTML = TOOLS.map(t => {
const href = t.status === "coming" ? "#" : `tools/${t.id}.html`;
const onclick = t.status === "coming" ? `onclick="return false"` : "";
return `
<a class="tool-card" href="${href}" ${onclick} title="${t.status === "coming" ? "Coming soon" : ""}">
<span class="icon">${t.icon}</span>
<span class="name">${t.name}</span>
<span class="desc">${t.desc}</span>
<span class="badge ${t.badge}">${t.badge === "coming" ? "coming soon" : t.badge}</span>
</a>`;
}).join("");
}
renderGrid();