-
Notifications
You must be signed in to change notification settings - Fork 0
/
clase-4-ajs.html
139 lines (135 loc) · 5.61 KB
/
clase-4-ajs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta charset="utf-8" />
<meta name="author" content="Ignacio Kasevich" />
<meta name="description" content="Cursos de HTML, JavaScript y CSS a la mano." />
<meta name="keywords" content="HTML,CSS,XML,JavaScript" />
<title>Clase 4 AJS</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="http://kasevich.com.ar/" target="_blank">Kasevich</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu" aria-labelledby="dropdown01">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<main role="main">
<div class="jumbotron">
<div class="container">
<h1 class="display-3"><1> Clase JavaScript! </1></h1>
<p onClick="miNroRandom()">This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
<p><a class="btn btn-primary btn-lg aviso" href="https://www.google.com.ar/" role="button" target="_blank">Learn more »</a></p>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
</div>
<hr/>
</div>
<div class="container clearfix">
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 mx-auto">
<h2>Suscribase:</h2>
<div class="alert alert-danger alerta d-none">
<span>Ha ingresado un email invalido</span>
</div>
<form class="form-signin" action="suscripcion.php" method="post">
<label for="inputEmail" class="sr-only">Email</label>
<input type="text" id="inputEmail" class="form-control" placeholder="Email">
<br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Enviar</button>
</form>
</div>
</div>
<hr/>
<br/>
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs12">
<h2>Tabla de productos:</h2>
<br/>
<a href="#" class="cargar-productos btn btn-primary">Cargar productos</a>
<br/>
<table class="table tabla-productos">
<thead>
<tr>
<th>#</th>
<th>Descripcion</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
<footer class="container">
<p>© Company 2017</p>
</footer>
<script src="js/suscribirse.js"></script>
<script src="js/cargar-productos.js"></script>
<script type="text/javascript">
var miNroRandom = function() {
console.log(Math.random());
}
var avisoRedireccion = function(lugar) {
alert("Usted esta siendo redireccionado a: " + lugar);
}
var avisoRedireccionConf = function(ev) {
var respuesta = confirm("Usted esta por ser redireccionado ¿Desea continuar?");
if (!respuesta) ev.preventDefault();
}
var elRedireccion = document.querySelector('.aviso');
elRedireccion.addEventListener('click', avisoRedireccionConf);
</script>
<script src="js/bootstrap.min.js"></script>
<body>
</html>