-
Notifications
You must be signed in to change notification settings - Fork 0
/
pildid.html
55 lines (52 loc) · 1.71 KB
/
pildid.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
<html>
<head>
<meta charset="UTF-8" />
<title>Labürindijooksja - Pildid</title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="header">
<div class="pilt"><img src="css/p3_front.png" alt="pilt" width="60" height="60" /></div>
<ul>
<li><a href="index.html">Mängust</a></li>
<li><a href="opetus.html">Õpetus</a></li>
<li><a href="pildid.html">Pildid</a></li>
</ul>
</div>
<div id="content">
<h1>Mängust</h1>
<h2>Üldinfo</h2>
<img src="css/Pilt1.png" alt="pilt1" id="pilt1" width="300" height="300" onclick="showPic(this)" />
<img src="css/pilt2.png" alt="pilt2" id="pilt2" width="300" height="300" onclick="showPic(this)" />
<img src="css/pilt3.png" alt="pilt3" id="pilt3" width="300" height="300" onclick="showPic(this)" />
<img src="css/Pilt4.png" alt="pilt4" id="pilt4" width="300" height="300" onclick="showPic(this)" />
</div>
<div id="myModal" class="modal">
<span class="close">×</span>
<img src="#" alt="pilt" class="modal-content" id="img01" />
<div id="caption"></div>
</div>
<script>
var modal = document.getElementById('myModal');
var modalImg = document.getElementById("img01");
var captionText = document.getElementById("caption");
function showPic(id) {
modal.style.display = "block";
modalImg.src = id.src;
captionText.innerHTML = id.alt;
}
var span = document.getElementsByClassName("close")[0];
span.onclick = function() {
modal.style.display = "none";
}
</script>
<div id="footer">
<div class="copyright">
© Romet Pastak, Erik Marcus Maks
</div>
<div class="modified">
Viimati muudetud: 30.11.2018
</div>
</div>
</body>
</html>