Ana içeriğe atla

Sever Conta

1 / 40›⛶

CONTA ANA KATALOG

Katalog yükleniyor...
CONTA Katalog
CONTA Katalog
" +"");win.document.close();win.onload =function(){win.print();};};document.getElementById("cfb-print-all").onclick =function(){const win =window.open("","_blank");let html ="" +"" +"CONTA Katalog" +"" +"" +"";pages.forEach(function(url){html +="";});html +="" +"";win.document.write(html);win.document.close();win.onload =function(){win.print();};};document.getElementById("cfb-download").onclick =function(){const link =document.createElement("a");link.href =pages[page];link.download ="CONTA-Sayfa-" +(page + 1) +".jpg";link.target ="_blank";document.body.appendChild(link);link.click();link.remove();};document.getElementById("cfb-download-pdf").onclick =async function(){const button =this;button.disabled = true;button.textContent ="PDF...";try{if(!window.jspdf){await loadScript("https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js");}const jsPDF =window.jspdf.jsPDF;let pdf = null;for(let i = 0;i < pages.length;i++){button.textContent ="PDF " +(i + 1) +"/" +pages.length;const img =await loadImage(pages[i]);const width =img.naturalWidth;const height =img.naturalHeight;const orientation =width > height? "landscape": "portrait";if(!pdf){pdf =new jsPDF({orientation:orientation,unit:"px",format:[width,height],compress:true});}else{pdf.addPage([width,height],orientation);}pdf.addImage(img,"JPEG",0,0,width,height,undefined,"FAST");}pdf.save("CONTA-Katalog.pdf");}catch(error){console.error(error);alert("PDF oluşturulamadı.");}button.disabled = false;button.textContent ="PDF";};function loadScript(src){return new Promise(function(resolve,reject){const script =document.createElement("script");script.src = src;script.onload = resolve;script.onerror = reject;document.head.appendChild(script);});}function loadImage(url){return new Promise(function(resolve,reject){const img =new Image();img.crossOrigin ="anonymous";img.onload =function(){resolve(img);};img.onerror =function(){reject(url);};img.src = url;});}document.getElementById("cfb-share").onclick =async function(){const data = {title:"CONTA Katalog",text:"CONTA Kataloğu",url:window.location.href};if(navigator.share){try{await navigator.share(data);}catch(e){}}else{try{await navigator.clipboard.writeText(window.location.href);alert("Katalog bağlantısı kopyalandı.");}catch(e){prompt("Katalog bağlantısı:",window.location.href);}}};document.getElementById("cfb-fullscreen").onclick =function(){const element =document.getElementById("conta-flipbook");if(document.fullscreenElement){document.exitFullscreen();}else if(element.requestFullscreen){element.requestFullscreen();}};const searchIndex = {"conta":[1],"katalog":[1],"motor":[4,5],"filtre":[7,8],"keçe":[10,11]};function searchCatalog(){const query =document.getElementById("cfb-search").value.toLowerCase().trim();const result =document.getElementById("cfb-search-result");if(!query){result.textContent = "";return;}let found = [];Object.keys(searchIndex).forEach(function(key){if(key.includes(query)){found = found.concat(searchIndex[key]);}});found = [...new Set(found)];if(!found.length){result.textContent ="Sonuç bulunamadı.";return;}result.textContent ="Bulundu: " +found.join(", ") +". sayfa";page =found[0] - 1;if(!isMobile() &&page % 2 !== 0){page--;}showPage();}document.getElementById("cfb-search-button").onclick =searchCatalog;document.getElementById("cfb-search").addEventListener("keydown",function(e){if(e.key === "Enter"){searchCatalog();}});document.addEventListener("keydown",function(e){if(e.key === "ArrowRight"){turn("next");}if(e.key === "ArrowLeft"){turn("prev");}if(e.key === "+"){setZoom(zoom + .1);}if(e.key === "-"){setZoom(zoom - .1);}});window.addEventListener("resize",function(){if(!isMobile() &&page % 2 !== 0){page--;}showPage();});loading.style.display ="none";showPage();pages.forEach(function(url){const img =new Image();img.src = url;});})();
error: Sever Conta Website İçerikleri Korumalıdır