added dark mode
This commit is contained in:
parent
14334e7197
commit
215c8d2c3a
14 changed files with 51 additions and 13 deletions
|
@ -11,6 +11,7 @@
|
|||
<link rel="stylesheet" href="/shared/fontawesome-free-5.10.2/css/all.min.css">
|
||||
<link rel='stylesheet' href="/shared/main/PNotifyBrightTheme.css">
|
||||
<link rel="stylesheet" href="/shared/main/bulma.min.css">
|
||||
<link rel='stylesheet' href='/shared/main/bulmaswatch.min.css'>
|
||||
<link rel="stylesheet" href="/shared/main/styles-new.css">
|
||||
<link rel="stylesheet" href="/mail/mail.css">
|
||||
<script defer src='/shared/node_modules/pnotify/dist/iife/PNotify.js'></script>
|
||||
|
|
|
@ -23,9 +23,9 @@ to = document.getElementById('draftID')
|
|||
subject = document.getElementById('draftSubject')
|
||||
friendPicker = document.getElementById('friendSelect')
|
||||
|
||||
function sendMail(to, message, subject){
|
||||
function sendMail(toData, message, subject){
|
||||
//postData = {"postData": '{"to": "' + to + '", "message": "' + message + '"}'} // galaxy brain
|
||||
postData = {'message': message, 'to': to, 'type': 'pm', 'encrypt': true, 'meta': JSON.stringify({'subject': subject})}
|
||||
postData = {'message': message, 'to': toData, 'type': 'pm', 'encrypt': true, 'meta': JSON.stringify({'subject': subject})}
|
||||
postData = JSON.stringify(postData)
|
||||
sendForm.style.display = 'none'
|
||||
fetch('/insertblock', {
|
||||
|
@ -41,6 +41,7 @@ function sendMail(to, message, subject){
|
|||
PNotify.success({
|
||||
text: 'Queued for sending!'
|
||||
})
|
||||
to.value = subject.value = messageContent.value = ""
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue