Skip to content

Commit

Permalink
Re-wrote the js file for including jQuery instead of raw html
Browse files Browse the repository at this point in the history
  • Loading branch information
vassdeniss committed Mar 22, 2021
1 parent 937cac3 commit dfe4941
Show file tree
Hide file tree
Showing 6 changed files with 668 additions and 443 deletions.
Binary file added images/mushrooms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pepperoni.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

45 changes: 42 additions & 3 deletions index.unmin.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ <h1 style="text-align: center; margin-top: 0px;"><b><i>Pizza Clicker </i></b></h
<div>
<p id="top" style="text-align: center; margin-top: 25px; display: none;"><b> Toppings: </b></p>
<img title="Tomato Sauce" alt="tomato-sauce.png" style="display: none; float: left; margin-right: 20px;" id="TSImage" src="images/tomatoSauce.png" width="50px" height="100px">
<img title="Cheese" alt="cheese.png" style="display: none; float: left; margin-right: 20px; margin-top: 10px;" id="CImage" src="images/cheese.png" width="130px" height="100px">
<img title="Peppers" alt="peppers.png" style="display: none; float: left;" id="PImage" src="images/peppers.png" width="100px" height="100px">
<img title="Cheese" alt="cheese.png" style="display: none; float: left; margin-right: 20px; margin-top: 10px;" id="CImage" src="images/cheese.png" width="110px" height="100px">
<img title="Peppers" alt="peppers.png" style="display: none; float: left;" id="PImage" src="images/peppers.png" width="90px" height="100px">
<img title="Mushrooms" alt="mushrooms.png" style="margin-left: 20px; display: none; float: left;" id="MImage" src="images/mushrooms.png" width="110px" height="100px">
<img title="Pepperoni" alt="pepperoni.png" style="float: left; display: none;" id="PpImage" src="images/pepperoni.png" width="140px" height="100px">
</div>
</div>

Expand Down Expand Up @@ -121,6 +123,13 @@ <h1 style="text-align: center; margin-top: 0px;"><b><i>Pizza Clicker </i></b></h
<td> Increases clicks by 47 </td>
<td><button class="fancybutton" style="cursor: pointer;" onmousedown="playButtonSound()" onclick="restaurantAdder()" id="restaurantButton"> Buy </button></td>
</tr>
<tr id="robots" style="display: none;">
<td> Robots </td>
<td><img src="images/transparentPizza.png" height="25px" width="25px"><span id="robotsPrice">Price: 130,000 </span></td>
<td><span id="robotsCount"> Count: 0 </span></td>
<td> Increases clicks by 260 </td>
<td><button class="fancybutton" style="cursor: pointer;" onmousedown="playButtonSound()" onclick="robotAdder()" id="robotButton"> Buy </button></td>
</tr>
</tbody>
</table>
</div><br>
Expand Down Expand Up @@ -228,6 +237,24 @@ <h1 style="text-align: center; margin-top: 0px;"><b><i>Pizza Clicker </i></b></h
<td> Restaurants are twice as powerful - <i> "Everyone knows you need a franchise restaurant" </i></td>
<td><button class="fancybutton" style="cursor: pointer;" onmousedown="playButtonSound()" id="franchiseButton" onclick="franchiseAdder()"> Buy </button></td>
</tr>
<tr id="diy" style="display: none;">
<td> DIY Robots </td>
<td><img src="images/transparentPizza.png" height="25px" width="25px"> Price: 10,000 </td>
<td> Robots are twice as powerful - <i> "Workers make robots in their spare time" </i></td>
<td><button class="fancybutton" style="cursor: pointer;" onmousedown="playButtonSound()" id="diyButton" onclick="diyAdder()"> Buy </button></td>
</tr>
<tr id="factory" style="display: none;">
<td> Factory Robots </td>
<td><img src="images/transparentPizza.png" height="25px" width="25px"> Price: 100,000 </td>
<td> Robots are twice as powerful - <i> "Whole factories for making robots" </i></td>
<td><button class="fancybutton" style="cursor: pointer;" onmousedown="playButtonSound()" id="factoryButton" onclick="factoryAdder()"> Buy </button></td>
</tr>
<tr id="self" style="display: none;">
<td> Robot Robots </td>
<td><img src="images/transparentPizza.png" height="25px" width="25px"> Price: 1,000,000 </td>
<td> Robots are twice as powerful - <i> "Robots build robots!" </i></td>
<td><button class="fancybutton" style="cursor: pointer;" onmousedown="playButtonSound()" id="selfButton" onclick="selfAdder()"> Buy </button></td>
</tr>
<tr id="tomato" style="display: none;">
<td> Tomato Sauce </td>
<td><img src="images/transparentPizza.png" height="25px" width="25px"> Price: 1,000,000 </td>
Expand All @@ -245,7 +272,19 @@ <h1 style="text-align: center; margin-top: 0px;"><b><i>Pizza Clicker </i></b></h
<td><img src="images/transparentPizza.png" height="25px" width="25px"> Price: 100,000,000 </td>
<td> Increases production +3% - <i> "Spicy!" </i></td>
<td><button class="fancybutton" style="cursor: pointer;" onmousedown="playButtonSound()" id="peppersButton" onclick="peppersAdder()"> Buy </button></td>
</tr>
</tr>
<tr id="mushrooms" style="display: none;">
<td> Mushrooms </td>
<td><img src="images/transparentPizza.png" height="25px" width="25px"> Price: 1,000,000,000 </td>
<td> Increases production +4% - <i> "Who doesn't like mushrooms?" </i></td>
<td><button class="fancybutton" style="cursor: pointer;" onmousedown="playButtonSound()" id="mushroomsButton" onclick="mushroomsAdder()"> Buy </button></td>
</tr>
<tr id="pepperoni" style="display: none;">
<td> Pepperoni </td>
<td><img src="images/transparentPizza.png" height="25px" width="25px"> Price: 10,000,000,000 </td>
<td> Increases production +5% - <i> "Every pizza has some" </i></td>
<td><button class="fancybutton" style="cursor: pointer;" onmousedown="playButtonSound()" id="pepperoniButton" onclick="pepperoniAdder()"> Buy </button></td>
</tr>
</tbody>
</table>
</div><br>
Expand Down
Loading

0 comments on commit dfe4941

Please sign in to comment.