MORE FUCKING FIXES
This commit is contained in:
parent
daea98f320
commit
42fad7c9fd
@ -2210,6 +2210,48 @@
|
||||
nav.classList.toggle('mobile-nav-open');
|
||||
toggle.classList.toggle('active');
|
||||
}
|
||||
|
||||
function closeShareModal() {
|
||||
document.getElementById('share-modal').style.display = 'none';
|
||||
}
|
||||
|
||||
function copyToClipboard(text) {
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
showToast('Copied to clipboard!', 'success');
|
||||
}).catch(() => {
|
||||
// Fallback for older browsers
|
||||
const textArea = document.createElement('textarea');
|
||||
textArea.value = text;
|
||||
document.body.appendChild(textArea);
|
||||
textArea.select();
|
||||
document.execCommand('copy');
|
||||
document.body.removeChild(textArea);
|
||||
showToast('Copied to clipboard!', 'success');
|
||||
});
|
||||
}
|
||||
|
||||
// Add modal close on outside click
|
||||
window.onclick = function(event) {
|
||||
const shareModal = document.getElementById('share-modal');
|
||||
if (event.target == shareModal) {
|
||||
shareModal.style.display = 'none';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Share Modal -->
|
||||
<div id="share-modal" class="modal" style="display: none;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h3>Share File</h3>
|
||||
<button class="close-btn" onclick="closeShareModal()">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h4 id="share-file-name"></h4>
|
||||
<div id="share-links"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user