Skip to content

Commit

Permalink
Tweaked index page, header, and footer; fixed #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pschfr committed May 12, 2017
1 parent 3a44944 commit bbaaeb4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion public/_partials/_footer.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ footer
p Edit on
a(href="#{githubURL}") GitHub.
.col-xs-4
p.text-center Please drink responsibly.
p.text-center Drink responsibly.
.col-xs-4
p.text-right © #{new Date().getFullYear()}
17 changes: 9 additions & 8 deletions public/_partials/_header.jade
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
nav.navbar.navbar-default.navbar-fixed-top
.container
.row
.col-xs-8
h1 #{title}
if title != 'Drinking Games'
.col-xs-4.text-center
h2#total Total: 0
header
nav.navbar.navbar-default.navbar-fixed-top
.container
.row
.col-xs-8
h1 #{title}
if title != 'Drinking Games'
.col-xs-4.text-center
h2#total Total: 0
2 changes: 1 addition & 1 deletion public/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
.col-sm-6.col-xs-12
a(href=(environment == "production" ? "/drink/articles/#{slug}.html" : "/articles/#{slug}.html"))
h1 #{article.title}
h4 Posted #{article.date}
h4.text-muted #{article.date}
2 changes: 1 addition & 1 deletion public/js/app.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
li = document.getElementsByTagName('li')
total = 0
for drink in li
drink.dataset.count = ''
drink.dataset.count = '0'
do (drink) ->
counter = 0
drink.addEventListener('click', (event) ->
Expand Down

0 comments on commit bbaaeb4

Please sign in to comment.