summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthewsotoudeh <matthewsot@outlook.com>2014-08-31 10:54:19 -0700
committermatthewsotoudeh <matthewsot@outlook.com>2014-08-31 10:54:19 -0700
commitb06e531440b437ffbe19d20552643ea61336caeb (patch)
tree7068cffa4d6a4ea4a92c7082cebe34c864b34cd4
parent7eeb8847629cd12e7e19b4975b031c4b68c0cd72 (diff)
parallax thank you background
-rw-r--r--Classfinder/Classfinder/Views/Default/ThankYou.cshtml21
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback