/*---LEFT BAR ACCORDION----*/
var ss;
var responsiveOpts = {
0: {
items: 1,
// nav: true
},
480: {
items: 2,
// nav: false
},
768: {
items: 3,
//nav: true,
// loop: false
}
};
var singleItemsOpts = {
0: {
items: 1,
// nav: true
},
480: {
items: 1,
// nav: false
},
768: {
items: 1,
//nav: true,
// loop: false
}
};
!function (e) {
"use strict";
e(document).ready(function () {
ss = {
init: function () {
var e = this;
e.initialized || (e.initialized = !0, e.build())
},
build: function () {
var t = this;
t.createOwlSliders(), t.createRevSlider()
},
createRevSlider: function () {
e(".revslider").length && e(".revslider").revolution({
delay: 9e3,
startwidth: 1170,
startheight: 623,
hideThumbs: 10,
hideTimerBar: "on",
onHoverStop: "off",
navType: "none",
fullWidth: "on"
})
},
createOwlSliders: function () {
if (e("#pos_sl").length > 0) {
e('#pos_sl').addClass('owl-theme');
}
e("#pos_sl").length && e("#pos_sl").owlCarousel({
responsiveClass: true,
responsive: responsiveOpts
}),
e("#sscslider").length && e("#sscslider").owlCarousel({
nav: true,
smartSpeed: 300,
dotsSpeed: 400,
// singleItem: true,
items: 1,
autoPlay: false,
navText: ["", ""]
}),
e("#qacslider").length && e("#qacslider").owlCarousel({
//nav: true,
smartSpeed: 300,
dotsSpeed: 400,
// singleItem: true,
items: 1,
responsiveClass: true,
responsive: singleItemsOpts,//single
autoHeight: true,
//autoPlay: false,
//navText: ["", ""],
// dots: true
}),
e(".blgslider").length && e(".blgslider").owlCarousel({
nav: true,
smartSpeed: 300,
dotsSpeed: 400,
responsiveClass: true,
responsive: singleItemsOpts,// single
autoHeight: true,
autoPlay: false,
navText: ["", ""],
// dots: true,
dotsNumbers: true,
afterInit: afterOWLinit
}),
e("#wlistslider").length && e("#wlistslider").owlCarousel({
nav: true,
smartSpeed: 300,
dotsSpeed: 400,
// singleItem: true,
responsiveClass: true,
responsive: singleItemsOpts,
autoPlay: false,
navText: ["", ""],
dots: false
}),
e("#aftbefslider").length && e("#aftbefslider").owlCarousel({
items: 1,
responsiveClass: true,
responsive: singleItemsOpts,
nav: true,
smartSpeed: 300,
scrollPerPage: true,
// slideBy: 4,
autoHeight: true,
dotsSpeed: 400,
autoPlay: false,
navText: ["", ""],
// dots: true
}),
e("#vsliderdiv").length && e("#vsliderdiv").owlCarousel({
responsiveClass: true,
responsive: singleItemsOpts,
nav: true,
smartSpeed: 300,
dotsSpeed: 400,
autoPlay: false,
navText: ["", ""],
dots: false
}),
e("#vsliderdiv2").length && e("#vsliderdiv2").owlCarousel({
responsiveClass: true,
responsive: responsiveOpts,
nav: true,
smartSpeed: 300,
dotsSpeed: 400,
autoPlay: false,
navText: ["", ""],
dots: false
})
},
}, ss.init()
function afterOWLinit() {
$.each(this.owl.userItems, function (i) {
var pafinatorsLink = $(this).closest('.blgslider').find('.owl-numbers');
var ssrc = ($(this).find('img').attr('src'));
$(pafinatorsLink[i]).append('');
});
$(this.owl.userItems).closest('.blgslider').find('.owl-dots').owlCarousel({
responsiveClass: true,
responsive: responsiveOpts,
nav: true,
autoWidth: true,
navText: ["", ""],
dots: false,
responsiveRefreshRate: 100,
afterInit: pageafterOWLinit
});
}
function pageafterOWLinit() {
$.each(this.owl.userItems, function (i) {
$(this).parent('.owl-item').removeAttr('style');
});
}
})
}(jQuery);
var Script = function () {
// sidebar toggle
$(function () {
responsiveView();
function responsiveView() {
var wSize = $(window).width();
var headeH = $('.header').height();
$('.pwrapper').css({ 'margin-top': headeH });
if (wSize > 767) {
$('#sidebar, #main-content, header, .lwdiv').removeClass('open');
$('#sidebar, #main-content, header').removeClass('clopen');
$('.rwdiv').removeClass('push');
$('.expandchild .sbnavul').removeAttr('style');
}
else {
if ($('.pos_navibase .expandchild .sbnavul li').hasClass('active')) {
$('.pos_navibase .expandchild .sbnavul').css({ 'display': 'none' });
$('.pos_navibase .expandchild .sbnavul').closest('li').removeClass('active').children('.sbnc').removeClass('active');
$('.pos_navibase .expandchild .sbnavul li.active').parent('.sbnavul').css({ 'display': 'block' });
$('.pos_navibase .expandchild .sbnavul li.active').parent('.sbnavul').closest('li').addClass('active').children('.sbnc').addClass('active');
}
else {
$('.pos_navibase .expandchild .sbnavul').css({ 'display': 'none' });
$('.pos_navibase .expandchild .sbnavul').closest('li').removeClass('active').children('.sbnc').removeClass('active');
}
}
//if (wSize < 801 && wSize > 767) {
// window.location.href = window.location.href;
//}
}
$(window).on('resize', responsiveView);
//$(window).on('resize', function(){window.location.href = window.location.href;});
});
$('.smenu li a').tooltip({
position: {
my: "left top",
at: "right+0 top-0"
}
});
$('.top-menu .nav li a, .ctooltip').tooltip({
tooltipClass: "tm_tooltip",
position: {
my: "left top",
at: "right+0 top-0"
}
});
$('.sepheader .commonbtn').tooltip({
tooltipClass: "tm_tooltip",
position: {
my: "left top",
at: "right+0 top-0"
}
});
$('.dental_cad .input-group-addon').tooltip({
tooltipClass: "org_tooltip",
position: {
my: "left bottom",
at: "left-5 top-10"
}
});
$('.sidebar-toggle-box .fa-bars').click(function () {
//alert('hello');
var wSize = $(window).width();
if ($(this).hasClass('sm-active')) {
$(this).removeClass('sm-active');
$(this).addClass('lg-active');
$('#sidebar, #main-content, header').addClass('clopen');
$('#sidebar, #main-content, header').removeClass('open');
}
else if ($(this).hasClass('lg-active')) {
$(this).removeClass('lg-active');
$('#sidebar, #main-content, header').removeClass('clopen');
}
else {
$(this).addClass('sm-active');
$('#sidebar, #main-content, header').addClass('open');
}
if ($('#sidebar').hasClass('open') && (wSize > 800)) {
$('.smenu li').each(function () {
var titdata = $(this).find('span').html();
//console.log(titdata);
$(this).children('a').attr('title', titdata);
});
}
else if ($('#sidebar').hasClass('clopen') && (wSize <= 800) && (wSize > 767)) {
$('.smenu li').each(function () {
var titdata = $(this).find('span').html();
//console.log(titdata);
$(this).children('a').attr('title', titdata);
});
}
else {
$('.smenu li a').removeAttr('title');
}
});
$('.mobicon').click(function () {
$('#sidebar').toggleClass('open');
});
$('.lecatbtn').click(function () {
if ($(this).html() == 'Show Leftbar')
$(this).html('Hide Leftbar')
else
$(this).html('Show Leftbar');
//$(this).children().addClass('fa').toggleClass('fa-eye fa-eye-slash');
$('.lwdiv').toggleClass('open');
$('.rwdiv').toggleClass('push');
});
$(".smenu > ul > li > a").click(function () {
$('.smenu > ul > li').removeClass('active');
$(this).parent().addClass('active');
if ($(this).next("ul").is(":visible")) {
$(this).next("ul").slideUp("slow");
$('.smenu > ul > li').removeClass('active');
} else {
$(".smenu > ul > li > ul").slideUp("slow");
$(this).next("ul").slideToggle("slow");
}
});
$(".smenu > ul > li > ul > li > a").click(function () {
$('.smenu > ul > li > ul > li').removeClass('active');
$(this).parent().addClass('active');
if ($(this).next("ul").is(":visible")) {
$(this).next("ul").slideUp("slow");
$('.smenu > ul > li > ul > li').removeClass('active');
} else {
$(".smenu > ul > li > ul > li > ul").slideUp("slow");
$(this).next("ul").slideToggle("slow");
}
});
// $(".pagecontainer").mCustomScrollbar({
// theme: "rounded-dark",
// autoHideScrollbar: true,
// scrollButtons: {
// enable: true,
// scrollType: "stepped"
// },
// keyboard: {
// enable: true,
// scrollType: "stepless",
// scrollAmount: "auto"
// },
// mouseWheel: { scrollAmount: 200 }
// });
// custom scrollbar
//$("#sidebar").niceScroll({ styler: "fb", cursorcolor: "#eb540a", cursorwidth: '3', cursorborderradius: '10px', background: '#404040', cursorborder: '', spacebarenabled: false });
//$("#connect_people").niceScroll({ styler: "fb", cursorcolor: "#eb540a", cursorwidth: '3', cursorborderradius: '10px', background: '#404040', cursorborder: '', autohidemode: false, spacebarenabled: false });
//$(".chatthread .chats, .diagnosis_list").niceScroll({ styler: "fb", cursorcolor: "#eb540a", cursorwidth: '3', cursorborderradius: '10px', background: '#404040', cursorborder: '', autohidemode: false, spacebarenabled: false });
var wSize = $(window).width();
//if (wSize > 800) {
// $(".commentsec").niceScroll({ styler: "fb", cursorcolor: "#eb540a", cursorwidth: '3', cursorborderradius: '10px', background: '#404040', cursorborder: '', autohidemode: false, spacebarenabled: false });
//}
//$("html").niceScroll({ styler: "fb", cursorcolor: "#eb540a", cursorwidth: '20', cursorborderradius: '10px', background: '#404040', horizrailenabled: false, spacebarenabled: false });
//$(".wlist").niceScroll({ styler: "fb", scrollspeed: 150, mousescrollstep: 80, cursorcolor: "#eb540a", smoothscroll: true, cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled: false, cursorborder: '', zindex: '1000', spacebarenabled: false });
// widget tools
jQuery('.panel .tools .fa-chevron-down').click(function () {
var el = jQuery(this).parents(".panel").children(".panel-body");
if (jQuery(this).hasClass("fa-chevron-down")) {
jQuery(this).removeClass("fa-chevron-down").addClass("fa-chevron-up");
el.slideUp(200);
} else {
jQuery(this).removeClass("fa-chevron-up").addClass("fa-chevron-down");
el.slideDown(200);
}
});
jQuery('.panel .tools .fa-times').click(function () {
jQuery(this).parents(".panel").parent().remove();
});
// tool tips
$('.tooltips').tooltip();
// popovers
$('.popovers').popover();
// parallax
// if($(".parallax").length){
// $(".parallax").simpleParallax();
// }
}();