hop
This commit is contained in:
parent
142e5da2f4
commit
af7e0fb84d
5
public/javascripts/multi_account.js
Normal file
5
public/javascripts/multi_account.js
Normal file
@ -0,0 +1,5 @@
|
||||
function selectAccount(somePseudo){
|
||||
console.log('account selected', somePseudo)
|
||||
}
|
||||
|
||||
console.log('script loaded')
|
@ -17,4 +17,21 @@ a {
|
||||
select{
|
||||
padding:1rem;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.wip{
|
||||
color: grey;
|
||||
padding: 1rem;
|
||||
margin-top:1em;
|
||||
}
|
||||
.wip input{
|
||||
background: grey;
|
||||
}
|
||||
|
||||
.account__avatar-overlay{
|
||||
border: solid 3px transparent;
|
||||
}
|
||||
.account__avatar-overlay:hover{
|
||||
cursor:pointer;
|
||||
border: solid 3px grey;
|
||||
}
|
@ -327,6 +327,7 @@ router.post('/direct-post', function (req, res, next) {
|
||||
let visibility = 'public';
|
||||
let language = 'fr';
|
||||
let sensitive = false;
|
||||
|
||||
let accessToken = process.env['TOKEN_' + req.body.author]
|
||||
console.log('accessToken', accessToken)
|
||||
const masto = new Masto({
|
||||
|
@ -20,10 +20,10 @@ block content
|
||||
|
||||
//p=accounts_to_select.length
|
||||
|
||||
select(method="post", name="author", value=bodyReq? bodyReq.author:"")
|
||||
select(method="post", name="author", value=bodyReq? bodyReq.author:"", id="author_select")
|
||||
option(value="tykayn")
|
||||
span TyKayn
|
||||
option(value="voixdunuc")
|
||||
option(value="voixdunucleaire")
|
||||
span voix du nucléaire
|
||||
option(value="modominem")
|
||||
span modo minem
|
||||
@ -40,6 +40,9 @@ block content
|
||||
// option(value=item.label)
|
||||
// span=item.value
|
||||
br
|
||||
img.account__avatar-overlay(src="https://mastodon.cipherbliss.com/system/accounts/avatars/000/003/032/original/2bb8b90d21d3fdca.jpg", onclick="selectAccount('qzine')")
|
||||
img.account__avatar-overlay(src="https://mastodon.cipherbliss.com/system/accounts/avatars/000/107/055/original/7dac1a35f1423b94.jpg", onclick="selectAccount('cil_gometz')")
|
||||
img.account__avatar-overlay(src="https://mastodon.cipherbliss.com/system/accounts/avatars/000/002/978/original/b2f2e817572c93e9.png", onclick="selectAccount('meme')")
|
||||
div.compose-form__autosuggest-wrapper
|
||||
.autosuggest-textarea
|
||||
label
|
||||
@ -61,3 +64,12 @@ block content
|
||||
div.composer--publisher
|
||||
//input.button.primary(type="submit", value="ajouter à la file d'attente")
|
||||
input.button.primary(type="submit", value="poster tout de suite")
|
||||
|
||||
script.
|
||||
function selectAccount(somePseudo) {
|
||||
console.log('account selected', document.querySelector('#author_select').value)
|
||||
document.querySelector('#author_select').value = somePseudo
|
||||
console.log('account changed', somePseudo)
|
||||
}
|
||||
|
||||
console.log('script loaded')
|
@ -6,7 +6,8 @@ html
|
||||
link(rel='stylesheet', href='https://mastodon.cipherbliss.com/packs/css/flavours/glitch/common-6bdd3298.chunk.css')
|
||||
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css')
|
||||
link(rel='stylesheet', href='/stylesheets/style.css')
|
||||
script(src='https://cdn.jsdelivr.net/npm/flatpickr')
|
||||
//script(src='https://cdn.jsdelivr.net/npm/flatpickr')
|
||||
script(type="text/javascript", src='/javascripts/multi_accounts.js')
|
||||
body
|
||||
block nav
|
||||
div.columns-area__panels__main.with-fab
|
||||
|
Loading…
Reference in New Issue
Block a user