From ea6ff9746be369fe37a8256ccbc9dec0cda39a1c Mon Sep 17 00:00:00 2001
From: "maria.ruiz" <zs22016128@estudiantes.uv.mx>
Date: Sun, 9 Mar 2025 22:25:16 +0000
Subject: [PATCH] Actualizar Interfaz/scripts/Artista3.js

---
 Interfaz/{ => scripts}/Artista3.js | 99 +++++++++++++++---------------
 1 file changed, 49 insertions(+), 50 deletions(-)
 rename Interfaz/{ => scripts}/Artista3.js (97%)

diff --git a/Interfaz/Artista3.js b/Interfaz/scripts/Artista3.js
similarity index 97%
rename from Interfaz/Artista3.js
rename to Interfaz/scripts/Artista3.js
index d810427..b80dc17 100644
--- a/Interfaz/Artista3.js
+++ b/Interfaz/scripts/Artista3.js
@@ -1,50 +1,49 @@
-
-const filas = 10;
-const columnas = 12;
-let diaSeleccionado = 23;
-const asientosVendidos = { 18: new Set(), 19: new Set(), 20: new Set() };
-let asientosSeleccionados = new Set();
-
-function seleccionarDia(dia) {
-    diaSeleccionado = dia;
-    asientosSeleccionados.clear();
-    document.querySelectorAll('.dias button').forEach(btn => btn.classList.remove('selected'));
-    event.target.classList.add('selected');
-    renderizarAsientos();
-}
-
-function toggleAsiento(asiento) {
-    if (asientosVendidos[diaSeleccionado].has(asiento)) return;
-    if (asientosSeleccionados.has(asiento)) {
-        asientosSeleccionados.delete(asiento);
-    } else {
-        asientosSeleccionados.add(asiento);
-    }
-    renderizarAsientos();
-}
-
-function venderAsientos() {
-    asientosSeleccionados.forEach(asiento => asientosVendidos[diaSeleccionado].add(asiento));
-    asientosSeleccionados.clear();
-    renderizarAsientos();
-}
-
-function renderizarAsientos() {
-    const contenedor = document.getElementById('asientos');
-    contenedor.innerHTML = '';
-    for (let i = 0; i < filas * columnas; i++) {
-        const asiento = `${Math.floor(i / columnas) + 1}${String.fromCharCode(65 + (i % columnas))}`;
-        const boton = document.createElement('button');
-        boton.className = 'asiento';
-        if (asientosVendidos[diaSeleccionado].has(asiento)) {
-            boton.classList.add('vendido');
-        } else if (asientosSeleccionados.has(asiento)) {
-            boton.style.backgroundColor = 'orange';
-        }
-        boton.textContent = asiento;
-        boton.onclick = () => toggleAsiento(asiento);
-        contenedor.appendChild(boton);
-    }
-}
-
-renderizarAsientos();
+const filas = 10;
+const columnas = 12;
+let diaSeleccionado = 23;
+const asientosVendidos = { 18: new Set(), 19: new Set(), 20: new Set() };
+let asientosSeleccionados = new Set();
+
+function seleccionarDia(dia) {
+    diaSeleccionado = dia;
+    asientosSeleccionados.clear();
+    document.querySelectorAll('.dias button').forEach(btn => btn.classList.remove('selected'));
+    event.target.classList.add('selected');
+    renderizarAsientos();
+}
+
+function toggleAsiento(asiento) {
+    if (asientosVendidos[diaSeleccionado].has(asiento)) return;
+    if (asientosSeleccionados.has(asiento)) {
+        asientosSeleccionados.delete(asiento);
+    } else {
+        asientosSeleccionados.add(asiento);
+    }
+    renderizarAsientos();
+}
+
+function venderAsientos() {
+    asientosSeleccionados.forEach(asiento => asientosVendidos[diaSeleccionado].add(asiento));
+    asientosSeleccionados.clear();
+    renderizarAsientos();
+}
+
+function renderizarAsientos() {
+    const contenedor = document.getElementById('asientos');
+    contenedor.innerHTML = '';
+    for (let i = 0; i < filas * columnas; i++) {
+        const asiento = `${Math.floor(i / columnas) + 1}${String.fromCharCode(65 + (i % columnas))}`;
+        const boton = document.createElement('button');
+        boton.className = 'asiento';
+        if (asientosVendidos[diaSeleccionado].has(asiento)) {
+            boton.classList.add('vendido');
+        } else if (asientosSeleccionados.has(asiento)) {
+            boton.style.backgroundColor = 'orange';
+        }
+        boton.textContent = asiento;
+        boton.onclick = () => toggleAsiento(asiento);
+        contenedor.appendChild(boton);
+    }
+}
+
+renderizarAsientos();