diff --git a/WebContent/main.css b/WebContent/main.css
index 50465e790..62905c5a5 100644
--- a/WebContent/main.css
+++ b/WebContent/main.css
@@ -113,7 +113,6 @@ html, body {
height:50px;
background-repeat:no-repeat;
background-position:center;
- background-image:url("images/osrm-logo.png");
}
#input-mask
{
@@ -139,7 +138,6 @@ html, body {
.styled-select
{
position:absolute;
- background: url("images/selector.png");
background-repeat:no-repeat;
background-position: top right;
padding: 1px 1px 1px 1px;
@@ -404,61 +402,9 @@ html, body {
background-position:center;
}
-#gui-toggle-out
-{
- background-image:url("images/cancel.png");
-}
-#gui-toggle-out:hover
-{
- background-image:url("images/cancel_hover.png");
-}
-#gui-toggle-out:active
-{
- background-image:url("images/cancel_active.png");
-}
-
-#gui-toggle-in
-{
- background-image:url("images/restore.png");
-}
-#gui-toggle-in:hover
-{
- background-image:url("images/restore_hover.png");
-}
-#gui-toggle-in:active
-{
- background-image:url("images/restore_active.png");
-}
-
-#gui-printer
-{
- background-image:url("images/printer.png");
-}
#gui-printer-inactive
{
cursor:default;
- background-image:url("images/printer_inactive.png");
-}
-#gui-printer:hover
-{
- background-image:url("images/printer_hover.png");
-}
-#gui-printer:active
-{
- background-image:url("images/printer_active.png");
-}
-
-.delete-marker
-{
- background-image:url("images/cancel.png");
-}
-.delete-marker:hover
-{
- background-image:url("images/cancel_hover.png");
-}
-.delete-marker:active
-{
- background-image:url("images/cancel_active.png");
}
diff --git a/WebContent/main.html b/WebContent/main.html
index 8d6c75edc..5be9ea0fc 100644
--- a/WebContent/main.html
+++ b/WebContent/main.html
@@ -67,6 +67,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
+
diff --git a/WebContent/main.js b/WebContent/main.js
index 313c5a39e..ee9319635 100644
--- a/WebContent/main.js
+++ b/WebContent/main.js
@@ -23,6 +23,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
OSRM.init = function() {
OSRM.prefetchImages();
OSRM.prefetchIcons();
+ OSRM.prefetchCSSIcons();
OSRM.Localization.init();
OSRM.GUI.init();
@@ -73,7 +74,9 @@ OSRM.prefetchImages = function() {
{id:'direction_8', url:'images/sharp-left.png'},
{id:'direction_10', url:'images/head.png'},
{id:'direction_11', url:'images/round-about.png'},
- {id:'direction_15', url:'images/target.png'}
+ {id:'direction_15', url:'images/target.png'},
+ {id:'osrm-logo', url:'images/osrm-logo.png'},
+ {id:'selector', url:'images/selector.png'}
];
for(var i=0; i= 0)
+ return stylesheets[i];
+ }
+ return null;
+ },
+
+ insert: function(stylesheet, selector, rule) {
+ if( stylesheet.addRule ){
+ stylesheet.addRule(selector, rule);
+ } else if( stylesheet.insertRule ){
+ stylesheet.insertRule(selector + ' { ' + rule + ' }', stylesheet.cssRules.length);
+ }
+ }
+};
\ No newline at end of file