Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
WIP – fixed social expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 22, 2015
1 parent dde3c67 commit b2df5d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions assets/js/src/cover.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ $ ->
_expand = ->
Uno.loadingBar 'hide'
Uno.search.form 'hide'
$(".cover").removeClass("collapsed")
$(".cover").removeClass 'collapsed'
$(".main").hide() unless isOpen

_collapsed = ->
$(".cover").addClass("collapsed")
Uno.search.form 'show'
$('.social.expanded').removeClass 'expanded'
$('.social').removeClass 'expanded'

if Uno.is 'page', 'home'
$('.cover').addClass 'animated'
Expand All @@ -22,9 +22,9 @@ $ ->
_collapsed() if isOpen or not Uno.is 'page', 'home'

$('#blog-button').click ->
$('.cover').toggleClass("collapsed")
$('.cover').toggleClass 'collapsed'
Uno.search.form 'toggle'
$('.social.expanded').toggleClass 'expanded'
$('.social').toggleClass 'expanded'
action = if $('.main').is(":visible") then 'hide' else 'show'
$('.main')[action]()

Expand Down
Loading

0 comments on commit b2df5d5

Please sign in to comment.