forked from GithubBackups/vichan
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
|
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(){
|
$(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++;
|
||||||
|
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…
x
Reference in New Issue
Block a user