diff --git a/src/index.css b/src/index.css index c2c66bb..1836ab4 100644 --- a/src/index.css +++ b/src/index.css @@ -23,6 +23,12 @@ height: 100%; } +#previewButton:hover{ + cursor: pointer; + background-color: gray; + transition: var(--animationDuration); +} + #previewBlock{ position: fixed; top: var(--previewYOffset); @@ -34,11 +40,14 @@ right: -100%; } -@media screen and (max-width: 1000px){ - #previewButton{ - display: none; +@media screen and (max-width: 1200px){ + #previewBlock{ + width: 50vw; } +} + +@media screen and (max-width: 700px){ #previewBlock{ - display: none; + width: 100vw; } } \ No newline at end of file diff --git a/src/index.js b/src/index.js index bc64282..f1341d9 100644 --- a/src/index.js +++ b/src/index.js @@ -234,7 +234,7 @@ var theme = document.getElementById('theme'); // Real time variables var preview = false; var photo = ""; -var linkCount = Number(additionalLinkButton.getAttribute("data-index")); +var linkCount = Number(additionalLinkButton.getAttribute("data-index")) + 1; const styleElement = document.createElement('style'); // Preview Button functionality @@ -308,7 +308,7 @@ function UpdatePreview() { // Check if data is added if(photo !== '') photoCode = `User Photo`; - if(name !== '') name = `

${name}

`; + if(name !== '') name = `

${name}

`; if(description !== '') description =`

${description}

`; if(email !== '') email = ` Email`; diff --git a/src/index.php b/src/index.php index 86b4f89..27e5956 100644 --- a/src/index.php +++ b/src/index.php @@ -49,15 +49,15 @@ - - + + - + LinkFree Generator