(Added links for Practices) |
(Added modeling functionality for Practices) |
||
Line 30: | Line 30: | ||
$('.practices-text-wrapper').hide(); | $('.practices-text-wrapper').hide(); | ||
$('#div2').show(); | $('#div2').show(); | ||
+ | }); | ||
+ | $('#modeling').click(function() { | ||
+ | $('.practices-text-wrapper').hide(); | ||
+ | $('#div3').show(); | ||
}); | }); | ||
}); | }); |
Latest revision as of 02:13, 18 October 2018
$(document).ready(function(){ // Add smooth scrolling to home description when you click on down chevron arrow $("#chevron-button").on('click', function(event) { if (this.hash !== "") { event.preventDefault();
var hash = this.hash;
$('html, body').animate({ scrollTop: $(hash).offset().top }, 800, function(){ window.location.hash = hash; }); } });
// Practices buttons
$('#showAll').click(function() { $('.practices-text-wrapper').show(); }); $('.button-single').click(function() { $('.practices-text-wrapper').hide(); $('#div' + $(this).attr('id')).show(); });
$('#testing').click(function() {
$('.practices-text-wrapper').hide(); $('#div4').show(); }); $('#evaluating').click(function() { $('.practices-text-wrapper').hide(); $('#div2').show(); });
$('#modeling').click(function() {
$('.practices-text-wrapper').hide(); $('#div3').show(); }); });