View edge-paste.html
<html> | |
<body> | |
<!--StartFragment--> | |
<span style=" | |
display: inline !important; | |
float: none; | |
background-color: rgb(255, 255, 255); | |
color: rgb(34, 34, 34); | |
font-family: arial,sans-serif; | |
font-size: 13.33px; |
View clipboard-sample.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
Hello world | |
</body> | |
</html> |
View clipboard-sample.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
Hello world | |
</body> | |
</html> |
View pasting-firefox.html
Hello world |
View safari-paste.html
<span style=" | |
font-family: -webkit-standard; | |
font-style: normal; | |
font-variant-caps: normal; | |
font-weight: normal; | |
letter-spacing: normal; | |
orphans: auto; | |
text-align: start; | |
text-indent: 0px; | |
text-transform: none; |
View chrome-paste.html
<meta charset='utf-8'> | |
<span style=" | |
color: rgb(0, 0, 0); | |
font-family: Times; | |
font-size: medium; | |
font-style: normal; | |
font-variant-ligatures: normal; | |
font-variant-caps: normal; | |
font-weight: 400; | |
letter-spacing: normal; |
View db.js
export default [ | |
{ | |
id: 54590991, | |
node_id: "MDEwOlJlcG9zaXRvcnk1NDU5MDk5MQ==", | |
name: "cluj", | |
full_name: "jsheroes/cluj", | |
private: false, | |
owner: { | |
login: "jsheroes", | |
id: 16759725, |
View click-outide.jsx
import React, { Component, useEffect, useCallback } from "react"; | |
function ClickOutsideH({ children, onClick }) { | |
const refs = React.Children.map(children, () => React.createRef()); | |
const handleClick = useCallback(e => { | |
const isOutside = refs.every(ref => { | |
return !ref.current.contains(e.target); | |
}); | |
if (isOutside) { | |
onClick(); |
View clickoutside.jsx
import React, { Component, useEffect } from "react"; | |
function ClickOutside({ children, onClick }) { | |
const refs = React.Children.map(children, () => React.createRef()); | |
const handleClick = e => { | |
const isOutside = refs.every(ref => { | |
return !ref.current.contains(e.target); | |
}); | |
if (isOutside) { | |
onClick(); |
View clickoutside.jsx
import React from 'react'; | |
function ClickOutside({ children, onClick }) { | |
const refs = React.Children.map(children, () => React.createRef()); | |
const handleClick = e => { | |
const isOutside = refs.every(ref => { | |
return !ref.current.contains(e.target); | |
}); | |
if (isOutside) { |
NewerOlder