Skip to content

Commit

Permalink
add render for visit modal in home
Browse files Browse the repository at this point in the history
  • Loading branch information
karnaud committed May 4, 2016
1 parent 93866d2 commit 2da8d51
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 10 additions & 5 deletions app/assets/javascripts/home.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ $(document).ready ->
$("html, body").animate({ scrollTop: 0 }, 600)
$('#calendar').fullCalendar('render')

if $('#visit_modal').length > 0
setTimeout (->
$('#visit_modal').modal('show')
return
), 4000
# if $('#visit_modal').length > 0
# setTimeout (->
# $('#visit_modal').modal('show')
# return
# ), 4000

setTimeout (->
$('#visit_modal').modal 'show'
return
), 1000

$('.get-involved-link').click (e) ->
$('#visit_modal').modal('hide')
Expand Down
1 change: 1 addition & 0 deletions app/views/home/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
%iframe{allowfullscreen: "", frameborder: "0", src: "//www.youtube.com/embed/zIr5t_-pRQU", style:"position:absolute;top:0;left:0;width:100%;height:100%"}
= render 'modals/visit_modal'
%section#slideshow-container
.banner
Expand Down

1 comment on commit 2da8d51

@kirilind
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solves #14

Please sign in to comment.