diff options
author | matthewsotoudeh <matthewsot@outlook.com> | 2014-08-31 10:54:19 -0700 |
---|---|---|
committer | matthewsotoudeh <matthewsot@outlook.com> | 2014-08-31 10:54:19 -0700 |
commit | b06e531440b437ffbe19d20552643ea61336caeb (patch) | |
tree | 7068cffa4d6a4ea4a92c7082cebe34c864b34cd4 | |
parent | 7eeb8847629cd12e7e19b4975b031c4b68c0cd72 (diff) |
parallax thank you background
-rw-r--r-- | Classfinder/Classfinder/Views/Default/ThankYou.cshtml | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/Classfinder/Classfinder/Views/Default/ThankYou.cshtml b/Classfinder/Classfinder/Views/Default/ThankYou.cshtml index face704..edf3112 100644 --- a/Classfinder/Classfinder/Views/Default/ThankYou.cshtml +++ b/Classfinder/Classfinder/Views/Default/ThankYou.cshtml @@ -9,7 +9,7 @@ <link href='https://fonts.googleapis.com/css?family=Lato:400,700,300' rel='stylesheet' type='text/css'> <link href="~/Content/Styles/Site/Default/thankyou.css" rel="stylesheet" /> </head> - <body> + <body data-stellar-background-ratio="0.5"> <h1 class="title">Thank You!</h1> <h3>To the Homestead Class of 2017 Officers</h3> @@ -46,5 +46,22 @@ <h3>Adhiv, Matthew, and Will</h3> <a href="http://classfinder.me" target="_blank"><img src="~/Content/Images/logo.png" alt="classfinder" /></a> -</body> + + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/stellar.js/0.6.2/jquery.stellar.min.js"></script> + <script type="text/javascript"> + var stellarDestroyed = true; + window.onresize = function () { + if (window.innerWidth <= 500) { + $.stellar("destroy"); + stellarDestroyed = true; + } else if(stellarDestroyed) { + $.stellar(); + stellarDestroyed = false; + } + }; + + window.onresize(); + </script> + </body> </html>
\ No newline at end of file |