{"version":3,"names":[],"mappings":"","sources":["default.js"],"sourcesContent":["(function($, Drupal, window, document, drupalSettings) {\n Drupal.behaviors.menu_offcanvas = {\n attach: function (context) {\n \n var t= $('.test');\n\n var owl = $('.hero_slider');\n owl.owlCarousel({\n margin:0,\n loop: true,\n dots: true,\n nav: true,\n autoplay:true,\n autoplayTimeout: 8000,\n autoplayHoverPause:true,\n smartSpeed: 1800,\n items:1 \n });\n\n var owlsti = $('.sti_slider');\n owlsti.owlCarousel({\n margin:0,\n loop: true,\n dots: true,\n nav: true,\n autoHeight: true,\n autoplay:true,\n autoplayTimeout: 8000,\n autoplayHoverPause:true,\n smartSpeed: 1800,\n items:1 \n });\n\n var owlsti = $('.sti_slider_preg');\n owlsti.owlCarousel({\n margin:0,\n loop: true,\n dots: true,\n nav: true,\n autoHeight: true,\n autoplay:false, \n smartSpeed: 1800,\n items:1 \n });\n\n var owlsti = $('.sti_slider_apoff');\n owlsti.owlCarousel({\n margin:0,\n loop: true,\n dots: true,\n nav: true,\n autoHeight: true,\n autoplay:false,\n autoplayTimeout: 8000,\n autoplayHoverPause:true,\n smartSpeed: 1800,\n items:1 \n }); \n \n $(once('irespect-body','body', context)).each(function () { \n\n $('.round_point').hover(function(e) {\n //e.preventDefault();\n $('.reproductive-system .right .detail').removeClass('active');\n $('#detail-' + this.id).addClass('active');\n \n $('.round_point').removeClass('is-hover')\n $(this).addClass('is-hover');\n }, function() {\n //$('#detail-' + this.id).removeClass('active');\n });\n\n $('.collapse').on('shown.bs.collapse', function () {\n $(this).prev().addClass('active-acc');\n });\n \n $('.collapse').on('hidden.bs.collapse', function () {\n $(this).prev().removeClass('active-acc');\n });\n\n $('ul.alfabet li a').click(function() {\n var sectionTo = $(this).attr('href');\n $('html, body').animate({\n scrollTop: $(sectionTo).offset().top\n }, 1000);\n });\n\n //// accordion navigation menu\n function accordion(section, heading, list){\n $(section).each(function(){\n var act = 'sbactive',\n actClass = '.sbactive',\n that = $(this);\n\n function tglH(){\n that.find(list).slideToggle(250);\n }\n function open(click){\n $(click).toggleClass('plus minus');\n tglH();\n that.find(list).addClass(act);\n }\n function close(click){\n $(click).toggleClass('minus plus');\n tglH();\n that.find(list).removeClass(act);\n }\n\n if ( that.find(list).length == 0 ) {\n $(this).find(heading).removeClass('plus').addClass('no-sub');\n } else {\n $(this).find(heading).click(function(e) {\n e.preventDefault();\n });\n }\n\n \n $(this).find(heading).click(function() {\n if ( $(this).hasClass('minus') ) {\n // close this menu\n close(this);\n that.find(list).removeClass(act);\n } else if ( $(this).hasClass('plus') ) {\n if ( $(heading).hasClass('minus') ) {\n $(heading).each(function(){\n if ( !$(this).hasClass('no-sub') ) {\n $(this).removeClass('minus').addClass('plus');\n }\n })\n $(section).each(function() {\n if ( $(this).find(list).hasClass(act) ) {\n $(actClass).slideToggle(250);\n $(this).find(list).removeClass(act);\n }\n });\n // open this menu\n open(this);\n } else if ( $(this).hasClass('plus') ) {\n // open this menu\n open(this);\n }\n }\n })\n \n\n })\n }\n accordion('.snav-item', '.nav-item-inner-heading', '.nav-sub-list');\n\n });\n\n }\n }\n\n})(jQuery, Drupal, this, this.document, drupalSettings)\n"],"file":"../default.js"}