This file contains hidden or 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; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 uploadButton = $('<input type="file">'); | |
uploadButton.change(function() { | |
var reader = new FileReader(); | |
reader.onload = function (e) { | |
var target = e.target; | |
var data = JSON.parse(target.result); | |
console.log(data); | |
} | |
reader.readAsText(uploadButton[0].files[0]); | |
}); |
This file contains hidden or 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 = []; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.