(Add JS for Practices to mainJS) |
(Added links for Practices) |
||
Line 22: | Line 22: | ||
$('.practices-text-wrapper').hide(); | $('.practices-text-wrapper').hide(); | ||
$('#div' + $(this).attr('id')).show(); | $('#div' + $(this).attr('id')).show(); | ||
+ | }); | ||
+ | $('#testing').click(function() { | ||
+ | $('.practices-text-wrapper').hide(); | ||
+ | $('#div4').show(); | ||
+ | }); | ||
+ | $('#evaluating').click(function() { | ||
+ | $('.practices-text-wrapper').hide(); | ||
+ | $('#div2').show(); | ||
}); | }); | ||
}); | }); |
Revision as of 00:35, 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(); }); });