try Q5 & Q6
parent
7fd5ae6684
commit
857a206a1a
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Image Gallery</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Image gallery example</h1>
|
||||
|
||||
<div class="full-img">
|
||||
<img class="displayed-img" src="images/pic1.jpg">
|
||||
<div class="overlay"></div>
|
||||
<button class="dark">Darken</button>
|
||||
</div>
|
||||
|
||||
<div class="thumb-bar">
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Banks</title>
|
||||
<script>
|
||||
function addBank(){
|
||||
var node = document.createElement("LI"); // Create a <li> node
|
||||
var textnode = document.createTextNode("MyDigi"); // Create a text node
|
||||
node.appendChild(textnode); // Append the text to <li>
|
||||
document.getElementById("banks").appendChild(node); // Append <li> to <ul> with id="myList"
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<ul id="banks">
|
||||
<li>DBS</li>
|
||||
<li>UOB</li>
|
||||
<li>OCBC</li>
|
||||
<li>Citi</li>
|
||||
</ul>
|
||||
<button onclick="addBank()">Add</button>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue