diff options
Diffstat (limited to 'Recipes/Mars Bar Slice.html')
| -rw-r--r-- | Recipes/Mars Bar Slice.html | 325 |
1 files changed, 325 insertions, 0 deletions
diff --git a/Recipes/Mars Bar Slice.html b/Recipes/Mars Bar Slice.html new file mode 100644 index 0000000..4437cd8 --- /dev/null +++ b/Recipes/Mars Bar Slice.html @@ -0,0 +1,325 @@ +<!doctype html> +<html> + <head> + <meta charset="UTF-8" /> + <style type="text/css"> + /* Shared styles */ + body { + font-family: Helvetica, sans-serif; + font-size: 16px; + color: #34302e; + margin: 0.25in; + } + .name { + font-size: 18px; + font-family: Helvetica, sans-serif; + font-weight: normal; + margin: 0 0 10px 0; + } + .categories { + color: #605d5d; + font-size: 14px; + font-family: Helvetica, sans-serif; + font-style: italic; + } + .rating { + color: #d10505; + font-size: 14px; + } + .metadata { + font-size: 14px; + } + .infobox p { + margin: 0; + line-height: 150%; + } + .subhead { + color: #d10505; + font-weight: bold; + font-size: 14px; + text-transform: uppercase; + margin: 10px 0; + } + + .ingredients p { + margin: 4px 0; + } + /* To prevent nutrition/directions from getting too close + to ingredients */ + .ingredients { + padding-bottom: 10px; + } + .clear { + clear: both; + } + a { + color: #4990e2; + text-decoration: none; + } + /* Full page specific styles */ + .text { + line-height: 130%; + } + .photobox { + float: left; + margin-right: 14px; + } + .photo { + max-width: 140px; + max-height: 140px; + width: auto; + height: auto; + } + + .inline-image { + max-width: 25%; + max-height: 25%; + width: auto; + height: auto; + } + .photoswipe { + border: 1px #dddddd solid; + cursor: pointer; + } + .pswp__caption__center { + text-align: center !important; + } + .recipe { + page-break-after: always; + } + .recipe:first-child { + border-top: 0 none; + margin-top: 0; + padding-top: 0; + } + </style> + </head> + <body> + <!-- Recipe --> + <div class="recipe" itemscope itemtype="http://schema.org/Recipe"> + <div class="infobox"> + <!-- Image --> + + <div class="photobox"> + <a href="#"> + <img + src="Images/E1DE9B41-8292-46A3-B78D-FAFA0A2BBC72/8260A834-7FC7-4D91-A541-1663E1E9490D.jpg" + itemprop="image" + class="photo photoswipe" + /> + </a> + </div> + + <!-- Name --> + <h1 itemprop="name" class="name">Mars Bar Slice</h1> + + <!-- Info --> + + <!-- Rating, categories --> + <p itemprop="aggregateRating" class="rating" value="5">★★★★★</p> + + <p class="metadata"> + <!-- Cook time, prep time, servings, difficulty --> + + <b>Prep Time: </b><span itemprop="prepTime">5</span> + + <b>Cook Time: </b><span itemprop="cookTime">15</span> + + <b>Total Time: </b><span itemprop="totalTime">120</span> + + <b>Difficulty: </b><span itemprop="difficulty">Easy</span> + + <b>Servings: </b><span itemprop="recipeYield">16</span> + + <!-- Source --> + </p> + + <div class="clear"></div> + </div> + + <div class="left-column"> + <!-- Ingredients --> + + <div class="ingredientsbox"> + <h3 class="subhead">Ingredients</h3> + <div class="ingredients text"> + <p class="line" itemprop="recipeIngredient"> + <strong><strong>Slice:</strong></strong> + </p> + <p class="line" itemprop="recipeIngredient"> + <strong>220</strong>g Mars Bar chocolates + </p> + <p class="line" itemprop="recipeIngredient"> + <strong>3</strong> cups of Rice Bubbles cereal + </p> + <p class="line" itemprop="recipeIngredient"> + <strong>90</strong>g butter + </p> + <br /> + <p class="line" itemprop="recipeIngredient"> + <strong><strong>Topping:</strong></strong> + </p> + <p class="line" itemprop="recipeIngredient"> + <strong>200</strong>g milk chocolate + </p> + <p class="line" itemprop="recipeIngredient"> + <strong>30</strong>g butter + </p> + </div> + </div> + + <!-- Nutrition (in two-column mode it goes below the ingredients) --> + </div> + + <div class="right-column"> + <!-- Description --> + + <!-- Directions --> + + <div class="directionsbox"> + <h3 class="subhead">Directions</h3> + <div itemprop="recipeInstructions" class="directions text"> + <p class="line"> + <strong><strong>Mars Bar Slice:</strong></strong + ><br />1. Melt 90g butter and Mars Bars in a saucepan over low + heat until smooth.<br />2. Stir in rice bubbles and transfer + mixture into a slice tray. + </p> + <p class="line"> + <strong><strong>Topping:</strong></strong + ><br />3. In a heatproof bowl, melt 200g milk chocolate and 30g + butter over low heat using a double boiler.<br />4. Once melted, + spread the chocolate mixture evenly over the slice in the tray.<br />5. + Chill in the fridge until firm.<br /> + </p> + </div> + </div> + + <!-- Notes --> + + <div class="notesbox"> + <h3 class="subhead">Notes</h3> + <div itemprop="comment" class="notes text"> + <p>Makes approximately 450g - 16 services @ 28g each</p> + </div> + </div> + + <!-- Nutrition (in regular mode it goes below the notes) --> + + <!-- Used in two different places depending on the recipe layout --> + + <div class="nutritionbox textbox"> + <h3 class="subhead">Nutrition</h3> + <div itemprop="nutrition" class="nutrition text"> + <p> + <strong>Serving size</strong> | 28g<br /><strong + >Calories per serving</strong + > + | 136cals + </p> + <p> + <strong>Nutrient</strong> | Amount/Serving (28g)<br /><strong + >Total Fat</strong + > + | 8.4g <br /><strong>Protein</strong> | 1g <br /><strong + >Total Carbs</strong + > + | 14.1g <br /> + </p> + </div> + </div> + </div> + + <div class="clear"></div> + </div> + + <!-- Photo gallery is only included when exporting. --> + <!-- PhotoSwipe gallery --> + + <link rel="stylesheet" href="Resources/PhotoSwipe/photoswipe.css" /> + <link + rel="stylesheet" + href="Resources/PhotoSwipe/default-skin/default-skin.css" + /> + <script src="Resources/PhotoSwipe/photoswipe.min.js"></script> + <script src="Resources/PhotoSwipe/photoswipe-ui-default.min.js"></script> + + <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"> + <div class="pswp__bg"></div> + <div class="pswp__scroll-wrap"> + <div class="pswp__container"> + <div class="pswp__item"></div> + <div class="pswp__item"></div> + <div class="pswp__item"></div> + </div> + <div class="pswp__ui pswp__ui--hidden"> + <div class="pswp__top-bar"> + <div class="pswp__counter"></div> + <button + class="pswp__button pswp__button--close" + title="Close" + ></button> + </div> + <button + class="pswp__button pswp__button--arrow--left" + title="Previous" + ></button> + <button + class="pswp__button pswp__button--arrow--right" + title="Next" + ></button> + <div class="pswp__caption"> + <div class="pswp__caption__center"></div> + </div> + </div> + </div> + </div> + + <script type="text/javascript"> + var openPhotoSwipe = function (event) { + var pswp = document.querySelector(".pswp"); + + var element = event.target; + var src = element.getAttribute("src"); + + // build items array + var items = []; + + var index = 0; + for (var i = 0; i < items.length; i++) { + var item = items[i]; + if (item.src == src) { + index = i; + } + } + + var options = { + index: index, + history: false, + focus: true, + captionEl: true, + fullscreenEl: false, + zoomEl: false, + shareEl: false, + preloaderEl: false, + bgOpacity: 0.9, + showHideOpacity: true, + }; + + var gallery = new PhotoSwipe( + pswp, + PhotoSwipeUI_Default, + items, + options, + ); + gallery.init(); + }; + + var elements = document.querySelectorAll(".photoswipe"); + for (var i = 0; i < elements.length; i++) { + var element = elements[i]; + element.addEventListener("click", openPhotoSwipe); + } + </script> + </body> +</html> |
