Update default.html

This commit is contained in:
Fatih Kadir Akın 2022-12-16 02:59:36 +03:00 committed by GitHub
parent 64ee4f7c8e
commit 1b5e182d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,11 +29,12 @@
document.querySelectorAll("h2[id^=act] + p + blockquote").forEach((x) => {
x.setAttribute('contentEditable', true);
const button = document.createElement('button');
button.style.border = '1px solid #ccc';
button.style.border = '0';
button.style.borderRadius = '3px';
button.style.fontSize = '1rem';
button.style.marginRight = '0.5rem';
button.style.width = '32px';
button.style.padding = '0';
button.style.backgroundColor = 'transparent';
button.innerHTML = '✂️';
button.addEventListener('click', () => {
if (navigator.clipboard) {