mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
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:
parent
0f32319552
commit
be4d16c6c2
@ -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">
|
||||
|
@ -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 = ''
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user