diff --git a/src/Makefile.in b/src/Makefile.in index 1cf155c..139c25c 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -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 diff --git a/src/http.c b/src/http.c index 89265d9..33a4658 100644 --- a/src/http.c +++ b/src/http.c @@ -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" }, diff --git a/src/web/aprsc-joulukissa.jpg b/src/web/aprsc-joulukissa.jpg index ddba652..7ab6b0d 100644 Binary files a/src/web/aprsc-joulukissa.jpg and b/src/web/aprsc-joulukissa.jpg differ diff --git a/src/web/aprsc.js b/src/web/aprsc.js index 4d61832..5fce76e 100644 --- a/src/web/aprsc.js +++ b/src/web/aprsc.js @@ -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'); diff --git a/src/web/index.html b/src/web/index.html index e708b69..496eb57 100644 --- a/src/web/index.html +++ b/src/web/index.html @@ -11,7 +11,7 @@
-
