Update pricing: redundant port €10/kk, BGP default-route €20/kk & full table €50/kk, remove contact form from index
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -137,14 +137,18 @@
|
||||
</div>
|
||||
<div class="checkbox-group">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" name="redundant_port" value="1" data-modifier="1.5" data-applies="connection">
|
||||
<span>Varmennettu portti (+50%)</span>
|
||||
</label>
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" name="bgp" value="1" data-price="49">
|
||||
<span>BGP-reititys / oma AS (€49/kk)</span>
|
||||
<input type="checkbox" name="redundant_port" value="1" data-price="10">
|
||||
<span>Varmennettu portti (€10/kk)</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group form-group-full">
|
||||
<label for="bgp">BGP-reititys</label>
|
||||
<select id="bgp" name="bgp">
|
||||
<option value="0">Ei tarvetta</option>
|
||||
<option value="20">Default-route (€20/kk)</option>
|
||||
<option value="50">Koko internet (€50/kk)</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- VPN -->
|
||||
<div class="form-section-title">Site-to-Site VPN</div>
|
||||
@@ -327,17 +331,17 @@
|
||||
|
||||
// Varmennettu portti
|
||||
const redundant = form.querySelector('[name="redundant_port"]');
|
||||
if (redundant.checked && connPrice > 0) {
|
||||
const extra = Math.round(connPrice * 0.5);
|
||||
total += extra;
|
||||
lines.push({ label: 'Varmennettu portti (+50%)', amount: extra });
|
||||
if (redundant.checked) {
|
||||
total += 10;
|
||||
lines.push({ label: 'Varmennettu portti', amount: 10 });
|
||||
}
|
||||
|
||||
// BGP
|
||||
const bgp = form.querySelector('[name="bgp"]');
|
||||
if (bgp.checked) {
|
||||
total += 49;
|
||||
lines.push({ label: 'BGP-reititys / oma AS', amount: 49 });
|
||||
const bgpEl = document.getElementById('bgp');
|
||||
const bgpPrice = parseInt(bgpEl.value) || 0;
|
||||
if (bgpPrice > 0) {
|
||||
total += bgpPrice;
|
||||
lines.push({ label: bgpEl.options[bgpEl.selectedIndex].text.split('(')[0].trim(), amount: bgpPrice });
|
||||
}
|
||||
|
||||
// VPN
|
||||
|
||||
Reference in New Issue
Block a user