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.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ When the page loads:

3. Create an image tag, set its `src` attribute to `http://49.media.tumblr.com/tumblr_m6qt1rjPSz1rxjzkho1_500.gif`, and append the to the `#greeting` div.

Afterwards:
Afterwards:

4. Add the class of `selected` to an `<li>` when it is clicked. Remove it from any other `li`s as well.

Expand Down
7 changes: 4 additions & 3 deletions app.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.selected {
.selected {
font-weight: bold;
font-size:1.5em;
}

#ghosting, #resize {
Expand All @@ -9,8 +10,8 @@

#ghosting {
background-color: #ddd;
}
}

#resize {
background-color: orange;
}
}
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
</div>

<input type="submit" value="Reset" id="reset"></input>
<script type="text/javascript"src="jscript.js"></script>
</body>
</html>
46 changes: 46 additions & 0 deletions indexjQuery.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>The DOM playground</title>
<link rel="stylesheet" href="app.css">
<script src="app.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
<div id="greeting">
Hello There!
</div>
<hr>
<div class="content">
Essentials:
</div>

<div id="essentials">
<ul>
<li>milk</li>
<li class="selected">honey</li>
<li>water</li>
<li>wine</li>
<li>beer</li>
</ul>
</div>

<div>
<img src="./images/honey.jpeg" height="60" width="60" alt="beer">
</div>

<div id="ghosting">
Touch me and I'll disappear!
</div>

<div id="resize">
Touch me and I'll turn twice as wide!
</div>

<input type="submit" value="Reset" id="reset"></input>
<script type="text/javascript"src="jscriptjQuery.js"></script>
<script type="text/javascript"src="jquery-3.2.1.js"></script>
jquery-3.2.1
</body>
</html>
Loading