|
|
Line 129: |
Line 129: |
| </div> | | </div> |
| </body> | | </body> |
- |
| |
- | <!--SPIDER-->
| |
- | <script>
| |
- | var mouseY = 0;
| |
- | $(document).mousemove(function(e){
| |
- | mouseY = e.pageY;
| |
- | });
| |
- |
| |
- | // cache the selector
| |
- | var follower = $("#follower");
| |
- | var yp = 0;
| |
- | var loop = setInterval(function(){
| |
- | // change 12 to alter damping higher is slower
| |
- | yp += (mouseY - yp) / 12;
| |
- | follower.css({top:yp});
| |
- |
| |
- | }, 30);
| |
- | </script>
| |
- | <!--SLIDING SIDE BAR-->
| |
- | <script>
| |
- | $("#menu-toggle").click(function(e) {
| |
- | e.preventDefault();
| |
- | $("#wrapper").toggleClass("active");
| |
- | });
| |
- |
| |
- | $('body').scrollspy({ target: '#spy', offset:80});
| |
- |
| |
- | $('a[href*=#]:not([href=#])').click(function() {
| |
- | if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname == this.hostname) {
| |
- |
| |
- | var target = $(this.hash);
| |
- | target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
| |
- | if (target.length) {
| |
- | $('html,body').animate({
| |
- | scrollTop: target.offset().top
| |
- | }, 1000);
| |
- | return false;
| |
- | }
| |
- | }
| |
- | });
| |
- | </script>
| |
- | <!--MAIN NAVBAR-->
| |
- | <script>
| |
- | $('.dropdown').hover(function(){
| |
- | $('.dropdown-toggle', this).trigger('click');
| |
- | });
| |
- | </script>
| |
| </html> | | </html> |