moved favicon handling to webserver

This commit is contained in:
DennisSchiefer 2012-04-18 06:56:17 +01:00
parent eaf5dd328f
commit 8845c070a2
4 changed files with 1 additions and 8 deletions

View File

@ -30,9 +30,6 @@ init: function() {
OSRM.GUI.visible = true; OSRM.GUI.visible = true;
OSRM.GUI.width = document.getElementById("main-wrapper").clientWidth; OSRM.GUI.width = document.getElementById("main-wrapper").clientWidth;
// init favicon
document.getElementById('favicon').href=OSRM.G.images["favicon"].getAttribute("src");
// init starting source/target // init starting source/target
document.getElementById('gui-input-source').value = OSRM.DEFAULTS.ONLOAD_SOURCE; document.getElementById('gui-input-source').value = OSRM.DEFAULTS.ONLOAD_SOURCE;
document.getElementById('gui-input-target').value = OSRM.DEFAULTS.ONLOAD_TARGET; document.getElementById('gui-input-target').value = OSRM.DEFAULTS.ONLOAD_TARGET;

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -29,9 +29,6 @@ or see http://www.gnu.org/licenses/agpl.txt.
<meta name="description" content="OSRM Website"/> <meta name="description" content="OSRM Website"/>
<meta name="author" content="Dennis Schieferdecker" /> <meta name="author" content="Dennis Schieferdecker" />
<!-- favicon -->
<link rel="shortcut icon" href="" type="image/x-icon" id="favicon"/>
<!-- stylesheets --> <!-- stylesheets -->
<link rel="stylesheet" href="leaflet/leaflet.css" type="text/css"/> <link rel="stylesheet" href="leaflet/leaflet.css" type="text/css"/>
<!--[if lte IE 8]><link rel="stylesheet" href="leaflet/leaflet.ie.css" type="text/css"/><![endif]--> <!--[if lte IE 8]><link rel="stylesheet" href="leaflet/leaflet.ie.css" type="text/css"/><![endif]-->

View File

@ -68,8 +68,7 @@ OSRM.prefetchImages = function() {
{id:'direction_7', url:'images/turn-left.png'}, {id:'direction_7', url:'images/turn-left.png'},
{id:'direction_8', url:'images/sharp-left.png'}, {id:'direction_8', url:'images/sharp-left.png'},
{id:'direction_11', url:'images/round-about.png'}, {id:'direction_11', url:'images/round-about.png'},
{id:'direction_15', url:'images/target.png'}, {id:'direction_15', url:'images/target.png'}
{id:'favicon', url:'images/osrm-favicon.ico'}
]; ];
for(var i=0; i<image_list.length; i++) { for(var i=0; i<image_list.length; i++) {