added favicon,

removed commata that IE was complaining about
This commit is contained in:
DennisSchiefer 2012-03-15 09:05:00 +01:00
parent b8944da9dc
commit aa952df541
11 changed files with 20 additions and 16 deletions

View File

@ -27,7 +27,7 @@ L.DashedPolyline = L.Polyline.extend({
options: { options: {
dashed: true dashed: true
}, }
}); });
@ -41,7 +41,7 @@ L.DashedPolyline = !L.Browser.svg ? L.DashedPolyline : L.DashedPolyline.extend({
else else
this._path.setAttribute('stroke-dasharray', ''); this._path.setAttribute('stroke-dasharray', '');
} }
}, }
}); });
@ -55,6 +55,6 @@ L.DashedPolyline = L.Browser.svg || !L.Browser.vml ? L.DashedPolyline : L.Dashed
else else
this._stroke.dashstyle = "solid"; this._stroke.dashstyle = "solid";
} }
}, }
}); });

View File

@ -49,5 +49,5 @@ L.MouseMarker = L.Marker.extend({
shiftKey: e.shiftKey, shiftKey: e.shiftKey,
button: e.button button: e.button
}); });
}, }
}); });

View File

@ -24,7 +24,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
OSRM.Browser = { OSRM.Browser = {
FF3: useragent.search(/Firefox\/3/), FF3: useragent.search(/Firefox\/3/),
IE6_9: useragent.search(/MSIE (6|7|8|9)/), IE6_9: useragent.search(/MSIE (6|7|8|9)/)
}; };
}()); }());

View File

@ -75,6 +75,6 @@ toggleOptions: function() {
} else { } else {
document.getElementById('options-box').style.visibility="visible"; document.getElementById('options-box').style.visibility="visible";
} }
}, }
}; };

View File

@ -29,7 +29,7 @@ translate: function(text) {
return OSRM.Localization["en"][text]; return OSRM.Localization["en"][text];
else else
return text; return text;
}, }
}; };
// shorter call to translate function // shorter call to translate function
@ -65,7 +65,7 @@ OSRM.Localization["de"] = {
"DISTANCE": "Distanz", "DISTANCE": "Distanz",
"DURATION": "Dauer", "DURATION": "Dauer",
"YOUR_ROUTE_IS_BEING_COMPUTED": "Ihre Route wird berechnet", "YOUR_ROUTE_IS_BEING_COMPUTED": "Ihre Route wird berechnet",
"NO_ROUTE_FOUND": "Keine Route hierher möglich", "NO_ROUTE_FOUND": "Keine Route hierher möglich"
}; };
@ -98,5 +98,5 @@ OSRM.Localization["en"] = {
"DISTANCE": "Distance", "DISTANCE": "Distance",
"DURATION": "Duration", "DURATION": "Duration",
"YOUR_ROUTE_IS_BEING_COMPUTED": "Your route is being computed", "YOUR_ROUTE_IS_BEING_COMPUTED": "Your route is being computed",
"NO_ROUTE_FOUND": "No route possible", "NO_ROUTE_FOUND": "No route possible"
}; };

View File

@ -65,7 +65,7 @@ centerView: function(zooming) {
}, },
toString: function() { toString: function() {
return "OSRM.Marker: \""+this.label+"\", "+this.position+")"; return "OSRM.Marker: \""+this.label+"\", "+this.position+")";
}, }
}); });
@ -78,7 +78,7 @@ OSRM.inheritFrom( OSRM.HighlightMarker, OSRM.Marker );
OSRM.extend( OSRM.HighlightMarker, { OSRM.extend( OSRM.HighlightMarker, {
toString: function() { toString: function() {
return "OSRM.HighlightMarker: \""+this.label+"\", "+this.position+")"; return "OSRM.HighlightMarker: \""+this.label+"\", "+this.position+")";
}, }
}); });
@ -143,7 +143,7 @@ onDragEnd: function(e) {
}, },
toString: function() { toString: function() {
return "OSRM.RouteMarker: \""+this.label+"\", "+this.position+")"; return "OSRM.RouteMarker: \""+this.label+"\", "+this.position+")";
}, }
}); });

View File

@ -61,7 +61,7 @@ onClick: function(e) {
}, },
toString: function() { toString: function() {
return "OSRM.Route("+ this.label + ", " + this.route.getLatLngs().length + " points)"; return "OSRM.Route("+ this.label + ", " + this.route.getLatLngs().length + " points)";
}, }
}); });

View File

@ -28,5 +28,5 @@ OSRM.DEFAULTS = {
ONLOAD_LONGITUDE: 10.10, ONLOAD_LONGITUDE: 10.10,
ONLOAD_SOURCE: "", ONLOAD_SOURCE: "",
ONLOAD_TARGET: "", ONLOAD_TARGET: "",
LANGUAGE: "en", LANGUAGE: "en"
}; };

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,3 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- <!--
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU AFFERO General Public License as published by it under the terms of the GNU AFFERO General Public License as published by
@ -15,7 +17,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
or see http://www.gnu.org/licenses/agpl.txt. or see http://www.gnu.org/licenses/agpl.txt.
--> -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html> <html>
@ -28,6 +29,9 @@ 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="images/osrm-favicon.ico" type="image/x-icon" />
<!-- stylesheets --> <!-- stylesheets -->
<link rel="stylesheet" href="leaflet/leaflet.css" type="text/css"/> <link rel="stylesheet" href="leaflet/leaflet.css" type="text/css"/>
<link rel="stylesheet" href="main.css" type="text/css"/> <link rel="stylesheet" href="main.css" type="text/css"/>

View File

@ -394,7 +394,7 @@ function getDirectionIcon(name) {
"Enter roundabout and leave at eighth exit":"round-about.png", "Enter roundabout and leave at eighth exit":"round-about.png",
"Enter roundabout and leave at nineth exit":"round-about.png", "Enter roundabout and leave at nineth exit":"round-about.png",
"Enter roundabout and leave at tenth exit":"round-about.png", "Enter roundabout and leave at tenth exit":"round-about.png",
"Enter roundabout and leave at one of the too many exit":"round-about.png", "Enter roundabout and leave at one of the too many exit":"round-about.png"
}; };
if( directions[name] ) if( directions[name] )