Add 2 files
Browse files- README.md +7 -5
- index.html +406 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: seo-cost-calculator
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: purple
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,406 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>SEO Cost Calculator | Estimate Your Investment</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.gradient-bg {
|
11 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
12 |
+
}
|
13 |
+
.range-slider::-webkit-slider-thumb {
|
14 |
+
-webkit-appearance: none;
|
15 |
+
appearance: none;
|
16 |
+
width: 20px;
|
17 |
+
height: 20px;
|
18 |
+
border-radius: 50%;
|
19 |
+
background: #4f46e5;
|
20 |
+
cursor: pointer;
|
21 |
+
}
|
22 |
+
.range-slider::-moz-range-thumb {
|
23 |
+
width: 20px;
|
24 |
+
height: 20px;
|
25 |
+
border-radius: 50%;
|
26 |
+
background: #4f46e5;
|
27 |
+
cursor: pointer;
|
28 |
+
}
|
29 |
+
.tooltip {
|
30 |
+
position: relative;
|
31 |
+
display: inline-block;
|
32 |
+
}
|
33 |
+
.tooltip .tooltip-text {
|
34 |
+
visibility: hidden;
|
35 |
+
width: 200px;
|
36 |
+
background-color: #333;
|
37 |
+
color: #fff;
|
38 |
+
text-align: center;
|
39 |
+
border-radius: 6px;
|
40 |
+
padding: 5px;
|
41 |
+
position: absolute;
|
42 |
+
z-index: 1;
|
43 |
+
bottom: 125%;
|
44 |
+
left: 50%;
|
45 |
+
transform: translateX(-50%);
|
46 |
+
opacity: 0;
|
47 |
+
transition: opacity 0.3s;
|
48 |
+
}
|
49 |
+
.tooltip:hover .tooltip-text {
|
50 |
+
visibility: visible;
|
51 |
+
opacity: 1;
|
52 |
+
}
|
53 |
+
.result-card {
|
54 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
55 |
+
transition: all 0.3s ease;
|
56 |
+
}
|
57 |
+
.result-card:hover {
|
58 |
+
transform: translateY(-5px);
|
59 |
+
}
|
60 |
+
</style>
|
61 |
+
</head>
|
62 |
+
<body class="bg-gray-50 min-h-screen">
|
63 |
+
<div class="gradient-bg text-white py-12 px-4 sm:px-6 lg:px-8">
|
64 |
+
<div class="max-w-4xl mx-auto text-center">
|
65 |
+
<h1 class="text-4xl font-bold mb-4">SEO Cost Calculator</h1>
|
66 |
+
<p class="text-xl opacity-90">Estimate your investment for professional SEO services tailored to your business needs</p>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
71 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden">
|
72 |
+
<div class="p-6 sm:p-8">
|
73 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
74 |
+
<!-- Left Column - Inputs -->
|
75 |
+
<div>
|
76 |
+
<div class="mb-8">
|
77 |
+
<label for="businessSize" class="block text-lg font-medium text-gray-700 mb-2">
|
78 |
+
Business Size
|
79 |
+
<span class="tooltip ml-1">
|
80 |
+
<i class="fas fa-info-circle text-indigo-500"></i>
|
81 |
+
<span class="tooltip-text">Select the size that best represents your company</span>
|
82 |
+
</span>
|
83 |
+
</label>
|
84 |
+
<select id="businessSize" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition">
|
85 |
+
<option value="small">Small Business (1-10 employees)</option>
|
86 |
+
<option value="medium" selected>Medium Business (11-50 employees)</option>
|
87 |
+
<option value="large">Large Business (50+ employees)</option>
|
88 |
+
<option value="enterprise">Enterprise (500+ employees)</option>
|
89 |
+
</select>
|
90 |
+
</div>
|
91 |
+
|
92 |
+
<div class="mb-8">
|
93 |
+
<label for="industry" class="block text-lg font-medium text-gray-700 mb-2">
|
94 |
+
Industry
|
95 |
+
<span class="tooltip ml-1">
|
96 |
+
<i class="fas fa-info-circle text-indigo-500"></i>
|
97 |
+
<span class="tooltip-text">Your industry affects competition level and SEO complexity</span>
|
98 |
+
</span>
|
99 |
+
</label>
|
100 |
+
<select id="industry" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition">
|
101 |
+
<option value="ecommerce">E-commerce</option>
|
102 |
+
<option value="saas" selected>SaaS/Tech</option>
|
103 |
+
<option value="healthcare">Healthcare</option>
|
104 |
+
<option value="legal">Legal Services</option>
|
105 |
+
<option value="realestate">Real Estate</option>
|
106 |
+
<option value="education">Education</option>
|
107 |
+
<option value="hospitality">Hospitality</option>
|
108 |
+
<option value="other">Other</option>
|
109 |
+
</select>
|
110 |
+
</div>
|
111 |
+
|
112 |
+
<div class="mb-8">
|
113 |
+
<label for="competition" class="block text-lg font-medium text-gray-700 mb-2">
|
114 |
+
Competition Level
|
115 |
+
<span class="tooltip ml-1">
|
116 |
+
<i class="fas fa-info-circle text-indigo-500"></i>
|
117 |
+
<span class="tooltip-text">How competitive is your market online?</span>
|
118 |
+
</span>
|
119 |
+
</label>
|
120 |
+
<div class="flex items-center justify-between mb-2">
|
121 |
+
<span class="text-sm text-gray-500">Low</span>
|
122 |
+
<span class="text-sm text-gray-500">Medium</span>
|
123 |
+
<span class="text-sm text-gray-500">High</span>
|
124 |
+
<span class="text-sm text-gray-500">Very High</span>
|
125 |
+
</div>
|
126 |
+
<input type="range" id="competition" min="1" max="4" value="2" class="w-full range-slider h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
|
130 |
+
<!-- Right Column - Inputs -->
|
131 |
+
<div>
|
132 |
+
<div class="mb-8">
|
133 |
+
<label for="services" class="block text-lg font-medium text-gray-700 mb-2">
|
134 |
+
Services Needed
|
135 |
+
<span class="tooltip ml-1">
|
136 |
+
<i class="fas fa-info-circle text-indigo-500"></i>
|
137 |
+
<span class="tooltip-text">Select all SEO services you're interested in</span>
|
138 |
+
</span>
|
139 |
+
</label>
|
140 |
+
<div class="space-y-3">
|
141 |
+
<div class="flex items-center">
|
142 |
+
<input type="checkbox" id="onpage" class="h-5 w-5 text-indigo-600 rounded focus:ring-indigo-500" checked>
|
143 |
+
<label for="onpage" class="ml-2 text-gray-700">On-Page SEO</label>
|
144 |
+
</div>
|
145 |
+
<div class="flex items-center">
|
146 |
+
<input type="checkbox" id="technical" class="h-5 w-5 text-indigo-600 rounded focus:ring-indigo-500">
|
147 |
+
<label for="technical" class="ml-2 text-gray-700">Technical SEO</label>
|
148 |
+
</div>
|
149 |
+
<div class="flex items-center">
|
150 |
+
<input type="checkbox" id="content" class="h-5 w-5 text-indigo-600 rounded focus:ring-indigo-500" checked>
|
151 |
+
<label for="content" class="ml-2 text-gray-700">Content Strategy</label>
|
152 |
+
</div>
|
153 |
+
<div class="flex items-center">
|
154 |
+
<input type="checkbox" id="linkbuilding" class="h-5 w-5 text-indigo-600 rounded focus:ring-indigo-500">
|
155 |
+
<label for="linkbuilding" class="ml-2 text-gray-700">Link Building</label>
|
156 |
+
</div>
|
157 |
+
<div class="flex items-center">
|
158 |
+
<input type="checkbox" id="local" class="h-5 w-5 text-indigo-600 rounded focus:ring-indigo-500">
|
159 |
+
<label for="local" class="ml-2 text-gray-700">Local SEO</label>
|
160 |
+
</div>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
|
164 |
+
<div class="mb-8">
|
165 |
+
<label for="timeframe" class="block text-lg font-medium text-gray-700 mb-2">
|
166 |
+
Timeframe
|
167 |
+
<span class="tooltip ml-1">
|
168 |
+
<i class="fas fa-info-circle text-indigo-500"></i>
|
169 |
+
<span class="tooltip-text">How quickly do you want to see results?</span>
|
170 |
+
</span>
|
171 |
+
</label>
|
172 |
+
<select id="timeframe" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition">
|
173 |
+
<option value="6">6 months (standard)</option>
|
174 |
+
<option value="3">3 months (accelerated)</option>
|
175 |
+
<option value="12">12 months (comprehensive)</option>
|
176 |
+
</select>
|
177 |
+
</div>
|
178 |
+
|
179 |
+
<div class="mb-8">
|
180 |
+
<label for="websiteAge" class="block text-lg font-medium text-gray-700 mb-2">
|
181 |
+
Website Age
|
182 |
+
<span class="tooltip ml-1">
|
183 |
+
<i class="fas fa-info-circle text-indigo-500"></i>
|
184 |
+
<span class="tooltip-text">How long has your website been active?</span>
|
185 |
+
</span>
|
186 |
+
</label>
|
187 |
+
<select id="websiteAge" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition">
|
188 |
+
<option value="new">New (0-6 months)</option>
|
189 |
+
<option value="1year" selected>1-2 years</option>
|
190 |
+
<option value="3year">3-5 years</option>
|
191 |
+
<option value="5year">5+ years</option>
|
192 |
+
</select>
|
193 |
+
</div>
|
194 |
+
</div>
|
195 |
+
</div>
|
196 |
+
|
197 |
+
<!-- Calculate Button -->
|
198 |
+
<div class="mt-8 text-center">
|
199 |
+
<button id="calculateBtn" class="gradient-bg text-white px-8 py-4 rounded-lg font-bold text-lg hover:opacity-90 transition duration-300 transform hover:scale-105 shadow-lg">
|
200 |
+
Calculate SEO Cost
|
201 |
+
</button>
|
202 |
+
</div>
|
203 |
+
</div>
|
204 |
+
</div>
|
205 |
+
|
206 |
+
<!-- Results Section -->
|
207 |
+
<div id="results" class="hidden mt-12">
|
208 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6 text-center">Your SEO Investment Estimate</h2>
|
209 |
+
|
210 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
211 |
+
<!-- Monthly Cost -->
|
212 |
+
<div class="result-card bg-white p-6 rounded-xl border border-gray-100">
|
213 |
+
<div class="flex items-center justify-between mb-4">
|
214 |
+
<h3 class="text-lg font-semibold text-gray-700">Monthly Cost</h3>
|
215 |
+
<div class="bg-indigo-100 p-2 rounded-full">
|
216 |
+
<i class="fas fa-calendar-alt text-indigo-600"></i>
|
217 |
+
</div>
|
218 |
+
</div>
|
219 |
+
<div class="text-3xl font-bold text-indigo-600 mb-2" id="monthlyCost">$0</div>
|
220 |
+
<p class="text-gray-500">Recurring monthly investment for ongoing SEO services</p>
|
221 |
+
</div>
|
222 |
+
|
223 |
+
<!-- Initial Setup -->
|
224 |
+
<div class="result-card bg-white p-6 rounded-xl border border-gray-100">
|
225 |
+
<div class="flex items-center justify-between mb-4">
|
226 |
+
<h3 class="text-lg font-semibold text-gray-700">Initial Setup</h3>
|
227 |
+
<div class="bg-green-100 p-2 rounded-full">
|
228 |
+
<i class="fas fa-tools text-green-600"></i>
|
229 |
+
</div>
|
230 |
+
</div>
|
231 |
+
<div class="text-3xl font-bold text-green-600 mb-2" id="initialCost">$0</div>
|
232 |
+
<p class="text-gray-500">One-time cost for initial audit, strategy, and implementation</p>
|
233 |
+
</div>
|
234 |
+
|
235 |
+
<!-- Total 6-Month -->
|
236 |
+
<div class="result-card bg-white p-6 rounded-xl border border-gray-100">
|
237 |
+
<div class="flex items-center justify-between mb-4">
|
238 |
+
<h3 class="text-lg font-semibold text-gray-700">Total <span id="timeframeLabel">6-Month</span> Investment</h3>
|
239 |
+
<div class="bg-purple-100 p-2 rounded-full">
|
240 |
+
<i class="fas fa-chart-line text-purple-600"></i>
|
241 |
+
</div>
|
242 |
+
</div>
|
243 |
+
<div class="text-3xl font-bold text-purple-600 mb-2" id="totalCost">$0</div>
|
244 |
+
<p class="text-gray-500">Comprehensive investment for sustainable growth</p>
|
245 |
+
</div>
|
246 |
+
</div>
|
247 |
+
|
248 |
+
<div class="mt-8 bg-blue-50 p-6 rounded-xl">
|
249 |
+
<h3 class="text-lg font-semibold text-blue-800 mb-3">Recommended Strategy</h3>
|
250 |
+
<p class="text-gray-700 mb-4" id="strategyText">Based on your selections, we recommend a balanced approach focusing on...</p>
|
251 |
+
<div class="flex flex-wrap gap-2" id="recommendedServices">
|
252 |
+
<!-- Will be populated by JavaScript -->
|
253 |
+
</div>
|
254 |
+
</div>
|
255 |
+
|
256 |
+
<div class="mt-8 text-center">
|
257 |
+
<button class="gradient-bg text-white px-8 py-3 rounded-lg font-bold hover:opacity-90 transition duration-300">
|
258 |
+
Get Your Custom Proposal <i class="fas fa-arrow-right ml-2"></i>
|
259 |
+
</button>
|
260 |
+
</div>
|
261 |
+
</div>
|
262 |
+
</div>
|
263 |
+
|
264 |
+
<script>
|
265 |
+
document.addEventListener('DOMContentLoaded', function() {
|
266 |
+
const calculateBtn = document.getElementById('calculateBtn');
|
267 |
+
const resultsSection = document.getElementById('results');
|
268 |
+
|
269 |
+
calculateBtn.addEventListener('click', calculateSEOCost);
|
270 |
+
|
271 |
+
function calculateSEOCost() {
|
272 |
+
// Get input values
|
273 |
+
const businessSize = document.getElementById('businessSize').value;
|
274 |
+
const industry = document.getElementById('industry').value;
|
275 |
+
const competition = parseInt(document.getElementById('competition').value);
|
276 |
+
const timeframe = parseInt(document.getElementById('timeframe').value);
|
277 |
+
const websiteAge = document.getElementById('websiteAge').value;
|
278 |
+
|
279 |
+
// Check which services are selected
|
280 |
+
const services = {
|
281 |
+
onpage: document.getElementById('onpage').checked,
|
282 |
+
technical: document.getElementById('technical').checked,
|
283 |
+
content: document.getElementById('content').checked,
|
284 |
+
linkbuilding: document.getElementById('linkbuilding').checked,
|
285 |
+
local: document.getElementById('local').checked
|
286 |
+
};
|
287 |
+
|
288 |
+
// Base pricing based on business size
|
289 |
+
let baseMonthly = 0;
|
290 |
+
let baseInitial = 0;
|
291 |
+
|
292 |
+
switch(businessSize) {
|
293 |
+
case 'small':
|
294 |
+
baseMonthly = 500;
|
295 |
+
baseInitial = 1000;
|
296 |
+
break;
|
297 |
+
case 'medium':
|
298 |
+
baseMonthly = 1000;
|
299 |
+
baseInitial = 2000;
|
300 |
+
break;
|
301 |
+
case 'large':
|
302 |
+
baseMonthly = 2500;
|
303 |
+
baseInitial = 5000;
|
304 |
+
break;
|
305 |
+
case 'enterprise':
|
306 |
+
baseMonthly = 5000;
|
307 |
+
baseInitial = 10000;
|
308 |
+
break;
|
309 |
+
}
|
310 |
+
|
311 |
+
// Adjust for industry competition
|
312 |
+
const competitionMultiplier = 1 + (competition * 0.15);
|
313 |
+
baseMonthly *= competitionMultiplier;
|
314 |
+
baseInitial *= competitionMultiplier;
|
315 |
+
|
316 |
+
// Adjust for timeframe (shorter = more intensive work)
|
317 |
+
if (timeframe === 3) {
|
318 |
+
baseMonthly *= 1.5;
|
319 |
+
} else if (timeframe === 12) {
|
320 |
+
baseMonthly *= 0.9;
|
321 |
+
}
|
322 |
+
|
323 |
+
// Adjust for website age (newer sites need more work)
|
324 |
+
if (websiteAge === 'new') {
|
325 |
+
baseInitial *= 1.3;
|
326 |
+
} else if (websiteAge === '5year') {
|
327 |
+
baseInitial *= 0.9;
|
328 |
+
}
|
329 |
+
|
330 |
+
// Calculate service add-ons
|
331 |
+
let serviceAddons = 0;
|
332 |
+
let recommendedServices = [];
|
333 |
+
|
334 |
+
if (services.onpage) {
|
335 |
+
serviceAddons += baseMonthly * 0.2;
|
336 |
+
recommendedServices.push('On-Page Optimization');
|
337 |
+
}
|
338 |
+
if (services.technical) {
|
339 |
+
serviceAddons += baseMonthly * 0.3;
|
340 |
+
recommendedServices.push('Technical SEO');
|
341 |
+
}
|
342 |
+
if (services.content) {
|
343 |
+
serviceAddons += baseMonthly * 0.4;
|
344 |
+
recommendedServices.push('Content Strategy');
|
345 |
+
}
|
346 |
+
if (services.linkbuilding) {
|
347 |
+
serviceAddons += baseMonthly * 0.5;
|
348 |
+
recommendedServices.push('Link Building');
|
349 |
+
}
|
350 |
+
if (services.local) {
|
351 |
+
serviceAddons += baseMonthly * 0.25;
|
352 |
+
recommendedServices.push('Local SEO');
|
353 |
+
}
|
354 |
+
|
355 |
+
// If no services selected, default to onpage
|
356 |
+
if (recommendedServices.length === 0) {
|
357 |
+
recommendedServices.push('On-Page Optimization');
|
358 |
+
serviceAddons += baseMonthly * 0.2;
|
359 |
+
}
|
360 |
+
|
361 |
+
// Calculate final costs
|
362 |
+
const monthlyCost = Math.round(baseMonthly + serviceAddons);
|
363 |
+
const initialCost = Math.round(baseInitial);
|
364 |
+
const totalCost = Math.round(initialCost + (monthlyCost * timeframe));
|
365 |
+
|
366 |
+
// Update the UI with results
|
367 |
+
document.getElementById('monthlyCost').textContent = '$' + monthlyCost.toLocaleString();
|
368 |
+
document.getElementById('initialCost').textContent = '$' + initialCost.toLocaleString();
|
369 |
+
document.getElementById('totalCost').textContent = '$' + totalCost.toLocaleString();
|
370 |
+
document.getElementById('timeframeLabel').textContent = timeframe + '-Month';
|
371 |
+
|
372 |
+
// Update strategy text
|
373 |
+
let strategyText = 'Based on your selections, we recommend ';
|
374 |
+
|
375 |
+
if (recommendedServices.length === 1) {
|
376 |
+
strategyText += `a focused approach on ${recommendedServices[0]}.`;
|
377 |
+
} else {
|
378 |
+
strategyText += `a comprehensive strategy including ${recommendedServices.slice(0, -1).join(', ')}`;
|
379 |
+
if (recommendedServices.length > 1) {
|
380 |
+
strategyText += ` and ${recommendedServices[recommendedServices.length - 1]}.`;
|
381 |
+
}
|
382 |
+
}
|
383 |
+
|
384 |
+
strategyText += ` This ${timeframe}-month plan will establish a strong foundation for sustainable organic growth.`;
|
385 |
+
|
386 |
+
document.getElementById('strategyText').textContent = strategyText;
|
387 |
+
|
388 |
+
// Update recommended services chips
|
389 |
+
const servicesContainer = document.getElementById('recommendedServices');
|
390 |
+
servicesContainer.innerHTML = '';
|
391 |
+
|
392 |
+
recommendedServices.forEach(service => {
|
393 |
+
const chip = document.createElement('span');
|
394 |
+
chip.className = 'inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-indigo-100 text-indigo-800';
|
395 |
+
chip.textContent = service;
|
396 |
+
servicesContainer.appendChild(chip);
|
397 |
+
});
|
398 |
+
|
399 |
+
// Show results
|
400 |
+
resultsSection.classList.remove('hidden');
|
401 |
+
resultsSection.scrollIntoView({ behavior: 'smooth' });
|
402 |
+
}
|
403 |
+
});
|
404 |
+
</script>
|
405 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=harithapliyal/seo-cost-calculator" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
|
406 |
+
</html>
|