Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// depends on modernizr and jquery | |
if ($('html').hasClass('no-touchevents')) { | |
var hoverDelay = 17; | |
var hoverTimeouts = []; | |
var hoverDelayTO = 0; | |
function processHoverTimeouts () { | |
hoverTimeouts.forEach(function (timeout) { | |
timeout(); | |
}); | |
hoverTimeouts = []; |
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
<block class="Magento\Framework\View\Element\Text" name="comment.placeholder"> | |
<arguments> | |
<argument name="text" xsi:type="string"><![CDATA[<!-- -->]]></argument> | |
</arguments> | |
</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 data = {test: 'test'}; | |
var dataUri = 'data:application/json;charset=utf-8,'+ encodeURIComponent(JSON.stringify(data)); | |
var link = document.createElement("a"); | |
link.download = 'export.json'; | |
link.href = dataUri; | |
document.body.appendChild(link); | |
link.click(); | |
document.body.removeChild(link); |
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 priceRegex = /^((((([1-9]\d{0,2})(,\d{3})?)|([1-9]\d*)|\d{1})(\.\d+){0,1})|(((([1-9]\d{0,2})(\.\d{3})?)|([1-9]\d*)|\d{1})(,\d+){0,1}))$/; |
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 onElementResize = function(element, callback) { | |
if (!onElementResize.watchedElementData) { | |
onElementResize.watchedElementData = []; | |
var checkForChanges = function() { | |
onElementResize.watchedElementData.forEach(function(data) { | |
if (element.offsetWidth !== data.offsetWidth || | |
element.offsetHeight !== data.offsetHeight) { |
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
@include breakpoint(max-width, $bp-medium) { | |
table.rwd-table { | |
display: block; | |
thead { | |
display: none; | |
tr, th { | |
display: none; |
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
.scroll-table-wrapper { | |
overflow-x: scroll; | |
-webkit-overflow-scrolling: touch; | |
&::-webkit-scrollbar { | |
-webkit-appearance: none; | |
} | |
&::-webkit-scrollbar:vertical { | |
width: 11px; |