Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smartmenus-bootstrap-4

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartmenus-bootstrap-4 - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

jquery.smartmenus.bootstrap-4.js
/*!
* SmartMenus jQuery Plugin Bootstrap 4 Addon - v0.1.0 - September 17, 2017
* SmartMenus jQuery Plugin Bootstrap 4 Addon - v0.1.1 - November 3, 2022
* http://www.smartmenus.org/

@@ -154,3 +154,3 @@ *

// SmartMenus won't add the "show" class so it's handy here
if ($.fn.dropdown && $.fn.dropdown.Constructor) {
if ($.fn.dropdown && $.fn.dropdown.Constructor && typeof $.fn.dropdown.Constructor._dataApiKeydownHandler == 'function') {
$(document).on('keydown.bs.dropdown.data-api', '.dropdown-menu.show', $.fn.dropdown.Constructor._dataApiKeydownHandler);

@@ -157,0 +157,0 @@ }

@@ -1,3 +0,3 @@

/*! SmartMenus jQuery Plugin Bootstrap 4 Addon - v0.1.0 - September 17, 2017
/*! SmartMenus jQuery Plugin Bootstrap 4 Addon - v0.1.1 - November 3, 2022
* 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){return t.extend(t.SmartMenus.Bootstrap={},{keydownFix:!1,init:function(){var e=t("ul.navbar-nav:not([data-sm-skip])");e.each(function(){function e(){o.find("a.current").each(function(){var e=t(this);(e.hasClass("dropdown-item")?e:e.parent()).addClass("active")}),o.find("a.has-submenu").each(function(){var e=t(this);e.is('[data-toggle="dropdown"]')&&e.dataSM("bs-data-toggle-dropdown",!0).removeAttr("data-toggle"),!n&&e.hasClass("dropdown-toggle")&&e.dataSM("bs-dropdown-toggle",!0).removeClass("dropdown-toggle")})}function s(){o.find("a.current").each(function(){var e=t(this);(e.hasClass("active")?e:e.parent()).removeClass("active")}),o.find("a.has-submenu").each(function(){var e=t(this);e.dataSM("bs-dropdown-toggle")&&e.addClass("dropdown-toggle").removeDataSM("bs-dropdown-toggle"),e.dataSM("bs-data-toggle-dropdown")&&e.attr("data-toggle","dropdown").removeDataSM("bs-data-toggle-dropdown")})}function i(t){var e=a.getViewportWidth();(e!=u||t)&&(a.isCollapsible()?o.addClass("sm-collapsible"):o.removeClass("sm-collapsible"),u=e)}var o=t(this),a=o.data("smartmenus");if(!a){var n=o.is("[data-sm-skip-collapsible-behavior]"),r=o.hasClass("ml-auto")||o.prevAll(".mr-auto").length>0;o.smartmenus({subMenusSubOffsetX:2,subMenusSubOffsetY:-9,subIndicators:!n,collapsibleShowFunction:null,collapsibleHideFunction:null,rightToLeftSubMenus:r,bottomToTopSubMenus:o.closest(".fixed-bottom").length>0,bootstrapHighlightClasses:"text-dark bg-light"}).on({"show.smapi":function(e,s){var i=t(s),o=i.dataSM("scroll-arrows");o&&o.css("background-color",i.css("background-color")),i.parent().addClass("show"),a.opts.keepHighlighted&&i.dataSM("level")>2&&i.prevAll("a").addClass(a.opts.bootstrapHighlightClasses)},"hide.smapi":function(e,s){var i=t(s);i.parent().removeClass("show"),a.opts.keepHighlighted&&i.dataSM("level")>2&&i.prevAll("a").removeClass(a.opts.bootstrapHighlightClasses)}}),a=o.data("smartmenus"),e(),a.refresh=function(){t.SmartMenus.prototype.refresh.call(this),e(),i(!0)},a.destroy=function(e){s(),t.SmartMenus.prototype.destroy.call(this,e)},n&&(a.opts.collapsibleBehavior="toggle");var u;i(),t(window).on("resize.smartmenus"+a.rootId,i)}}),e.length&&!t.SmartMenus.Bootstrap.keydownFix&&(t(document).off("keydown.bs.dropdown.data-api",".dropdown-menu"),t.fn.dropdown&&t.fn.dropdown.Constructor&&t(document).on("keydown.bs.dropdown.data-api",".dropdown-menu.show",t.fn.dropdown.Constructor._dataApiKeydownHandler),t.SmartMenus.Bootstrap.keydownFix=!0)}}),t(t.SmartMenus.Bootstrap.init),t});
* Copyright Vasil Dinkov, Vadikom Web Ltd. http://vadikom.com; Licensed MIT */!function(a){"function"==typeof define&&define.amd?define(["jquery","smartmenus"],a):"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){return a.extend(a.SmartMenus.Bootstrap={},{keydownFix:!1,init:function(){var b=a("ul.navbar-nav:not([data-sm-skip])");b.each(function(){function b(){e.find("a.current").each(function(){var b=a(this);(b.hasClass("dropdown-item")?b:b.parent()).addClass("active")}),e.find("a.has-submenu").each(function(){var b=a(this);b.is('[data-toggle="dropdown"]')&&b.dataSM("bs-data-toggle-dropdown",!0).removeAttr("data-toggle"),!g&&b.hasClass("dropdown-toggle")&&b.dataSM("bs-dropdown-toggle",!0).removeClass("dropdown-toggle")})}function c(){e.find("a.current").each(function(){var b=a(this);(b.hasClass("active")?b:b.parent()).removeClass("active")}),e.find("a.has-submenu").each(function(){var b=a(this);b.dataSM("bs-dropdown-toggle")&&b.addClass("dropdown-toggle").removeDataSM("bs-dropdown-toggle"),b.dataSM("bs-data-toggle-dropdown")&&b.attr("data-toggle","dropdown").removeDataSM("bs-data-toggle-dropdown")})}function d(a){var b=f.getViewportWidth();(b!=i||a)&&(f.isCollapsible()?e.addClass("sm-collapsible"):e.removeClass("sm-collapsible"),i=b)}var e=a(this),f=e.data("smartmenus");if(!f){var g=e.is("[data-sm-skip-collapsible-behavior]"),h=e.hasClass("ml-auto")||e.prevAll(".mr-auto").length>0;e.smartmenus({subMenusSubOffsetX:2,subMenusSubOffsetY:-9,subIndicators:!g,collapsibleShowFunction:null,collapsibleHideFunction:null,rightToLeftSubMenus:h,bottomToTopSubMenus:e.closest(".fixed-bottom").length>0,bootstrapHighlightClasses:"text-dark bg-light"}).on({"show.smapi":function(b,c){var d=a(c),e=d.dataSM("scroll-arrows");e&&e.css("background-color",d.css("background-color")),d.parent().addClass("show"),f.opts.keepHighlighted&&d.dataSM("level")>2&&d.prevAll("a").addClass(f.opts.bootstrapHighlightClasses)},"hide.smapi":function(b,c){var d=a(c);d.parent().removeClass("show"),f.opts.keepHighlighted&&d.dataSM("level")>2&&d.prevAll("a").removeClass(f.opts.bootstrapHighlightClasses)}}),f=e.data("smartmenus"),b(),f.refresh=function(){a.SmartMenus.prototype.refresh.call(this),b(),d(!0)},f.destroy=function(b){c(),a.SmartMenus.prototype.destroy.call(this,b)},g&&(f.opts.collapsibleBehavior="toggle");var i;d(),a(window).on("resize.smartmenus"+f.rootId,d)}}),b.length&&!a.SmartMenus.Bootstrap.keydownFix&&(a(document).off("keydown.bs.dropdown.data-api",".dropdown-menu"),a.fn.dropdown&&a.fn.dropdown.Constructor&&"function"==typeof a.fn.dropdown.Constructor._dataApiKeydownHandler&&a(document).on("keydown.bs.dropdown.data-api",".dropdown-menu.show",a.fn.dropdown.Constructor._dataApiKeydownHandler),a.SmartMenus.Bootstrap.keydownFix=!0)}}),a(a.SmartMenus.Bootstrap.init),a});

@@ -16,3 +16,3 @@ {

],
"version": "0.1.0",
"version": "0.1.1",
"main": "jquery.smartmenus.bootstrap-4.js",

@@ -19,0 +19,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc