add medic care template
This commit is contained in:
7
web/healthcare/medic_care/js/bootstrap.bundle.min.js
vendored
Normal file
7
web/healthcare/medic_care/js/bootstrap.bundle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
68
web/healthcare/medic_care/js/custom.js
Normal file
68
web/healthcare/medic_care/js/custom.js
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
(function ($) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// NAVBAR
|
||||
$('.navbar-nav .nav-link').click(function(){
|
||||
$(".navbar-collapse").collapse('hide');
|
||||
});
|
||||
|
||||
// REVIEWS CAROUSEL
|
||||
$('.reviews-carousel').owlCarousel({
|
||||
center: true,
|
||||
loop: true,
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 300,
|
||||
smartSpeed: 500,
|
||||
responsive:{
|
||||
0:{
|
||||
items:1,
|
||||
},
|
||||
768:{
|
||||
items:2,
|
||||
margin: 100,
|
||||
},
|
||||
1280:{
|
||||
items:2,
|
||||
margin: 100,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Banner Carousel
|
||||
var myCarousel = document.querySelector('#myCarousel')
|
||||
var carousel = new bootstrap.Carousel(myCarousel, {
|
||||
interval: 1500,
|
||||
})
|
||||
|
||||
// REVIEWS NAVIGATION
|
||||
function ReviewsNavResize(){
|
||||
$(".navbar").scrollspy({ offset: -94 });
|
||||
|
||||
var ReviewsOwlItem = $('.reviews-carousel .owl-item').width();
|
||||
|
||||
$('.reviews-carousel .owl-nav').css({'width' : (ReviewsOwlItem) + 'px'});
|
||||
}
|
||||
|
||||
$(window).on("resize", ReviewsNavResize);
|
||||
$(document).on("ready", ReviewsNavResize);
|
||||
|
||||
// HREF LINKS
|
||||
$('a[href*="#"]').click(function (event) {
|
||||
if (
|
||||
location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
|
||||
var target = $(this.hash);
|
||||
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
|
||||
if (target.length) {
|
||||
event.preventDefault();
|
||||
$('html, body').animate({
|
||||
scrollTop: target.offset().top - 74
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
})(window.jQuery);
|
||||
4
web/healthcare/medic_care/js/jquery.min.js
vendored
Normal file
4
web/healthcare/medic_care/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
web/healthcare/medic_care/js/owl.carousel.min.js
vendored
Normal file
7
web/healthcare/medic_care/js/owl.carousel.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
web/healthcare/medic_care/js/scrollspy.min.js
vendored
Normal file
1
web/healthcare/medic_care/js/scrollspy.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function($,window,document,undefined){$.fn.extend({scrollspy:function(options){var defaults={namespace:"scrollspy",activeClass:"active",animate:!1,duration:1e3,offset:0,container:window,replaceState:!1};options=$.extend({},defaults,options);var add=function(ex1,ex2){return parseInt(ex1,10)+parseInt(ex2,10)},findElements=function(links){for(var elements=[],i=0;i<links.length;i++){var link=links[i],hash=$(link).attr("href"),element=$(hash);if(element.length>0){var top=Math.floor(element.offset().top),bottom=top+Math.floor(element.outerHeight());elements.push({element:element,hash:hash,top:top,bottom:bottom})}}return elements},findLink=function(links,hash){for(var i=0;i<links.length;i++){var link=$(links[i]);if(link.attr("href")===hash)return link}},resetClasses=function(links){for(var i=0;i<links.length;i++)$(links[i]).parent().removeClass(options.activeClass)},scrollArea="";return this.each(function(){for(var element=this,container=$(options.container),links=$(element).find("a"),i=0;i<links.length;i++){var link=links[i];$(link).on("click",function(e){var target=$(this).attr("href"),$target=$(target);if($target.length>0){var top=add($target.offset().top,options.offset);options.animate?$("html, body").animate({scrollTop:top},options.duration):window.scrollTo(0,top),e.preventDefault()}})}resetClasses(links);var elements=findElements(links),trackChanged=function(){for(var link,position={top:add($(this).scrollTop(),Math.abs(options.offset)),left:$(this).scrollLeft()},i=0;i<elements.length;i++){var current=elements[i];if(position.top>=current.top&&position.top<current.bottom){var hash=current.hash;if(link=findLink(links,hash)){options.onChange&&scrollArea!==hash&&(options.onChange(current.element,$(element),position),scrollArea=hash),options.replaceState&&history.replaceState({},"","/"+hash),resetClasses(links),link.parent().addClass(options.activeClass);break}}}!link&&"exit"!==scrollArea&&options.onExit&&(options.onExit($(element),position),resetClasses(links),scrollArea="exit",options.replaceState&&history.replaceState({},"","/"))};container.bind("scroll."+options.namespace,function(){trackChanged()}),$(document).ready(function(e){trackChanged()})})}})}(jQuery,window,document);
|
||||
Reference in New Issue
Block a user