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
/** | |
* Title: text-underline-offset with negative value | |
* Preview: https://codepen.io/RodrigoTomeES/pen/RwQWwML | |
* More info: | |
* - https://github.com/w3c/csswg-drafts/issues/4059 | |
* - https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-skip-ink | |
* - https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-skip | |
*/ | |
a { |
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
javascript:(function(){ | |
/* escape quotes and commas in contents to be comma-separated */ | |
function wrapCsvContents(content) { | |
if (typeof(content) === 'string') { | |
if (content.replace(/ /g, '').match(/[\s,"]/)) { | |
return '"' + content.replace(/"/g, '""') + '"'; | |
} | |
} | |
return content; | |
} |
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
import React from 'react' | |
const index = (props) => { | |
state = { | |
files: [ | |
'nice.pdf', | |
'verycool.jpg', | |
'amazing.png', | |
'goodstuff.mp3', | |
'thankyou.doc' |
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
import React, { Component } from 'react' | |
class FileUpload extends Component { | |
state = { | |
drag: false | |
} | |
dragCounter = 0 | |
handleDrag = (e) => { |