all
a
/
b
/
c
/
f
/
h
/
jp
/
l
/
o
/
q
/
s
/
sw
/
lounge
cgi
up
wiki
Heyuri!
Bulletin Boards
2D Cute
2D Ero
2D Lolikon
3D Girls
Anime/Manga
Flash
日本語/Japan
Lounge
Oekaki
Off-Topic
Site Discussion
Strange World
Overboard
Heyuri★CGI
Heyuri★CGI
@PartyII
Battle Royale R
Chat
Chinsouki★
Dating
DevChat
Drama Club
Hakoniwa Islands PvE
Hakoniwa Islands PvP
Polls
Slime Breeder
Web Banana
Web Shiritori
Yumemiru Gambler
Kakiko Checker
Other
Anime Nominations
Banners
Cytube
Heyuri Calendar
Heyuri Wiki
MAL Club
Museum
Post Notifications
Steam Group
Uploader
[
Home
] [
Catalog
] [
Search
] [
Inbox
] [
Write PM
] [
Admin
]
Site Discussion@Heyuri
it's the place to be!
[
Return
]
Posting mode: Reply
Name
Email
Subject
Post
Comment
File
Animated GIF
Password
(for deletion, 8 chars max)
Allowed file types are: gif, jpg, jpeg, png, bmp, swf, webm, mp4
Maximum file size allowed is 50000 KB.
Images greater than 200 * 200 pixels will be thumbnailed.
6
unique users in the last 10 minutes (including lurkers)
Switch form position
|
BBCode reference
Read the
rules
before you post.
Protect your username, use a
tripcode!
日本のへゆり
2025/05/04
-
Heyuri Calendar
has been launched. Find out about upcoming Heyuri events!
2025/04/01
-
NEW GAME:
Slime Breeder
! Commit slimecest with your ancestors to create teh ultimate slime!
2024/09/12
-
NEW GAME:
Battle Royale R
! Make characters and see if they can win the Heyuri Cup!
2024/09/10
-
Tegaki function has been added
[
Show all
]
We will hold the 12th Townhall next Saturday (5th) 19:00 UTC [
Info
] [
Countdown
]
File:
question.gif
(577 KB, 512x504)
[
ImgOps
]
Anonymous
2024/05/25(Sat)18:37:46 ID:TX3wgr72
No.
66693
is there a chance of getting the emote/emoji/kaomoji buttons to insert at the cursor instead of at the end of the textbox?
pretty much nowhere else works like that and it's kind of awkward adding things to a post as it stands, very fiddly
you just split the textbox into two substrings, one with stuff before the cursor and one with stuff after
and set the textbox contents to be the text from the button concatenated into the middle of those two strins instead of just doing it at the end of the textbox contents
https://stackoverflow.com/a/11077016
Marked for deletion (Old)
>>
1
Anonymous
2024/05/26(Sun)08:11:39 ID:ADMIN
No.
66696
if someone teaches me what I need to change in
https://static.heyuri.net/js/addemotes.js
, sure
it's black magic to me...
>>
2
Anonymous
2024/05/26(Sun)16:44:24 ID:Kb5N/6Ls
No.
66698
all the spots with COMMENT.value+=
(whatever)
should be changed
not at home now, I might be able to make the exact changes in like 7 hours lol
┐(゚~゚)┌
>>
3
Anonymous
2024/05/26(Sun)19:23:29 ID:.UZxjF8g
No.
66699
you need to store the caret position, splice the kamoji in at that point, add the length of the kaomoji to the stored position, then set the new position to the sum.
https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition
>>
4
Anonymous
2024/05/26(Sun)19:24:49 ID:.UZxjF8g
No.
66700
actually the selection range api is the safer way to do it.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange
>>
5
Anonymous
2024/05/27(Mon)23:02:43 ID:TX3wgr72
No.
66716
File:
cirno-1694293785149819.gif
(890 KB, 295x305)
[
ImgOps
]
okay, I think I did it, here's the edited script
https://up.heyuri.net/src/3512.txt
didn't use the setSelectionRange API, I basically just applied that StackOverflow answer
not 100% sure I didn't break anything since testing was kind of awkward on a saved static page (a lot of stuff was broken just because of the save)
but I don't think I did
>>
6
Anonymous
2024/05/28(Tue)01:52:27 ID:TX3wgr72
No.
66717
the changes are live, thanks!
━━━(・∀・)━━━
Delete post: [
File only
]
Password: