{"version":3,"names":[],"mappings":"","sources":["default.js"],"sourcesContent":["(function($, Drupal, window, document, drupalSettings) {\n Drupal.behaviors.rua = {\n attach: function (context) { \n\n /*\n $(once('bind-click-event', '.toggle-download-links', context)).each(function () {\n $(this).on('click', function() { \n console.log('toggle-download-links');\n $('.links-wrapper').fadeToggle();\n return false;\n });\n }); \n */ \n var owl = $('.hero_slider');\n owl.owlCarousel({\n margin:0,\n loop: true,\n dots: false,\n nav: true,\n autoplay:true,\n autoplayTimeout: 8000,\n autoplayHoverPause:true,\n smartSpeed: 1800,\n items:1 \n }); \n\n }\n }\n\n})(jQuery, Drupal, this, this.document, drupalSettings);\n\nfunction accordion(section, heading, list){\n jQuery(section).each(function(){\n var act = 'active',\n actClass = '.active',\n that = jQuery(this);\n\n function tglH(){\n that.find(list).slideToggle(250);\n }\n function open(click){\n jQuery(click).toggleClass('plus minus');\n tglH();\n that.find(list).addClass(act);\n }\n function close(click){\n jQuery(click).toggleClass('minus plus');\n tglH();\n that.find(list).removeClass(act);\n }\n\n if ( that.find(list).length == 0 ) {\n jQuery(this).find(heading).removeClass('plus').addClass('no-sub');\n } else {\n jQuery(this).find(heading).click(function(e) {\n e.preventDefault();\n });\n }\n\n jQuery(this).find(heading).click(function() {\n if ( jQuery(this).hasClass('minus') ) {\n // close this menu\n close(this);\n that.find(list).removeClass(act);\n } else if ( jQuery(this).hasClass('plus') ) {\n if ( jQuery(heading).hasClass('minus') ) {\n jQuery(heading).each(function(){\n if ( !jQuery(this).hasClass('no-sub') ) {\n jQuery(this).removeClass('minus').addClass('plus');\n }\n })\n jQuery(section).each(function() {\n if ( jQuery(this).find(list).hasClass(act) ) {\n jQuery(actClass).slideToggle(250);\n jQuery(this).find(list).removeClass(act);\n }\n });\n // open this menu\n open(this);\n } else if ( jQuery(this).hasClass('plus') ) {\n // open this menu\n open(this);\n }\n }\n })\n })\n}\n \naccordion('.nav-item', '.nav-itemheading', '.nav-sub-list');\n\n"],"file":"../default.js"}