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
<!DOCTYPE html> | |
<html> | |
<style type="text/css"> | |
.time {} | |
.percentage { | |
color: red; | |
font-size: 5em; | |
} | |
</style> |
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
const clearCookieAndStorage = () => { | |
// clear cookies | |
(function () { | |
setTimeout(() => { | |
var cookies = document.cookie.split("; "); | |
for (var c = 0; c < cookies.length; c++) { | |
var d = window.location.hostname.split("."); | |
while (d.length > 0) { | |
var cookieBase = encodeURIComponent(cookies[c].split(";")[0].split("=")[0]) + '=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain=' + d.join('.') + ' ;path='; |
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
export const addStyle = (src: string) => { | |
let styles = document.createElement('link'); | |
styles.rel = 'stylesheet'; | |
styles.type = 'text/css'; | |
styles.media = 'screen'; | |
styles.href = src; | |
document.getElementsByTagName('head')[0].appendChild(styles); | |
}; | |
export const addScript = async (src: string) => { |
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
# npm | |
npm ls -g --depth=0 --link=true | |
C:\Program Files\nodejs -> .\ | |
└── @xx/xx-design@0.0.14 -> .\..\..\..\..\repo\xxx-design | |
# yarn | |
On Windows you can find the linked packages at ls ~/AppData/Local/Yarn/Data/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
(function x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://code.jquery.com/jquery-3.7.1.min.js') | |
(function x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.10/dayjs.min.js') | |
(function x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.5.0/lz-string.min.js') | |
(function x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://abcde2xxxxx.js') |
OlderNewer