Socket
Socket
Sign inDemoInstall

foundation-sites

Package Overview
Dependencies
2
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.1 to 6.0.2

scss/settings/_settings.scss

2

js/foundation.core.js

@@ -5,3 +5,3 @@ !function($) {

var FOUNDATION_VERSION = '6.0.1';
var FOUNDATION_VERSION = '6.0.2';

@@ -8,0 +8,0 @@ // Global Foundation object

@@ -193,8 +193,17 @@ /**

if(this.options.hover){
clearTimeout(_this.timeout);
this.$anchor.on('mouseenter.zf.dropdown mouseleave.zf.dropdown', function(){
_this.timeOut = setTimeout(function(){
_this.toggle();
}, _this.options.hoverDelay);
});
this.$anchor.off('mouseenter.zf.dropdown mouseleave.zf.dropdown')
.on('mouseenter.zf.dropdown', function(){
console.log('hover');
clearTimeout(_this.timeout);
_this.timeOut = setTimeout(function(){
_this.open();
_this.$anchor.data('hover', true);
}, _this.options.hoverDelay);
}).on('mouseleave.zf.dropdown', function(){
clearTimeout(_this.timeout);
_this.timeOut = setTimeout(function(){
_this.close();
_this.$anchor.data('hover', false);
}, _this.options.hoverDelay);
});
}

@@ -304,2 +313,3 @@ this.$anchor.add(this.$element).on('keydown.zf.dropdown', function(e) {

if(this.$element.hasClass('is-open')){
if(this.$anchor.data('hover')) return;
this.close();

@@ -306,0 +316,0 @@ }else{

@@ -145,3 +145,3 @@ /**

'tabindex': 0,
'title': $tab.children('a:first-child').text()/*.match(/\w/ig).join('')*/
'aria-label': $tab.children('a:first-child').text()/*.match(/\w/ig).join('')*/
}).children('a').attr('tabindex', -1);//maybe add a more specific regex to match alphanumeric characters and join them appropriately

@@ -178,13 +178,15 @@ if($tab.children('[data-submenu]')){

DropdownMenu.prototype._events = function($elem){
var _this = this;
var _this = this,
isTouch = window.ontouchstart !== undefined;
if(this.options.clickOpen){
if(this.options.clickOpen || isTouch){
$elem.off('click.zf.dropdownmenu')
.on('click.zf.dropdownmenu', function(e){
if(!$(this).hasClass('is-dropdown-submenu-parent')){ return; }
var hasClicked = $elem.data('isClick');
if(isTouch && hasClicked) return;
e.preventDefault();
e.stopPropagation();
if($elem.data('isClick')){
if(hasClicked){
_this._hide($elem);

@@ -206,8 +208,9 @@ }else{

//add ability for all menu items to close an open menu on the same level//
this.$menuItems.on('mouseenter.zf.dropdownmenu', function(e){
var $el = $(this);
if(!$el.hasClass('is-active')){
_this._hideOthers($el);
}
});
this.$menuItems.off('mouseenter.zf.dropdownmenu')
.on('mouseenter.zf.dropdownmenu', function(e){
var $el = $(this);
if(!$el.hasClass('is-active')){
_this._hideOthers($el);
}
});
//elements with submenus

@@ -214,0 +217,0 @@ $elem.on('mouseenter.zf.dropdownmenu', function(e){

@@ -148,4 +148,9 @@ /**

this.$slides = this.$element.find('.' + this.options.slideClass);
var $images = this.$element.find('img');
var $images = this.$element.find('img'),
initActive = this.$slides.filter('.is-active');
if(!initActive.length){
this.$slides.eq(0).addClass('is-active');
}
if($images.length){

@@ -152,0 +157,0 @@ Foundation.onImagesLoaded($images, this._prepareForOrbit.bind(this));

@@ -19,3 +19,3 @@ /**

this.$element = $(element);
this.options = $.extend({}, ResponsiveToggle.defaults, options);
this.options = $.extend({}, ResponsiveToggle.defaults, this.$element.data(), options);

@@ -22,0 +22,0 @@ this._init();

{
"name": "foundation-sites",
"version": "6.0.1",
"version": "6.0.2",
"main": "dist/foundation.js",

@@ -5,0 +5,0 @@ "description": "The most advanced responsive front-end framework in the world.",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc