let currentWidthMM = 0; let currentHeightMM = 0; function setSize(w, h) { currentWidthMM = w; currentHeightMM = h; const unit = document.getElementById("product_unit").value; document.getElementById("product_width").value = unit === "cm" ? (w / 10).toFixed(1) : w; document.getElementById("product_height").value = unit === "cm" ? (h / 10).toFixed(1) : h; updateSummary(); } function adjustQty(delta) { const input = document.getElementById('product_quantity'); const val = parseInt(input.value) || 1; input.value = Math.max(1, val + delta); updateSummary(); } function updateSummary() { const ppm = window.currentPPM; if (!ppm) return; const unit = document.getElementById("product_unit").value; const widthInput = parseFloat(document.getElementById("product_width").value); const heightInput = parseFloat(document.getElementById("product_height").value); const qty = parseInt(document.getElementById("product_quantity").value); const fit = !document.getElementById("product_fitting").checked; if (!widthInput || !heightInput || !qty) return; const w = unit === "cm" ? widthInput * 10 : widthInput; const h = unit === "cm" ? heightInput * 10 : heightInput; const dw = fit ? w + 2 : w; const dh = fit ? h + 2 : h; const perimeter = 2 * (w + h); const lengthMeters = ((perimeter / 10) + 30) / 100 * qty; const price = lengthMeters * ppm; document.getElementById("product_frameSize").textContent = `${dw} mm × ${dh} mm`; document.getElementById("product_quantitySummary").textContent = qty; document.getElementById("product_toleranceText").textContent = fit ? 'Eklendi' : 'Eklenmedi'; document.getElementById("product_totalPrice").textContent = price.toFixed(2) + ' ₺'; } function waitForPriceReady() { const el = document.querySelector(".text-primary"); if (el && el.textContent.trim().startsWith("₺")) { const txt = el.textContent.trim().replace(/[₺\\s]/g, "").replace(",", "."); const parsed = parseFloat(txt); if (!isNaN(parsed)) { window.currentPPM = parsed; updateSummary(); return; } } setTimeout(waitForPriceReady, 400); } document.getElementById("product_unit").addEventListener("change", () => { const unit = document.getElementById("product_unit").value; const wEl = document.getElementById("product_width"); const hEl = document.getElementById("product_height"); let w = parseFloat(wEl.value); let h = parseFloat(hEl.value); if (!isNaN(w) && !isNaN(h)) { if (unit === "cm") { w = currentWidthMM > 0 ? currentWidthMM : w * 10; h = currentHeightMM > 0 ? currentHeightMM : h * 10; wEl.value = (w / 10).toFixed(1); hEl.value = (h / 10).toFixed(1); } else { w = currentWidthMM > 0 ? currentWidthMM : w * 10; h = currentHeightMM > 0 ? currentHeightMM : h * 10; wEl.value = w.toFixed(0); hEl.value = h.toFixed(0); } currentWidthMM = w; currentHeightMM = h; } wEl.placeholder = `Genişlik (${unit})`; hEl.placeholder = `Yükseklik (${unit})`; updateSummary(); }); window.addEventListener("load", () => { setTimeout(waitForPriceReady, 400); }); // Yaygın boyutlar otomatik eklensin const commonSizes = [ [841, 1189, 'A0'], [594, 841, 'A1'], [420, 594, 'A2'], [297, 420, 'A3'], [210, 297, 'A4'], [500, 700, '50x70'], [800, 1200, '80x120'], [1000, 1000, '100x100'], [800, 800, '80x80'], [300, 400, '30x40'], [660, 480, '1000 Puzzle'], [600, 850, '1500 Puzzle'], [660, 960, '2000 Puzzle'], [850, 1200, '3000 Puzzle'], [960, 1320, '4000 Puzzle'] ]; const container = document.getElementById("commonSizes"); commonSizes.forEach(([w, h, label]) => { const btn = document.createElement("button"); btn.textContent = label; btn.onclick = () => setSize(w, h); container.appendChild(btn); }); document.addEventListener("input", updateSummary);
Fransız tarzı çerçevesiz klipler. Kollarla veya iki uygun bozuk parayla açılır ve resim/cam/destek tahtası sandviçinin üzerine kelepçelenir.
Daima camın keskin kenarlarını düzeltin. Ayrıca stiren veya akrilik cam da kullanabilirsiniz.
Resmi klipslerin arasından bir kabloyla asın. Veya destek panosundaki bir deliğe bir 'halka ve klips' yerleştirin.
Nikel kaplamalı çelik.
8 mm kalınlığında, 20 mm uzunluğunda. 1000'li paket.