-
Notifications
You must be signed in to change notification settings - Fork 0
/
pagina01(julio).html
48 lines (37 loc) · 1.05 KB
/
pagina01(julio).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
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<style type="text/css">
.active {
border: 2px solid red;
}
</style>
</head>
<body>
<section>
<img src="image/img01.jpg" style="max-width:180px" class="imgclick">
<img src="image/img02.jpg" style="max-width:180px" class="imgclick">
<img src="image/img03.jpg" style="max-width:180px" class="imgclick">
<br/>
<br/>
<button onclick="nextPage();" type="button" class="btn">pagina02</button>
</section>
<hr>
<BR/>
<p>AO CLICAR NAS IMAGENS ACIMA FAZ COM QUE SELECIONE QUANTAS FOR PRECISO E ENVIE PARA A "PAGINA 02"</p>
<p style="color:red">OBS.: Tudo seria em uso offline, só rodar pelo navegador</p>
<script src="jquery-3.3.1.min.js"></script>
<script>
var images = [];
$('.imgclick').click(function () {
$(this).toggleClass('active');
images.push($(this).attr("src"));
images.join(',');
});
function nextPage() {
location.href = 'pagina02(julio).html?img=' + images;
}
</script>
</body>
</html>