Commit 2aa150bc authored by Mac Newbold's avatar Mac Newbold
Browse files

A fix for Mike's "Pointless Nit o' the Day" for today:

Add a magical icon for the Emulab pages. Shows up on the tab for tabbed browsers, and
in the bookmarks, etc.

The current image isn't that great, but it's something. When we've got time, we'll
make it a little better by not trying to fit so much of the logo in at once.
parent e53779c1
......@@ -28,7 +28,7 @@ include $(TESTBED_SRCDIR)/GNUmakerules
# Generate a list of all the files we want to install from the current
# directory and the source directory.
FILES = $(wildcard *.css *.jpg *.gif *.png *.html *.php3 *.php)
FILES = $(wildcard *.css *.jpg *.gif *.png *.html *.php3 *.php *.ico)
FILES += $(wildcard $(SRCDIR)/*.css)
FILES += $(wildcard $(SRCDIR)/*.jpg)
FILES += $(wildcard $(SRCDIR)/*.png)
......@@ -36,6 +36,7 @@ FILES += $(wildcard $(SRCDIR)/*.gif)
FILES += $(wildcard $(SRCDIR)/*.html)
FILES += $(wildcard $(SRCDIR)/*.php3)
FILES += $(wildcard $(SRCDIR)/*.php)
FILES += $(wildcard $(SRCDIR)/*.ico)
FILES += $(SRCDIR)/.htaccess $(SRCDIR)/error.shtml
AUTOICONS = $(wildcard $(SRCDIR)/autostatus-icons/*.gif)
......@@ -396,6 +396,8 @@ function PAGEBEGINNING( $title ) {
<title>$THISHOMEBASE - $title</title>
<!--<link rel=\"SHORTCUT ICON\" HREF=\"netbed.ico\">-->
<link rel=\"SHORTCUT ICON\" HREF=\"netbed.png\" TYPE=\"image/png\">
<!-- dumbed-down style sheet for any browser that groks (eg NS47). -->
<link REL='stylesheet' HREF='$BASEPATH/common-style.css' TYPE='text/css' />
<!-- don't import full style sheet into NS47, since it does a bad job
An icon should be 16x16 pixels, and can be monochrome, 8-bit color, 16-bit color, or
24-bit color.
The magic in the page:
<link rel=\"SHORTCUT ICON\" HREF=\"netbed.ico\">
<link rel=\"SHORTCUT ICON\" HREF=\"netbed.png\" TYPE=\"image/png\">
Some browsers only do .ico, some do .png also. The .ico looks screwy in my mozilla, so
we're using the png.
Also, some browsers look for favicon.ico by default. So link that file to the .ico
To make a png into an ico :
pngtopnm netbed.png | ppmtowinicon -output netbed.ico

363 Bytes


363 Bytes

Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment