Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
45 changes: 45 additions & 0 deletions Dalina Dao/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Disappearing Ninja</title>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("img").click(function(){
$(this).hide();
})
$("button").click(function(){
$("img").show();
})
})
</script>
</head>

<body>
<div class="container">
<header>
<h1>jQuery Assignment 1: Disapearing Ninjas</h1>
</header>
<article>
<img src="shiro.jpg" alt="shiro.jpg">
<img src="shiro.jpg" alt="shiro.jpg">
<img src="shiro.jpg" alt="shiro.jpg">
<img src="shiro.jpg" alt="shiro.jpg">
</article>
<article>
<img src="shiro.jpg" alt="shiro.jpg">
<img src="shiro.jpg" alt="shiro.jpg">
<img src="shiro.jpg" alt="shiro.jpg">
<img src="shiro.jpg" alt="shiro.jpg">
<button>Restore</button>
</article>

</div>
</body>

</html>
Binary file added Dalina Dao/shiro.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Dalina Dao/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.container{
margin: 0px auto;
padding: 0px;
width: 75%;
/* text-align: center; */
}
img{
width: 200px;
}

button{
display: block;
/* text-align: left;
margin-left: 75px; */
color: white;
background: green;
box-shadow: 1px, 1px, 1px, gray;
}