let teytelPagina = 1;
let teytelZoom = 1;
const teytelTotal = 103;
const teytelImg =
document.getElementById(“teytel-image”);
function cargarPagina(){
teytelImg.src =
“https://teytel.com.co/wp-content/uploads/2026/10/pagina-” +
teytelPagina +
“.webp”;
teytelImg.alt =
“Página ” + teytelPagina;
document.getElementById(“teytelActual”).innerHTML =
teytelPagina;
}
function teytelNext(){
if(teytelPagina 1){
teytelPagina–;
cargarPagina();
}
}
function teytelZoomIn(){
teytelZoom += 0.2;
teytelImg.style.transform =
“scale(” + teytelZoom + “)”;
}
function teytelZoomOut(){
if(teytelZoom > 0.4){
teytelZoom -= 0.2;
teytelImg.style.transform =
“scale(” + teytelZoom + “)”;
}
}
function teytelResetZoom(){
teytelZoom = 1;
teytelImg.style.transform =
“scale(1)”;
}
function teytelIr(){
const pagina =
parseInt(
document.getElementById(“teytelGo”).value
);
if(
pagina >= 1 &&
pagina {
startX =
e.changedTouches[0].screenX;
}
);
document.addEventListener(
“touchend”,
e=>{
let endX =
e.changedTouches[0].screenX;
if(endX startX + 50){
teytelPrev();
}
}
);
document.addEventListener(
“contextmenu”,
e=>e.preventDefault()
);
document.addEventListener(
“dragstart”,
e=>e.preventDefault()
);