Added icon changing when thread updated.

makeIcon should also have the little *bleep* sound.
This commit is contained in:
anonfagola 2014-09-24 18:23:15 -07:00
parent 416a48838c
commit 5bbfc85c0c

View File

@ -16,8 +16,16 @@
*
*/
au = false;
auto_reload_enabled = true; // for watch.js to interop
function makeIcon(){
if(au) return;
au = true;
$("link[rel='icon']").attr("href", "favicon_au.png");
}
$(document).ready(function(){
if($('div.banner').length == 0)
return; // not index
@ -98,6 +106,7 @@ $(document).ready(function(){
if($('#' + id).length == 0) {
if (!new_posts) {
first_new_post = this;
makeIcon();
}
$(this).insertAfter($('div.post:last').next()).after('<br class="clear">');
new_posts++;