{"size": 3092, "ext": "js", "max_stars_repo_path": "dist/addons/bootstrap/jquery.smartmenus.bootstrap.min.js", "max_stars_repo_name": "sneas/smartmenus-namespace", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/addons/bootstrap/jquery.smartmenus.bootstrap.min.js", "max_issues_repo_name": "sneas/smartmenus-namespace", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/addons/bootstrap/jquery.smartmenus.bootstrap.min.js", "max_forks_repo_name": "sneas/smartmenus-namespace", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 1030.6666666667, "max_line_length": 2992, "alphanum_fraction": 0.6982535576}
/*! SmartMenus jQuery Plugin Bootstrap Addon - v0.3.1 - April 4, 2017
 * http://www.smartmenus.org/
 * Copyright Vasil Dinkov, Vadikom Web Ltd. http://vadikom.com; Licensed MIT */(function(t){"function"==typeof define&&define.amd?define(["jquery","smartmenus"],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(jQuery)})(function(t){var e=BOOTSTRAP_NAMESPACE||"z";return t.extend(t.SmartMenus.Bootstrap={},{keydownFix:!1,init:function(){var s=t("."+e+"-html-ul."+e+"-navbar-nav:not([data-sm-skip])");s.each(function(){function s(){a.find("."+e+"-html-a."+e+"-current").parent().addClass(e+"-active"),a.find("."+e+"-html-a."+e+"-has-submenu").each(function(){var e=t(this);e.is('[data-toggle="dropdown"]')&&e.dataSM("bs-data-toggle-dropdown",!0).removeAttr("data-toggle"),e.is('[role="button"]')&&e.dataSM("bs-role-button",!0).removeAttr("role")})}function i(){a.find("."+e+"-html-a."+e+"-current").parent().removeClass(e+"-active"),a.find("."+e+"-html-a."+e+"-has-submenu").each(function(){var e=t(this);e.dataSM("bs-data-toggle-dropdown")&&e.attr("data-toggle","dropdown").removeDataSM("bs-data-toggle-dropdown"),e.dataSM("bs-role-button")&&e.attr("role","button").removeDataSM("bs-role-button")})}function o(t){var s=n.getViewportWidth();if(s!=r||t){var i=a.find("."+e+"-caret");n.isCollapsible()?(a.addClass(e+"-sm-collapsible"),a.is("[data-sm-skip-collapsible-behavior]")||i.addClass(e+"-navbar-toggle "+e+"-sub-arrow")):(a.removeClass(e+"-sm-collapsible"),a.is("[data-sm-skip-collapsible-behavior]")||i.removeClass(e+"-navbar-toggle "+e+"-sub-arrow")),r=s}}var a=t(this),n=a.data("smartmenus");if(!n){a.smartmenus({subMenusSubOffsetX:2,subMenusSubOffsetY:-6,subIndicators:!1,collapsibleShowFunction:null,collapsibleHideFunction:null,rightToLeftSubMenus:a.hasClass(e+"-navbar-right"),bottomToTopSubMenus:a.closest("."+e+"-navbar").hasClass(e+"-navbar-fixed-bottom")}).bind({"show.smapi":function(s,i){var o=t(i),a=o.dataSM("scroll-arrows");a&&a.css("background-color",t(document.body).css("background-color")),o.parent().addClass(e+"-open")},"hide.smapi":function(s,i){t(i).parent().removeClass(e+"-open")}}),s(),n=a.data("smartmenus"),n.isCollapsible=function(){return!/^(left|right)$/.test(this.$firstLink.parent().css("float"))},n.refresh=function(){t.SmartMenus.prototype.refresh.call(this),s(),o(!0)},n.destroy=function(e){i(),t.SmartMenus.prototype.destroy.call(this,e)},a.is("[data-sm-skip-collapsible-behavior]")&&a.bind({"click.smapi":function(e,s){if(n.isCollapsible()){var i=t(s),o=i.parent().dataSM("sub");if(o&&o.dataSM("shown-before")&&o.is(":visible"))return n.itemActivate(i),n.menuHide(o),!1}}});var r;o(),t(window).bind("resize.smartmenus"+n.rootId,o)}}),s.length&&!t.SmartMenus.Bootstrap.keydownFix&&(t(document).off("keydown.bs.dropdown.data-api","."+e+"-dropdown-menu"),t.fn.dropdown&&t.fn.dropdown.Constructor&&t(document).on("keydown.bs.dropdown.data-api","."+e+'-dropdown-menu:not([id^="sm-"])',t.fn.dropdown.Constructor.prototype.keydown),t.SmartMenus.Bootstrap.keydownFix=!0)}}),t(t.SmartMenus.Bootstrap.init),t});