[ azu / archive ]

/azu/ - Azumanga

(and Barasui)
Name
Option
Subject
Comment
Verification
File
Password (For file deletion.)
Available emotes: (click to insert)

2023-09-07: Archives of the threads containing translations of Azuma's tweets are now on /archive/

File: 1724776521950.jpg (518.66 KB, 1366x854, azumanga.jpggoogle iqdb trace ascii2d

 No.1191

if (active_page == 'thread' || active_page == 'index') {
$(document).ready(function(){
function arrayRemove(a, v) { a.splice(a.indexOf(v) == -1 ? a.length : a.indexOf(v), 1); }

var idshighlighted = [];

function getPostsById(id){
return $(".poster_id").filter(function(i){
return $(this).text() == id;
});
}

function getMasterPosts(parents){
if(!parents.hasClass("post")) return;

var toRet = [];

$(parents).each(function(){
if($(this).hasClass("post"))
toRet.push($(this));
});

return toRet;
}

var id_highlighter = function(){
var id = $(this).text();

if($.inArray(id, idshighlighted) !== -1){
arrayRemove(idshighlighted, id);

$(getMasterPosts(getPostsById(id).parents())).each(function(i){
$(this).removeClass("highlighted");
});
}else{
idshighlighted.push(id);

$(getMasterPosts(getPostsById(id).parents())).each(function(i){
$(this).addClass("highlighted");
});
}
}

$(".poster_id").on('click', id_highlighter);

$(document).on('new_post', function(e, post) {
$(post).find('.poster_id').on('click', id_highlighter);
});
});
}


you will need to write html for this too

 No.1193

What does this do?

 No.1195

File: 1724785723280.jpg (136.08 KB, 1080x430, Screenshot_20240827_011601.jpggoogle iqdb trace ascii2d

>>1193
Shows who replied to you

 No.1196

I wanna test it!

Reply to this post so I can see.

 No.1197

>>1196
Did you write the html for it

 No.1198

>>1197
How do I do that?

 No.1199

Good idea. I'll enable a similar built-in JS snippet that shows backlink replies globally.

 No.1200

>>1195
Whoa that's cool

 No.1201

File: 1725030284956.jpg (8.79 KB, 268x62, cookie grabber.jpggoogle iqdb trace ascii2d

hey wait a minute

 No.1202

>>1191
test

 No.1203

>>1201
uh oh

 No.1205

it works! /azu/ is living in 2050

 No.1206

>>1205
The future is now!!!



[Return][Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ azu / archive ]