This commit is contained in:
rahuldkjain
2020-07-25 15:58:34 +05:30
parent bfc42697f1
commit 6183777741
2 changed files with 13 additions and 6 deletions
+1
View File
@@ -19,6 +19,7 @@ const Markdown = (props) => {
<>
{`<h3 align="center">${props.subtitle}</h3>`}
<br />
<br />
</>
);
}
+12 -6
View File
@@ -177,18 +177,24 @@ const IndexPage = () => {
}
}
const resetCopyMarkdownButton = () => {
gsap.set('#copy-markdown', {
color: '#0a0a23',
});
var el = document.getElementById('copy-markdown')
if (el) {
gsap.set('#copy-markdown', {
color: '#0a0a23',
});
}
setcopyObj({
isCopied: false,
copiedText: 'copy-markdown'
});
}
const setCopyMarkdownButton = () => {
gsap.set('#copy-markdown', {
color: '#00471b',
});
var el = document.getElementById('copy-markdown')
if (el) {
gsap.set('#copy-markdown', {
color: '#00471b',
});
}
gsap.fromTo('.copy-button', {
scale: 0.5,
}, {