diff --git a/app/assets/javascripts/preorder.js.coffee b/app/assets/javascripts/preorder.js.coffee index aec14e9..fb7da4e 100644 --- a/app/assets/javascripts/preorder.js.coffee +++ b/app/assets/javascripts/preorder.js.coffee @@ -11,6 +11,7 @@ Selfstarter = $("#amazon_button").addClass("disabled") unless $("#amazon_button").hasClass("disabled") init: -> checkoutOffset = $('body').height() - 101 #needs to be done upon init + $("#email").bind "textchange", -> Selfstarter.validateEmail() $("#email").bind "hastext", -> @@ -19,6 +20,12 @@ Selfstarter = $("#email").change -> Selfstarter.firstTime = false + # init placeholder image for video + $("#video_image").on "click", -> + $("#player").removeClass("hidden") + $(this).hide() + $("#player iframe").click() + # if they are using the optional payment options section on the checkout page, need to conditional fix the email # field and button to the bottom of the page so it's displayed after selecting a radio button if $('.payment_options').length > 0 diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index e19465f..ccdd0e3 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -12,3 +12,7 @@ *= require reset *= require main */ +.hidden +{ + display: none; +} diff --git a/app/views/preorder/homepage/_stats.html.erb b/app/views/preorder/homepage/_stats.html.erb index 4eb8c29..e8aebd1 100644 --- a/app/views/preorder/homepage/_stats.html.erb +++ b/app/views/preorder/homepage/_stats.html.erb @@ -1,6 +1,20 @@