Open lschneiderman opened 8 years ago
I'm sure this is a simple problem, but I'm pulling my hair out.
I'm trying to make the element.subheads_wrapper sticky on my page.
.subheads_wrapper sticky
I've put the latest waypoints files under Inetpub\wwwroot\includes\waypoints-master.
My page is in Inetpub\wwwroot\mypage\index.php
In the header, I've attached the proper files I think:
<script src="../includes/waypoints-master/lib/jquery.waypoints.min.js"></script> <script src="../includes/waypoints-master/lib/shortcuts/sticky.min.js"></script>
css:
.stuck { position:fixed; top:0; }
jquery:
var sticky = new Waypoint.Sticky({ element: $('.subheads_wrapper')[0] });
But I keep getting the error:
Waypoint.Sticky is not a constructor
What am I doing wrong?
Same problem here! :(
Just paste or type the code to the sticky.js file.
I'm sure this is a simple problem, but I'm pulling my hair out.
I'm trying to make the element
.subheads_wrapper sticky
on my page.I've put the latest waypoints files under Inetpub\wwwroot\includes\waypoints-master.
My page is in Inetpub\wwwroot\mypage\index.php
In the header, I've attached the proper files I think:
css:
jquery:
But I keep getting the error:
Waypoint.Sticky is not a constructor
What am I doing wrong?