This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Close modal because the 'clickableOverlay' method is broken on Magentos modal | |
Look into fixing this globally and submitting a patch | |
https://github.com/magento/magento2/issues/7399 | |
*/ | |
$(document).mouseup(function(e) { | |
var container = $('.my-modal .modal-inner-wrap'); | |
// if the target of the click isn't the container nor a descendant of the container | |
if (!container.is(e.target) && container.has(e.target).length === 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// the group name has to be 'Image Management' rather than 'Image' as it has to match the 'attribute_group_code' rather than the 'attribute_group_name' in the 'eav_attribute_group' table. | |
// See convertToAttributeGroupCode() in \Magento\Eav\Setup\EavSetup | |
$this->eavSetup->addAttribute( | |
\Magento\Catalog\Model\Product::ENTITY, | |
'test_image_role', | |
[ | |
'group' => 'Image Management', | |
'type' => 'varchar', | |
'frontend' => 'Magento\Catalog\Model\Product\Attribute\Frontend\Image', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Lea Verou's CSS Lightbox, taken on webplatform.org | |
* For redistribution purposes | |
* @author Lea Verou <lea@w3.org> | |
*/ | |
.modal { | |
visibility: hidden; | |
position: fixed; | |
top: 50%; | |
left: 50%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* css modal | |
*/ | |
.modal { | |
text-align: center; | |
} | |
.modal__content { | |
padding: 2em; | |
display: inline-block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PrefixedEvent = function(element, type, callback) { | |
var pfx = ["webkit", "moz", "MS", "o", ""]; | |
for (var p = 0; p < pfx.length; p++) { | |
if (!pfx[p]) type = type.toLowerCase(); | |
element.addEventListener(pfx[p]+type, callback, false); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- base | |
- functions | |
- mixins | |
- variables | |
- fonts | |
- breakpoints | |
- reset | |
- helpers | |
- type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cal 12 2012 #display a visual calender | |
dscacheutil -flushcache #clear your DNS Cache. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fsck --lost-found |