Anonymous ID: ca59e7 Aug. 13, 2018, 5:18 p.m. No.2588600   🗄️.is 🔗kun   >>8626

=BAKERS,==

Someone in the programming thread requested a script to display a replies counter. Here is a modest proposal made to be easy to inspect.

[Code]$(function(){

$(document.head).append('<style>#post-counter{position:fixed;top:20px;right:10px;font:24px sans-serif;opacity:0.5;color:#f60;}</style>');

$(document.body).append('<div id="post-counter"/>');

function updateCounter() {$('#post-counter').text($('.thread>.post.reply').length);}

setInterval(updateCounter, 500);

});[/Code]

>>2352371

Feedback appreciated. – NopeAnon

Anonymous ID: ca59e7 Aug. 13, 2018, 5:20 p.m. No.2588626   🗄️.is 🔗kun   >>8747 >>8787 >>8885

>>2588600

…and I messed up the formatting and the ref. Pologies. Replies counter script, again:

>>2588476

$(function(){ $(document.head).append('<style>#post-counter{position:fixed;top:20px;right:10px;font:24px sans-serif;opacity:0.5;color:#f60;}</style>'); $(document.body).append('<div id="post-counter"/>'); function updateCounter() {$('#post-counter').text($('.thread>.post.reply').length);} setInterval(updateCounter, 500);});