From 4c0b6c785962f110a625f16ad145c7f489ce0942 Mon Sep 17 00:00:00 2001 From: nekobit Date: Sun, 5 Jun 2022 22:54:29 +0000 Subject: [PATCH] Credits and JS stuff FossilOrigin-Name: 38ce3752bd163ee8c28cd5f624146e5ef09dbdac5495848d42828bd03d5813b0 --- CREDITS | 14 +++++++------- dist/js/main.js | 18 ++++++++++++++++-- static/about.tmpl | 1 + static/interaction_buttons.tmpl | 4 ++-- static/likeboost.tmpl | 2 +- 5 files changed, 27 insertions(+), 12 deletions(-) diff --git a/CREDITS b/CREDITS index 4856180..dcfa5a4 100644 --- a/CREDITS +++ b/CREDITS @@ -7,19 +7,18 @@ * Nekobit <@neko@rdrama.cc> Created the Treebird frontend, created mastodont-c (A pleroma C library) Originally, this was called RatFE, but the name changed. - [ Producer ] * Grumbulon <@grumbulon@freecumextremist.com> Creator of the Logo and owns treebird.dev, made dark theme - [ Camera support ] + + * Pacific Coast Highway <@pch_xyz@seediqbale.xyz> + Provided Chinese (Traditional) Translations * SamTherapy <@sam@froth.zone> Documentation and cleanup, fixed bugs - [ Support ] - * Khan <@Khan@sleepy.cafe> + * Khan <@khan@sleepy.cafe> Helped with the old Treebird Husky fork (history lesson required) - [ Executive producer ] OTHER @@ -27,5 +26,6 @@ * ICONSVG Project * cJSON developers * Pleroma developers - * Alex Gleason - For API assistance - * You! :) \ No newline at end of file + * Alex Gleason - For occasional API assistance + * You! :) + * Me \ No newline at end of file diff --git a/dist/js/main.js b/dist/js/main.js index e6ba49b..b40442c 100644 --- a/dist/js/main.js +++ b/dist/js/main.js @@ -2,8 +2,6 @@ Element.prototype.insertAfter = function(element) { element.parentNode.insertBefore(this, element.nextSibling); }; - - function construct_quick_reply_form(replyid) { let src = document.createElement("form"); @@ -65,6 +63,16 @@ function construct_quick_reply_form(replyid) return src; } +function status_interact_props(e) +{ + + e.preventDefault(); + let interact = e.target.closest(".statbtn"); + let type = interact.target.closest(".itype"); + console.log([interact, type]); + return false; +} + function create_reply_form(e) { e.preventDefault(); @@ -87,9 +95,15 @@ function create_reply_form(e) // Main (function() { let reply_btn = document.getElementsByClassName("reply-btn"); + let interact_btn = document.getElementsByClassName("statbtn"); for (let i = 0; i < reply_btn.length; ++i) { reply_btn[i].addEventListener('click', create_reply_form); } + + for (let i = 0; i < interact_btn.length; ++i) + { + interact_btn[i].addEventListener('click', status_interact_props); + } })(); diff --git a/static/about.tmpl b/static/about.tmpl index 17a16ad..310c4b3 100644 --- a/static/about.tmpl +++ b/static/about.tmpl @@ -11,6 +11,7 @@

Other contributors