You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
<!doctype html>
|
|
<html class="no-js" lang="">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title></title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<!-- Place favicon.ico in the root directory -->
|
|
<link rel="stylesheet" href="css/bootstrap.css">
|
|
<link rel="stylesheet" href="css/css.css">
|
|
<link rel="stylesheet" href="css/all.css">
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<img src="dvere-open-white.png" alt="cernedvere" id="dvere">
|
|
<div>
|
|
<div style="background: yellow; height: 100px; width: 100px; float: left;"id= "zluta">
|
|
</div>
|
|
|
|
<div>
|
|
<div style="background: green; height: 100px; width: 100px; float: left;"id= "zelena">
|
|
</div>
|
|
|
|
<script>
|
|
let dvere = document.getElementById("dvere");
|
|
|
|
let zelena = document.getElementById("zelena");
|
|
let zluta = document.getElementById("zluta");
|
|
|
|
zelena.onclick = function(){
|
|
dvere.src = "dvere-open-yellow.png";
|
|
dvere.alt = "zelene";
|
|
}
|
|
zluta.onclick = function(){
|
|
dvere.src = "dvere-close-black.png";
|
|
dvere.alt = "zlute";
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|