Skip to content

Commit

Permalink
pictures of beer styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin committed Jan 6, 2020
1 parent f93f9d4 commit b3ac515
Show file tree
Hide file tree
Showing 77 changed files with 29 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static/img/beer_style_photos/American IPA.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static/img/beer_style_photos/American Stout.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static/img/beer_style_photos/Baltic Porter.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static/img/beer_style_photos/Belgian Pale Ale.jpg
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 static/img/beer_style_photos/Belgian Tripel.jpg
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 static/img/beer_style_photos/Berliner Weisse.jpg
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 static/img/beer_style_photos/Biere de Garde.jpg
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 static/img/beer_style_photos/Blonde Ale.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static/img/beer_style_photos/Brown Porter.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static/img/beer_style_photos/Cream Ale.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static/img/beer_style_photos/Doppelbock.jpg
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 static/img/beer_style_photos/Dry Stout.jpg
Binary file added static/img/beer_style_photos/Dunkelweizen.jpg
Binary file added static/img/beer_style_photos/Eisbock.jpg
Binary file added static/img/beer_style_photos/English IPA.jpg
Binary file added static/img/beer_style_photos/Flanders Red Ale.jpg
Binary file added static/img/beer_style_photos/Fruit Lambic.jpg
Binary file added static/img/beer_style_photos/Gueuze.jpg
Binary file added static/img/beer_style_photos/Imperial IPA.jpg
Binary file added static/img/beer_style_photos/Irish Red Ale.jpg
Binary file added static/img/beer_style_photos/Kolsch.jpg
Binary file added static/img/beer_style_photos/Mild.jpg
Binary file added static/img/beer_style_photos/Munich Dunkel.jpg
Binary file added static/img/beer_style_photos/Munich Helles.jpg
Binary file added static/img/beer_style_photos/Oatmeal Stout.jpg
Binary file added static/img/beer_style_photos/Old Ale.jpg
Binary file added static/img/beer_style_photos/Robust Porter.jpg
Binary file added static/img/beer_style_photos/RyePA.jpg
Binary file added static/img/beer_style_photos/Saison.jpg
Binary file added static/img/beer_style_photos/Sweet Stout.jpg
Binary file added static/img/beer_style_photos/Traditional Bock.jpg
Binary file added static/img/beer_style_photos/Vienna Lager.jpg
Binary file added static/img/beer_style_photos/Weizen Weissbier.jpg
Binary file added static/img/beer_style_photos/Weizenbock.jpg
Binary file added static/img/beer_style_photos/Witbier.jpg
26 changes: 26 additions & 0 deletions static/js/system.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

// Change photo
var change_style_image = function(){

var current_style = $('select[name="style"]').val()
document.getElementById('style-img').src = "../static/img/beer_style_photos/" + current_style + '.jpg'
console.log("../static/img/beer_style_photos/" + current_style)

}


// Initial run of function when page loads
change_style_image()


// Grab currently selected style
$('select[name="style"]')[0].addEventListener("change", function() {

change_style_image()

});





1 change: 1 addition & 0 deletions templates/brewculator/brewculator.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ <h1>Brewculator</h1>
<br><br><br>

<!-- App Scripts -->
<script src="../static/js/system.js"></script>
<script src="../static/js/fermentables.js"></script>
<script src="../static/js/hops.js"></script>
<script src="../static/js/mash.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion templates/brewculator/system.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ <h3>System</h3>
</div>

<div class='system-app-div'>

<img id=style-img src="" style="width: 200px; height: 200px;" class="img-thumbnail">
</div>

</div>

0 comments on commit b3ac515

Please sign in to comment.