-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipe.html
193 lines (150 loc) · 6.62 KB
/
recipe.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!doctype html>
<html>
<head>
<title>Happy Vegan Cupcakes </title>
<link rel="stylesheet" type="text/css" href="recipecss.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="script.js"></script>
</head>
<body>
<section class="banner">
<div class = "grow pic">
<img class="cupcake" src="images/cupcake.jpg">
</div>
<h1>Happy Vegan Cupcakes </h1>
</section>
<section class="Recipe descrip box">
<p> Make these puppies, slap on some icing, and <strong>done</strong>! These will turn even Morrissey's smile upsidedown. You can also make a chocolate cake using this recipe - just put the batter in a cake pan instead of a muffin tin. Magic.<em> If the cupcake pictures are making you too hungry, click each image to hide.</em></p>
</section>
<form>
<div>
<h2>Ingredients:</h2>
<input type="checkbox" name="ingredients" value="milk" id="milk"
<label for="milk">1 cup alternative milk (soy, almond, etc.)</label> <div id="milk_log"></div><p>
<input type="checkbox" name="ingredients" value="vinegar" id="vinegar"
<label for="vinegar">1 tsp apple cider vinegar</label><div id="vinegar_log"></div><p>
<input type="checkbox" name="ingredients" value="sugar" id="sugar"
<label for="sugar">3/4 cup granulated sugar</label><div id="sugar_log"></div><p>
<input type="checkbox" name="ingredients" value="oil" id="oil"
<label for="oil">1/3 cup canola oil</label><div id="oil_log"></div><p>
<input type="checkbox" name="ingredients" value="vanilla" id="vanilla"
<label for="vanilla">1 tsp vanilla extract</label><div id="vanilla_log"></div><p>
<input type="checkbox" name="ingredients" value="extract" id="extract"
<label for="extract">1/2 tsp almond extract, chocolate extract, or more vanilla</label><div id="extract_log"></div><p>
<input type="checkbox" name="ingredients" value="flour" id="flour"
<label for="flour">1 cup all purpose flour</label><div id="flour_log"></div><p>
<input type="checkbox" name="ingredients" value="cocoa" id="cocoa"
<label for="cocoa">1/3 cup cocoa powder</label><div id="cocoa_log"></div><p>
<input type="checkbox" name="ingredients" value="soda" id="soda"
<label for="soda">3/4 tsp baking soda</label><div id="soda_log"></div><p>
<input type="checkbox" name="ingredients" value="powder" id="powder"
<label for="powder">1/2 tsp baking powder</label><div id="powder_log"></div><p>
<input type="checkbox" name="ingredients" value="salt" id="salt"
<label for="salt">1/4 tsp salt</label><div id="salt_log"></div><p>
</div>
</form>
<script>
$( "input#milk" ).on( "click", function() {
$( "#milk_log" ).html( $( "input#milk:checked" ).val() + " is checked!" );
$("#milk_log" ).fadeOut( 1500, function() {
});
});
$( "input#vinegar" ).on( "click", function() {
$( "#vinegar_log" ).html( $( "input#vinegar:checked" ).val() + " is checked!" );
$("#vinegar_log" ).fadeOut( 1500, function() {
});
});
$( "input#sugar" ).on( "click", function() {
$( "#sugar_log" ).html( $( "input#sugar:checked" ).val() + " is checked!" );
$("#sugar_log").fadeOut( 1500, function() {
});
});
$( "input#oil" ).on( "click", function() {
$( "#oil_log" ).html( $( "input#oil:checked" ).val() + " is checked!" );
$("#oil_log").fadeOut( 1500, function() {
});
});
$( "input#vanilla" ).on( "click", function() {
$( "#vanilla_log" ).html( $( "input#vanilla:checked" ).val() + " is checked!" );
$("#vanilla_log").fadeOut ( 1500, function() {
});
});
$( "input#extract" ).on( "click", function() {
$( "#extract_log" ).html( $( "input#extract:checked" ).val() + " is checked!" );
$("#extract_log").fadeOut ( 1500, function () {
});
});
$( "input#flour" ).on( "click", function() {
$( "#flour_log" ).html( $( "input#flour:checked" ).val() + " is checked!" );
$("#flour_log").fadeOut ( 1500, function() {
});
});
$( "input#cocoa" ).on( "click", function() {
$( "#cocoa_log" ).html( $( "input#cocoa:checked" ).val() + " is checked!" );
$("#cocoa_log").fadeOut ( 1500, function() {
});
});
$( "input#soda" ).on( "click", function() {
$( "#soda_log" ).html( $( "input#soda:checked" ).val() + " is checked!" );
$("#soda_log").fadeOut ( 1500, function() {
});
});
$( "input#powder" ).on( "click", function() {
$( "#powder_log" ).html( $( "input#powder:checked" ).val() + " is checked!" );
$("#powder_log").fadeOut ( 1500, function() {
});
});
$( "input#salt" ).on( "click", function() {
$( "#salt_log" ).html( $( "input#salt:checked" ).val() + " is checked!" );
$("#salt_log").fadeOut ( 1500, function() {
});
});
$(document).ready(function() {
$( "img" ).click(function() {
$( this ).hide( 2000, function() {
$( this ).remove();
});
});
});
$(document).ready(function() {
$("li").click(function() {
$("li").removeClass("selected");
$(this).addClass("selected");
});
});
</script>
<section class="instructions box">
<h2>Instructions:</h2>
<h3><p><em>(Click on each line of instructions as you progress to highlight and easily keep track of where you are!)</em></p></h3>
<li> Preheat oven to 350 degrees and line a muffin pan with paper or foil liners.</li><br>
<img class="pan" src="images/pan.jpg">
<p>
<li>Whisk together the soy milk and vinegar in a large bowl, and set aside for a few minutes to curdle. Add the sugar, oil, vanilla extract, and other extract, if using, to the soy milk mixture and beat until foamy. In a separate bowl, sift together the flour, cocoa powder, baking soda, baking powder, and salt. Add in two batches to wet ingredients and beat until no large lumps remain (a few tiny lumps are OK).</li><br>
<img class="mix" src="images/mix.jpg">
<p>
<li>Pour into liners, filling 3/4 of the way. Bake 18 to 20 minutes, until a toothpick inserted into the center comes out clean. Transfer to a cooling rack and let cool completely.</li><br>
<img class="cool" src="images/cool.jpg">
<p>
<li>Once thoroughly cooled, iced with favourite vegan icing and you're done!</li><br>
<img class="fini" src="images/fini.jpg">
</section>
<br>
<br>
<section class="credit">
<h3>Recipe credit goes to "Vegan Cupcakes Take Over The World" by Isa Chandra Moskowitz.</h3>
</section>
</body>
</html>
<!-- $('.expose').click(function(e){
$(this).css('z-index','99999');
$('#overlay').fadeIn(300);
});
$('#overlay').click(function(e){
$('#overlay').fadeOut(300, function(){
$('.expose').css('z-index','1');
});
});
<div class="expose">Some content</div>
<textarea class="expose">Some content</textarea><br />
<input type="text" class="expose" value="Some content" /><br />
<div id="overlay"></div>