+$(document).ready(function () {
+ $(window).scroll(function () {
+ if ($(document).scrollTop() > 100) {
+ $(".fixed-top").addClass("scrolled");
+ $(".menu-text").addClass("hidden");
+ } else {
+ $(".fixed-top").removeClass("scrolled");
+ $(".menu-text").removeClass("hidden");
+ }
+ });
+});
+
//jQuery to collapse the navbar on scroll
$(window).scroll(function() {
if ($(".navbar").offset().top > 50) {
}
});
-//jQuery for page scrolling feature - requires jQuery Easing plugin
-$(function() {
- $('.page-scroll a, a.page-scroll').bind('click', function(event) {
- var $anchor = $(this);
- $('html, body').stop().animate({
- scrollTop: $($anchor.attr('href')).offset().top
- }, 1500, 'easeInOutExpo');
- event.preventDefault();
- });
+$("#scrollto").click(function() {
+ $('html, body').animate({
+ scrollTop: $("#features").offset().top - $('.fixed-top').height()
+ }, 1500, 'easeInOutExpo');
});
$.query = function(name){
callback(eval("(" + response + ")"));
}
});
-};
+};
\ No newline at end of file