Updated home.html and home.js

Removed "copy link" button from home page for desktop (the button for tablet and mobile will still be there).
This commit is contained in:
Bobby Wibowo 2018-03-29 03:12:11 +07:00
parent 0f32319552
commit be4d16c6c2
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
2 changed files with 2 additions and 9 deletions

View File

@ -98,11 +98,6 @@
<p class="error"></p>
<p class="link" style="display: none">
<a target="_blank"></a>
<a class="has-text-info is-outlined is-hidden-touch is-unselectable clipboard-js" title="Copy link to clipboard">
<span class="icon is-small">
<i class="icon-attach"></i>
</span>
</a>
</p>
<p class="clipboard-mobile is-hidden-desktop" style="margin-top: 5px">
<a class="button is-info is-outlined clipboard-js" style="display: flex">

View File

@ -230,11 +230,9 @@ upload.prepareDropzone = () => {
upload.appendLink = (file, url) => {
const a = file.previewTemplate.querySelector('.link > a')
const clipTablet = file.previewTemplate.querySelector('.link > .clipboard-js')
const clipMobile = file.previewTemplate.querySelector('.clipboard-mobile > .clipboard-js')
const clipboard = file.previewTemplate.querySelector('.clipboard-mobile > .clipboard-js')
console.log(url)
a.href = a.innerHTML = clipTablet.dataset['clipboardText'] = clipMobile.dataset['clipboardText'] = url
a.href = a.innerHTML = clipboard.dataset['clipboardText'] = url
a.parentElement.style = ''
}