From 30dac4509e28f07bacf29c3be3d58f8fa684b115 Mon Sep 17 00:00:00 2001 From: ryderr Date: Fri, 24 Oct 2014 14:25:39 -0400 Subject: adding video --- public/assets/javascripts/app.js | 8 ++++++++ public/assets/stylesheets/app.css | 34 ++++++++++++++++++++++++++++++++++ views/home.ejs | 5 +++++ 3 files changed, 47 insertions(+) diff --git a/public/assets/javascripts/app.js b/public/assets/javascripts/app.js index 9b46a3e..f26a782 100644 --- a/public/assets/javascripts/app.js +++ b/public/assets/javascripts/app.js @@ -17,6 +17,14 @@ else { new WOW().init(); +$('.hero .circle').click( function(){ + $('.videoModal').addClass('active'); +}); + +$('.videoModal .ion-ios7-close-empty').click( function(){ + $('.videoModal').removeClass('active'); +}); + var scene, cam, map; diff --git a/public/assets/stylesheets/app.css b/public/assets/stylesheets/app.css index 20498c0..4544fa3 100755 --- a/public/assets/stylesheets/app.css +++ b/public/assets/stylesheets/app.css @@ -92,6 +92,40 @@ a{ text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; } +.videoModal { + position: fixed; + width: 0; + height: 0; + background: rgba(255,255,255,0); + display: table; + opacity:0; + z-index: -1; + -webkit-transition:0.4s background + -moz-transition:0.4s background; + transition:0.4s background; +} + +.videoModal.active { + opacity:1; + z-index: 6; + width: 100%; + height: 100%; + background: rgba(255,255,255,0.9); +} + +.videoModal .ion-ios7-close-empty { + position: absolute; + right: 50px; + top: 60px; + font-size: 80px; + cursor:pointer; + color:#444; +} + +.videoModal .ion-ios7-close-empty:hover { + color:black; +} + #help-button { display: none; border-right:0px!important; diff --git a/views/home.ejs b/views/home.ejs index 85d6f23..7fe0c71 100755 --- a/views/home.ejs +++ b/views/home.ejs @@ -70,6 +70,11 @@ [[ include partials/sign-in ]] [[ include partials/footer ]] + +
+ +
+
[[ include partials/scripts ]] -- cgit v1.2.3-70-g09d2