Hvala

Domov > Hvala

Prejeli smo vaše sporočilo in vam bomo odgovorili v najkrajšem možnem času. Če je vaše povpraševanje nujno, nas lahko kontaktirate na +4570707482. V nasprotnem primeru vam bomo kmalu odgovorili.

Hvala za vaše zanimanje!

// First, add the new for the header const theadRow = document.querySelector("thead tr"); if (theadRow) { const ths = theadRow.querySelectorAll("th");// Avoid duplicate View header const alreadyAdded = Array.from(ths).some(th => th.textContent.trim() === "View" || th.textContent.trim() === "Voir"); if (!alreadyAdded) { const newTh = document.createElement("th"); newTh.textContent = document.documentElement.lang === "fr" ? "Voir" : "View"; // WPML-aware theadRow.insertBefore(newTh, ths[ths.length - 1]); // Insert before last column } }// Then process all rows as before document.querySelectorAll("tbody tr").forEach(row => { const cells = row.querySelectorAll("td"); if (cells.length < 2) return;const linkCell = cells[1]; const pdfLink = linkCell.querySelector("a.cf-icon.icon-pdf"); if (!pdfLink) return;// Avoid duplicate View button if (row.querySelector("td.view-cell")) return;// Create a new "View" link without the icon const viewLink = document.createElement("a"); viewLink.href = pdfLink.href; viewLink.className = "my-btn"; // ✅ added class viewLink.textContent = document.documentElement.lang === "fr" ? "Voir" : "View"; viewLink.style.cursor = "pointer"; viewLink.style.textDecoration = "underline"; viewLink.style.color = "#0073aa"; viewLink.setAttribute("rel", "noopener");viewLink.addEventListener("click", function (e) { e.preventDefault(); const screenW = window.innerWidth; const screenH = window.innerHeight; const width = Math.min(600, screenW - 40); const height = Math.min(600, screenH - 80); const left = (screenW / 2) - (width / 2); const top = (screenH / 2) - (height / 2);window.open(this.href, "_blank", `width=${width},height=${height},top=${top},left=${left}`); });const newTd = document.createElement("td"); newTd.classList.add("view-cell"); newTd.appendChild(viewLink); row.insertBefore(newTd, cells[cells.length - 1]); });
Scroll to Top