Skip to content

Commit

Permalink
eliminado fetch.js, reubi de htmls
Browse files Browse the repository at this point in the history
limpieza en script.js
  • Loading branch information
dibaxu committed Sep 26, 2023
1 parent b0b04a6 commit ac6c0fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 63 deletions.
12 changes: 0 additions & 12 deletions dist/fetch.js

This file was deleted.

43 changes: 0 additions & 43 deletions dist/script.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,3 @@
// function createProductCard(productName, productPrice=0, productDescription, imageUrl="") {
// // Create a card element
// const card = document.createElement('div');
// card.classList.add('bg-slate-400'); // You can define CSS styles for 'product-card' class

// // Create an image element
// const image = document.createElement('img');
// image.src = imageUrl;
// image.alt = productName;

// // Create a card body
// const cardBody = document.createElement('div');
// cardBody.classList.add('card-body'); // You can define CSS styles for 'card-body' class

// // Create product details
// const title = document.createElement('h5');
// title.textContent = productName;

// const price = document.createElement('p');
// price.textContent = 'Price: $' + productPrice;

// const description = document.createElement('p');
// description.textContent = productDescription;

// // Append elements to the card
// card.appendChild(image);
// card.appendChild(cardBody);
// cardBody.appendChild(title);
// cardBody.appendChild(price);
// cardBody.appendChild(description);

// return card;
// }
const movieContainer = document.querySelector("#movies-container");
fetch("./western_movies.json")
.then((respuesta) => respuesta.json())
Expand Down Expand Up @@ -83,13 +50,3 @@ function mostrarDetallesPelicula(pelicula) {
// }
// movies()

// Example usage:
// const product = createProductCard(
// 'Product Name',
// 19.99,
// 'Product description goes here.',
// 'product-image.jpg'
// );

// // Add the product card to a container element in your HTML
// document.getElementById('product-container').appendChild(product);
9 changes: 4 additions & 5 deletions dist/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="output.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>MUVI, EL MEJOR CINE</title>
<link href="./dist/output.css" rel="stylesheet">
<link rel="./dist/style.css" href="style.css">
</head>
<body>
<div class="box-border antialiased font-sans">
Expand Down Expand Up @@ -69,7 +69,6 @@ <h3 class="font-bold text-xl ">EJEMPLO</h3>
</footer>
</div>

<script src="script.js"></script>
<script src="fetch.js"></script>
<script src="./dist/script.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions dist/pelicula.html → pelicula.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Película</title>
<link href="output.css" rel="stylesheet">
<link href="./dist/output.css" rel="stylesheet">
</head>
<body>
<div class="box-border antialiased font-sans">
Expand Down Expand Up @@ -55,6 +55,6 @@ <h2 class="text-2xl font-semibold pb-5">Prueba 7 Días Gratis</h2>
</section>
</body>
</div>
<script src="pelicula.js"></script>
<script src="./dist/pelicula.js"></script>
</body>
</html>

0 comments on commit ac6c0fb

Please sign in to comment.