added readme - #37
Conversation
| <body> | ||
| <script src="js/script.js" charset="utf-8"></script> | ||
| <!-- <h1>The PRICE is RIGHT!</h1> --> | ||
| <div class="container"> |
| </div> | ||
|
|
||
| </div> | ||
| <!-- <div class = "shoppingCart"> |
There was a problem hiding this comment.
remove this if you don't use it anymore
| @@ -0,0 +1,198 @@ | |||
| $(function () { | |||
|
|
|||
| var i = 0 | |||
There was a problem hiding this comment.
what is this variable for?
| $('.productSpace').prepend($productImg) | ||
| $('.productSpace').append($printProductName) | ||
|
|
||
| console.log(theProduct) |
There was a problem hiding this comment.
take the console.log once you're done testing it
|
|
||
|
|
||
| function submitGuess() { | ||
| $('.player1Div').append($('<input id="player-1" type="number">'), $('<input id = "submit-1" type="submit" value="Submit">')) |
There was a problem hiding this comment.
Hmm, why don't you prepare this on the html instead? Rather than appending this through the js.
|
|
||
|
|
||
| $('.result').on('click', '#nextProduct', function (){ | ||
| if ($( "li" ).length == 3) { |
There was a problem hiding this comment.
Why do you need to keep track the winning flow by the amount of html elements? You shouldn't depend so much on your html to control your logic, similarly your logic shouldn't affect your html a lot too.
|
Project Workflow: 2 / 5 Glow
Grow
|
flowchart a bit funny still. will edit over weekend