Skip to content
Permalink
Browse files

dom mani

  • Loading branch information
Alex Mueller
Alex Mueller committed Mar 4, 2020
1 parent c915c2d commit b2d24ed315b018094b23563f570bd3693d6887c7
Showing with 1,164 additions and 87 deletions.
  1. BIN .vscode/._settings.json
  2. 0 .vscode/settings.json
  3. 0 README.md
  4. +2 −0 dom-playground-master/.gitignore
  5. +25 −0 dom-playground-master/README.md
  6. +211 −0 dom-playground-master/css/style.css
  7. +198 −0 dom-playground-master/css/style.orig.css
  8. BIN dom-playground-master/images/archives.gif
  9. BIN dom-playground-master/images/menu.gif
  10. BIN dom-playground-master/images/resources.gif
  11. BIN dom-playground-master/images/select.gif
  12. BIN dom-playground-master/images/tag.gif
  13. BIN dom-playground-master/images/trees.jpg
  14. +271 −0 dom-playground-master/index.html
  15. +293 −0 dom-playground-master/index.orig.html
  16. +77 −0 dom-playground-master/js/fix-the-page.js
  17. 0 mocking-sponge/.gitignore
  18. 0 mocking-sponge/README.md
  19. BIN mocking-sponge/img/spongebob.jpg
  20. 0 mocking-sponge/index.html
  21. 0 mocking-sponge/js/main.js
  22. 0 tip-calculator-master/.gitignore
  23. 0 tip-calculator-master/README.md
  24. 0 tip-calculator-master/css/main.css
  25. BIN tip-calculator-master/images/brooke-lark-pGM4sjt_BdQ-unsplash.jpg
  26. BIN tip-calculator-master/images/camila-melim-yHQfZ9TuZn4-unsplash.jpg
  27. BIN tip-calculator-master/images/claudia-crespo-ewOrvEa87j4-unsplash.jpg
  28. 0 tip-calculator-master/index.html
  29. 0 tip-calculator-master/js/script.js
  30. 0 week-1/index.html
  31. 0 week-3/index.html
  32. 0 week-3/js/main.js
  33. 0 week-4/css/style.css
  34. 0 week-4/index.html
  35. 0 week-4/js/main.js
  36. 0 week-5/bean.js
  37. 0 week-5/index.html
  38. 0 week-5/minimum.js
  39. 0 week-5/recursion.js
  40. +11 −11 week-6/index.html
  41. +17 −17 week-6/js/main.js
  42. +20 −20 week-6/js/reverse.js
  43. +19 −19 week-6/js/sum.js
  44. +10 −10 week-6/reverse.html
  45. +10 −10 week-6/sum.html
Binary file not shown.
0 .vscode/settings.json 100644 → 100755
No changes.
0 README.md 100644 → 100755
No changes.
@@ -0,0 +1,2 @@
/.vscode
.DS_Store
@@ -0,0 +1,25 @@
# DOM Playground

## Instructions
Modify `js/fix-the-page.js` to fix the page design and layout. When complete, your page should look like the original, "[Wicked Grove](http://www.csszengarden.com/006/)" design.

## Rules
1) You may not modify the HTML file.
2) You may not modify the CSS file.

You can use the original HTML and CSS files for reference.

## What You Need to Know
This assignment is designed to test your knowledge of the following JavaScript features:

* `document.querySelector()`
* `document.createElement()`
* `element.appendChild()`
* `element.innerHTML`
* `element.style`
* `element.attribute`
* `Array.forEach()`
* The DOM
* Object Literals `{}`
* and more ...!

@@ -0,0 +1,211 @@
/* Check the original CSS file for the correct body styles */
/* It looks like they've been deleted from here. */
/* Remember, you cannot edit this file. Add the properties using JavaScript. */
body {}

p {
font: 10pt/16pt "Trebuchet MS", sans-serif;
margin-top: 0px;
text-align: justify;
}

h3 {
font: bold normal 12pt "Trebuchet MS", sans-serif;
letter-spacing: 3px;
margin-bottom: 2px;
color: #333333;
text-align: left;
}

a:link {
font-weight: bold;
text-decoration: none;
color: #FF6600;
}

a:visited {
font-weight: bold;
text-decoration: none;
color: #CC0000;
}

a:hover,
a:active {
text-decoration: underline;
color: #FF6600;
}


/* Here's a class that you'll need to add to the HTML */
.page-wrapper {
background: #9cf url(../images/trees.jpg) no-repeat left top;
padding: 200px 0px 0px 0px;
margin: 0px auto;
width: 800px;
border-left: 2px dashed #fff;
border-right: 2px dashed #fff;
}

header {
margin-bottom: 10px;
}

/* using an image to replace text in an h1. This trick courtesy Douglas Bowman, http://www.stopdesign.com/articles/css/replace-text/ */
header h1 {
background: transparent;
margin-top: -180px;
width: 500px;
height: 87px;
float: left;
color: #fff;

text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}

header h2 {
background: transparent url(../images/tag.gif) no-repeat top left;
width: 300px;
margin-top: -60px;
margin-left: -190px;
height: 100px;
float: right;

text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}


/* Add this class to the proper element */
.summary {
width: 130px;
float: left;
padding: 5px;
margin-right: 15px;
background: #0099FF;

}

.summary p {
font: bold 8pt/12pt verdana, sans-serif;
text-align: right;
color: #fff;
}

.summary a:link {
font-weight: bold;
text-decoration: none;
color: #003;
}

.summary a:visited {
font-weight: bold;
text-decoration: none;
color: #006;
}

.summary a:hover,
.summary a:active {
text-decoration: underline;
color: #FF6600;
}

.preamble,
#supporting text,
.explanation,
.participation,
.benefits,
.requirements {
padding: 0px 170px 0px 30px;
}

footer {
text-align: center;
}

footer a:link,
footer a:visited {
margin-right: 20px;
}

/* This class is also missing from the HTML file. Add it! */
.sidebar {
background: transparent url(../images/menu.gif) top left no-repeat;
position: absolute;
top: 0px;
padding: 15px;
margin-top: 200px;
margin-left: 650px;
width: 130px;
}

.sidebar .wrapper {
font: 10px verdana, sans-serif;
padding-top: 35px;
}

.sidebar h3.select {
background: transparent url(../images/select.gif) top left no-repeat;
width: 130px;
height: 25px;
margin-left: -8px;

text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}

.sidebar h3.archives {
background: transparent url(../images/archives.gif) top left no-repeat;
width: 130px;
height: 25px;
margin-left: -8px;

text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}

.sidebar h3.resources {
background: transparent url(../images/resources.gif) top left no-repeat;
width: 130px;
height: 25px;
margin-left: -8px;

text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}

.sidebar ul {
margin: 0px;
padding: 0px;
}

.sidebar li {
line-height: 2.5ex;
background: transparent;
display: block;
padding-top: 5px;
margin-bottom: 5px;
list-style-type: none;
}

.sidebar li a:link {
color: #FF3300;
}

.sidebar li a:visited {
color: #FF0000;
}

.extra1 {
background: transparent;
position: absolute;
top: 40px;
right: 0px;
width: 148px;
height: 110px;
}

0 comments on commit b2d24ed

Please sign in to comment.
You can’t perform that action at this time.