add medilab template

This commit is contained in:
2024-05-21 05:07:45 +02:00
parent 0d7843a5e6
commit 16dd2fab00
22 changed files with 3874 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
(function($) {
// Add smooth scrolling to all links in navbar
$(".navbar a,a.btn-appoint, .quick-info li a, .overlay-detail a").on('click', function(event) {
var hash = this.hash;
if (hash) {
event.preventDefault();
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 900, function() {
window.location.hash = hash;
});
}
});
$(".navbar-collapse a").on('click', function() {
$(".navbar-collapse.collapse").removeClass('in');
});
//jQuery to collapse the navbar on scroll
$(window).scroll(function() {
if ($(".navbar-default").offset().top > 50) {
$(".navbar-fixed-top").addClass("top-nav-collapse");
} else {
$(".navbar-fixed-top").removeClass("top-nav-collapse");
}
});
})(jQuery);