mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 07:50:23 +01:00
Merge pull request #59 from anonfagola/patch-9
Added favicon to auto updating
This commit is contained in:
commit
0416b36eea
@ -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", "../static/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++;
|
||||
|
BIN
static/favicon_au.png
Normal file
BIN
static/favicon_au.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 337 B |
Loading…
Reference in New Issue
Block a user