Skip to content

Instantly share code, notes, and snippets.

@Malcomputer
Malcomputer / reset.css
Last active January 6, 2025 22:51
CSS Reset
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,button,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;vertical-align:baseline}
*{-webkit-box-sizing:border-box;box-sizing:border-box;}
a,button{text-decoration:none;color:white;background-color:transparent;}
ol,ul{list-style:none;}
:focus{outline:none}
const links = document.querySelectorAll('.click-copy');
const cls = {
copied: 'is-copied',
hover: 'is-hovered'
}
const copyToClipboard = str => {
const el = document.createElement('input');
str.dataset.copyString ? el.value = str.dataset.copyString : el.value = str.text;
el.setAttribute('readonly', '');
const lifePathNumber = dateOfBirth => {
// dataOfBirth yyyy-mm-dd
// split string by hiphen make variable
let splitArr = dateOfBirth.split('-');
// seperate each int and sum
let dateOfBirthSums = splitArr.map(value => {
return value.split('').reduce((acc,curr) => {
return Number(acc) + Number(curr);
})
});