diff --git a/WebContent/printing/OSRM.Printing.js b/WebContent/printing/OSRM.Printing.js index e6e313fa1..9f2140fb2 100644 --- a/WebContent/printing/OSRM.Printing.js +++ b/WebContent/printing/OSRM.Printing.js @@ -61,8 +61,10 @@ deactivate: function() { // use hide route as trigger // create UI in printwindow show: function(response) { - // create header (using tables for compatibility with IE quirks mode) - var header = + // create header + var header; + if( OSRM.Browser.IE6_8 ) { // tables used for compatibility with legacy IE (quirks mode) + header = '' + '' + @@ -98,44 +100,46 @@ show: function(response) { '
' + '
' + - ''; -// var header = -// '' + -// -// '
' + -// '
' + -// -// '
' + -// '
' + -// '
' + -// '
' + OSRM.loc("GUI_START")+ ':
' + -// '
' + document.getElementById("gui-input-source").value + '
' + -// '
' + -// '
' + -// '
' + OSRM.loc("GUI_END")+ ':
' + -// '
' + document.getElementById("gui-input-target").value + '
' + -// '
' + -// '
' + -// '
' + -// -// '
' + -// '
' + -// '
' + -// '
' + OSRM.loc("DISTANCE")+':
' + -// '
' + OSRM.Utils.toHumanDistance(response.route_summary.total_distance) + '
' + -// '
' + -// '
' + -// '
' + OSRM.loc("DURATION")+':
' + -// '
' + OSRM.Utils.toHumanTime(response.route_summary.total_time) + '
' + -// '
' + -// '
' + -// '
' + -// -// '
' + -// '
' + -// -// '
' + -// ''; + ''; + } else { + header = + '' + + + '
' + + '
' + + + '
' + + '
' + + '
' + + '
' + OSRM.loc("GUI_START")+ ':
' + + '
' + document.getElementById("gui-input-source").value + '
' + + '
' + + '
' + + '
' + OSRM.loc("GUI_END")+ ':
' + + '
' + document.getElementById("gui-input-target").value + '
' + + '
' + + '
' + + '
' + + + '
' + + '
' + + '
' + + '
' + OSRM.loc("DISTANCE")+':
' + + '
' + OSRM.Utils.toHumanDistance(response.route_summary.total_distance) + '
' + + '
' + + '
' + + '
' + OSRM.loc("DURATION")+':
' + + '
' + OSRM.Utils.toHumanTime(response.route_summary.total_time) + '
' + + '
' + + '
' + + '
' + + + '
' + + '
' + + + '
' + + ''; + } // create route description var body = ''; diff --git a/WebContent/printing/printing.css b/WebContent/printing/printing.css index 62cce0f81..9b9d75bb5 100644 --- a/WebContent/printing/printing.css +++ b/WebContent/printing/printing.css @@ -182,17 +182,17 @@ div.label @media screen { .base-font { font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 12px; + font-size: 13px; font-weight: normal; } .big-font { font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 14px; + font-size: 15px; font-weight: bold; } .medium-font { font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 10.5px; /* will be 10px in IE quirks mode */ + font-size: 11px; font-weight: normal; } .small-font { diff --git a/WebContent/printing/printing.html b/WebContent/printing/printing.html index 079362dec..388c9a3e2 100644 --- a/WebContent/printing/printing.html +++ b/WebContent/printing/printing.html @@ -28,7 +28,7 @@ or see http://www.gnu.org/licenses/agpl.txt. OSRM Website - + diff --git a/WebContent/printing/printing.js b/WebContent/printing/printing.js index c3e2a8002..094867bbd 100644 --- a/WebContent/printing/printing.js +++ b/WebContent/printing/printing.js @@ -19,8 +19,7 @@ or see http://www.gnu.org/licenses/agpl.txt. // [for printing window] OSRM = {}; -OSRM.GLOBALS = {}; -OSRM.GUI = { visible:false }; +OSRM.GLOBALS = { main_handle:{boxVisible:function(){return false;}} }; // needed for fitBoundsUI to work OSRM.G = OSRM.GLOBALS; @@ -41,7 +40,7 @@ OSRM.prefetchIcons = function(images_list) { for(var i=0; i