Skip to content
Snippets Groups Projects
Commit 3ba3cf52 authored by David Miller's avatar David Miller
Browse files

added back the floating labels on the form

parent aa1403b1
No related branches found
No related tags found
No related merge requests found
......@@ -4,24 +4,11 @@
"use strict"; // Start of use strict
// jQuery for page scrolling feature - requires jQuery Easing plugin
$('.page-scroll a').bind('click', function(event) {
$('page-scroll a').bind('click', function(event) {
var $anchor = $(this);
<<<<<<< HEAD
$('html, body').stop().animate({
scrollTop: ($($anchor.attr('href')).offset().top - 50)
}, 1250, 'easeInOutExpo');
=======
$('html, body')
.bind('scroll mousedown DOMMouseScroll mousewheel keyup', function(){
$('html, body').stop();
})
.stop()
.animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500, 'easeInOutExpo');
>>>>>>> 3ba328e3235fd85c0f2f9bf73e21dc2e6a7f3f0a
event.preventDefault();
});
......@@ -36,18 +23,22 @@
$('.navbar-toggle:visible').click();
});
<<<<<<< HEAD
// Offset for Main Navigation
$('#mainNav').affix({
offset: {
top: 100
}
})
=======
// Highlight the top nav as scrolling occurs
$('body').scrollspy({
target: '.navbar-fixed-top'
});
>>>>>>> 3ba328e3235fd85c0f2f9bf73e21dc2e6a7f3f0a
// Floating label headings for the contact form
$(function() {
$("body").on("input propertychange", ".floating-label-form-group", function(e) {
$(this).toggleClass("floating-label-form-group-with-value", !!$(e.target).val());
}).on("focus", ".floating-label-form-group", function() {
$(this).addClass("floating-label-form-group-with-focus");
}).on("blur", ".floating-label-form-group", function() {
$(this).removeClass("floating-label-form-group-with-focus");
});
});
})(jQuery); // End of use strict
......@@ -3,4 +3,4 @@
* Copyright 2013-2016 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
*/
!function(t){"use strict";t(".page-scroll a").bind("click",function(o){var a=t(this);t("html, body").stop().animate({scrollTop:t(a.attr("href")).offset().top-50},1250,"easeInOutExpo"),o.preventDefault()}),t("body").scrollspy({target:".navbar-fixed-top",offset:51}),t(".navbar-collapse ul li a:not(.dropdown-toggle)").click(function(){t(".navbar-toggle:visible").click()}),t("#mainNav").affix({offset:{top:100}})}(jQuery);
\ No newline at end of file
!function(o){"use strict";o("page-scroll a").bind("click",function(t){var l=o(this);o("html, body").stop().animate({scrollTop:o(l.attr("href")).offset().top-50},1250,"easeInOutExpo"),t.preventDefault()}),o("body").scrollspy({target:".navbar-fixed-top",offset:51}),o(".navbar-collapse ul li a:not(.dropdown-toggle)").click(function(){o(".navbar-toggle:visible").click()}),o("#mainNav").affix({offset:{top:100}}),o(function(){o("body").on("input propertychange",".floating-label-form-group",function(t){o(this).toggleClass("floating-label-form-group-with-value",!!o(t.target).val())}).on("focus",".floating-label-form-group",function(){o(this).addClass("floating-label-form-group-with-focus")}).on("blur",".floating-label-form-group",function(){o(this).removeClass("floating-label-form-group-with-focus")})})}(jQuery);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment