-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
181 additions
and
49 deletions.
There are no files selected for viewing
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,57 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="lib/style.css"/> | ||
<link | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" | ||
crossorigin="anonymous"/> | ||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> | ||
|
||
<script type="module" src="./lib/index.js"></script> | ||
<title>TV series</title> | ||
</head> | ||
<body> | ||
|
||
<h1>TEORIA DE GRUPOS</h1> | ||
<header> | ||
<div class="menu"> | ||
<nav> | ||
<img src="imagenes/logo.png" id="logoMenu" alt="Logo"> | ||
<label id="nombreLogo" href="#">TV Series</label> | ||
</nav> | ||
</div> | ||
</header> | ||
|
||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-lg-6 col-12"> | ||
<table class="table table-striped" id="tablaSeries"> | ||
<thead> | ||
<tr> | ||
<th scope="col">#</th> | ||
<th scope="col">Name</th> | ||
<th scope="col">Channel</th> | ||
<th scope="col">Seasons</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
</tbody> | ||
</table> | ||
<p id="averageSeasons">Average seasons: 0</p> | ||
</div> | ||
<div class="col-lg-6 col-12" id="contenido"> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> | ||
|
||
<script src="main.js"></script> | ||
|
||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th scope="col">#</th> | ||
<th scope="col">First</th> | ||
<th scope="col">Last</th> | ||
<th scope="col">Handle</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th scope="row">1</th> | ||
<td>Mark</td> | ||
<td>Otto</td> | ||
<td>@mdo</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">2</th> | ||
<td>Jacob</td> | ||
<td>Thornton</td> | ||
<td>@fat</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">3</th> | ||
<td>Larry</td> | ||
<td>the Bird</td> | ||
<td>@twitter</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Serie = void 0; | ||
class Serie { | ||
constructor(id, nombre, canal, temporadas, descripcion, link, imagen) { | ||
this.id = id; | ||
this.nombre = nombre; | ||
this.canal = canal; | ||
this.temporadas = temporadas; | ||
this.descripcion = descripcion; | ||
this.link = link; | ||
this.imagen = imagen; | ||
} | ||
} | ||
exports.Serie = Serie; |
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { series } from './data.js'; | ||
|
||
const tabla= document.querySelector('.table tbody'); | ||
|
||
if (tabla) { | ||
series.forEach((serie) => { | ||
const row = document.createElement('tr'); | ||
row.innerHTML = ` | ||
<th scope="row">${serie.id}</th> | ||
<th scope="row">${serie.nombre}</td> | ||
<th scope="row">${serie.canal}</td> | ||
<th scope="row">${serie.temporadas}</td>` | ||
console.log("ayuda"); | ||
tabla.appendChild(row); | ||
}); | ||
|
||
|
||
} else { | ||
console.error("No se encontró el elemento con la clase 'table'"); | ||
} | ||
document.getElementsByTagName("h1")[0].innerHTML = "Hola desde Typescript"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { series } from './data.js'; | ||
|
||
const tabla: HTMLElement | null = document.querySelector('.table tbody'); | ||
|
||
if (tabla) { | ||
series.forEach((serie) => { | ||
const row = document.createElement('tr'); | ||
row.innerHTML = ` | ||
<th scope="row">${serie.id}</th> | ||
<th scope="row">${serie.nombre}</td> | ||
<th scope="row">${serie.canal}</td> | ||
<th scope="row">${serie.temporadas}</td>` | ||
|
||
tabla.appendChild(row); | ||
}); | ||
|
||
|
||
} else { | ||
console.error("No se encontró el elemento con la clase 'table'"); | ||
} | ||
document.getElementsByTagName("h1")[0].innerHTML = "Hola desde Typescript"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { series } from './data.js'; | ||
|
||
const tabla: HTMLElement | null = document.querySelector('.table tbody'); | ||
|
||
if (tabla) { | ||
series.forEach((serie) => { | ||
const row = document.createElement('tr'); | ||
row.innerHTML = ` | ||
<th scope="row">${serie.id}</th> | ||
<th scope="row">${serie.nombre}</td> | ||
<th scope="row">${serie.canal}</td> | ||
<th scope="row">${serie.temporadas}</td>` | ||
|
||
tabla.appendChild(row); | ||
}); | ||
|
||
|
||
} else { | ||
console.error("No se encontró el elemento con la clase 'table'"); | ||
} | ||
document.getElementsByTagName("h1")[0].innerHTML = "Hola desde Typescript"; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters