Skip to content

Commit

Permalink
cleaned html
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanya Butenko authored and Tanya Butenko committed Feb 24, 2017
1 parent 37f04ee commit af3425a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</div>
<p>Upload image <input type="file" name="wishImage" onchange="uploadFile()"></p>
<p>
<button name="submit" onclick="validateForm(event)">
<button name="submit" onclick="validateForm()">
Send your letter
</button>
</p>
Expand Down
3 changes: 2 additions & 1 deletion instructions/level2.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Level 2 - Local storage
`localstorage.length`.
The loop must do few things:
- create an element `li`.
- get the data from localstorage for that `userKey` and append it to `li`.
- get the data from local storage for that `userKey` and append it to `li`.
e.g: `li.appendChild(document.createTextNode(data.giftDescription));`
- this `li` element must be appended to the `ul` element
e.g: `ul.appendChild(li);`
Expand All @@ -191,6 +191,7 @@ Level 2 - Local storage

We have a function, that would display the list of wishes, but when do we
call this function?

As soon as the `wish-list.html` loads, we need all the elements to be
displayed. So we call the function `displayWishes()` when the DOM is loading
i.e on the `onload` event.
Expand Down
2 changes: 1 addition & 1 deletion instructions/level3.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Math.random
the index value would be 1 count extra, so we need to use the limit as
`localStorageIndex-1`
2. This random number can be used to get the gift description at that location
(use the key as `user+'randonmNo'`) in local storage.
(use the key as `user + 'randonmNo'`) in local storage.
3. Display the `gift.description` name in DOM by using the query selector
`.santa-gift-text`.

Expand Down
2 changes: 1 addition & 1 deletion result.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/result.css">
</head>

<body onload="fillContent()">
<body>

<header>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion wish-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/wishlist.css">
</head>

<body onload="displayWishes()">
<body>

<header>
<ul>
Expand Down

0 comments on commit af3425a

Please sign in to comment.