mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 10:16:45 +00:00
Added mailto
This commit is contained in:
parent
75835eedd8
commit
d41be7d8b1
1 changed files with 9 additions and 0 deletions
|
@ -40,6 +40,7 @@
|
|||
let form = document.getElementById('form')
|
||||
let message = document.getElementById('message');
|
||||
let copy = document.getElementById('copy');
|
||||
let email = document.getElementById('email');
|
||||
let error = document.getElementById('error');
|
||||
let details = document.getElementById('details');
|
||||
let year = document.getElementById('year');
|
||||
|
@ -80,6 +81,12 @@
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
email.onclick = function (event) {
|
||||
event.preventDefault();
|
||||
window.location.href = "mailto:?body=" + encodeURIComponent(message.textContent);
|
||||
}
|
||||
|
||||
year.textContent = new Date().getFullYear();
|
||||
}
|
||||
|
||||
|
@ -179,6 +186,8 @@
|
|||
<p id="message" style="width: 100%;"></p>
|
||||
<hr>
|
||||
<span id="copy" style="font-size: x-large">📋</span>
|
||||
 
|
||||
<span id="email" style="font-size: x-large">📧</span>
|
||||
</div>
|
||||
|
||||
<p id="error" style="color: red; font-weight: bold; display: none;"></p>
|
||||
|
|
Loading…
Reference in a new issue