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
| 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} |
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
| 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', ''); |
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
| 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); | |
| }) | |
| }); |