forked from GithubBackups/vichan
Added icon changing when thread updated.
makeIcon should also have the little *bleep* sound.
This commit is contained in:
parent
416a48838c
commit
5bbfc85c0c
@ -16,8 +16,16 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
au = false;
|
||||||
auto_reload_enabled = true; // for watch.js to interop
|
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(){
|
$(document).ready(function(){
|
||||||
if($('div.banner').length == 0)
|
if($('div.banner').length == 0)
|
||||||
return; // not index
|
return; // not index
|
||||||
@ -98,6 +106,7 @@ $(document).ready(function(){
|
|||||||
if($('#' + id).length == 0) {
|
if($('#' + id).length == 0) {
|
||||||
if (!new_posts) {
|
if (!new_posts) {
|
||||||
first_new_post = this;
|
first_new_post = this;
|
||||||
|
makeIcon();
|
||||||
}
|
}
|
||||||
$(this).insertAfter($('div.post:last').next()).after('<br class="clear">');
|
$(this).insertAfter($('div.post:last').next()).after('<br class="clear">');
|
||||||
new_posts++;
|
new_posts++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user