Files
medicalalert-web-reloaded/wp/wp-content/themes/thbusiness/js/scripts.js
Tony Volpe 4eb982d7a8 Merged in feature/from-pantheon (pull request #16)
code from pantheon

* code from pantheon
2024-01-10 17:03:02 +00:00

29 lines
598 B
JavaScript

/* SCROLL UP */
jQuery(document).ready(function(){
jQuery(window).scroll(function(){
if (jQuery(this).scrollTop() > 350) {
jQuery('.scrollup, .scrollup:before').fadeIn();
} else {
jQuery('.scrollup, .scrollup:before').fadeOut();
}
});
jQuery('.scrollup').click(function(){
jQuery("html, body").animate({ scrollTop: 0 }, 600);
return false;
});
});
/* SEARCH BOX */
jQuery(document).ready(function(){
jQuery(".th-search-button-icon").click(function(){
jQuery(".th-search-box-container").toggle('fast');
}
);
});