Apply new logo

This commit is contained in:
Heikki Hannikainen 2013-12-22 01:58:45 +02:00
parent 458fd9c487
commit f687bece8f
5 changed files with 15 additions and 6 deletions

View File

@ -107,7 +107,8 @@ WEBFILES = \
src/web/aprsc.css src/web/aprsc.js \
src/web/index.html \
src/web/favicon.ico \
src/web/aprsc-logo2.png \
src/web/aprsc-logo3.png \
src/web/aprsc-joulukissa.jpg \
src/web/excanvas.min.js \
src/web/jquery.flot.min.js \
src/web/jquery.flot.selection.min.js
@ -202,9 +203,7 @@ install: all
$(INSTALL_PROGRAM) aprsc $(DESTDIR)$(SBINDIR)/aprsc
$(INSTALL_PROGRAM) aprsc_munin $(DESTDIR)$(SBINDIR)/aprsc_munin
$(INSTALL_DATA) aprsc.8 $(DESTDIR)$(MANDIR)/man8/aprsc.8
$(INSTALL_DATA) web/*.css web/*.js web/index.html \
web/aprsc-logo2.png web/favicon.ico \
$(DESTDIR)/opt/aprsc/web
$(INSTALL_DATA) $(WEBFILES) $(DESTDIR)/opt/aprsc/web
if [ ! -f $(DESTDIR)$(CFGFILE) ] ; then \
$(INSTALL_DATA) aprsc.conf $(DESTDIR)$(CFGFILE) ; \
else true ; fi

View File

@ -83,8 +83,9 @@ static struct http_static_t http_static_files[] = {
{ "/favicon.ico", "favicon.ico" },
{ "/aprsc.css", "aprsc.css" },
{ "/aprsc.js", "aprsc.js" },
{ "/aprsc-logo1.png", "aprsc-logo1.png" },
{ "/aprsc-logo2.png", "aprsc-logo2.png" },
{ "/aprsc-logo3.png", "aprsc-logo3.png" },
{ "/aprsc-joulukissa.jpg", "aprsc-joulukissa.jpg" },
{ "/excanvas.min.js", "excanvas.min.js" },
{ "/jquery.flot.min.js", "jquery.flot.min.js" },
{ "/jquery.flot.selection.min.js", "jquery.flot.selection.min.js" },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -1074,6 +1074,14 @@ function toggle(id)
$('#' + id).toggle(200);
}
/* easter egg */
function check_for_easter()
{
var D = new Date();
if (D.getMonth() == 11 && D.getDate() >= 24 && D.getDate() <= 25)
$('#logo').attr("src","/aprsc-joulukissa.jpg");
}
function init()
{
listeners_table = $('#listeners');
@ -1086,6 +1094,7 @@ function init()
totals_table = $('#totals');
server_table = $('#server');
alarm_div = $('#alarms');
check_for_easter();
update_status();
gr_switch('totals.tcp_bytes_rx');

View File

@ -11,7 +11,7 @@
<body onclick='ttip_hide();'>
<div style='float: right;'><img src="/aprsc-logo2.png" /></div>
<div style='float: right;'><img id="logo" src="/aprsc-logo3.png" /></div>
<div class="page_title" id="title"><span id='serverid'></span> aprsc status <span id='upt'></span></div>
<div id='status'></div>
<div id='alarms' style='display: none;'></div>