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]);
});
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Vedno omogočeni
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.
The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Scroll to Top