From 770f3b5979a3ea616f18588e4bebe9908c29a239 Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Wed, 4 Jul 2012 16:36:10 +0100 Subject: [PATCH] added some notifications --- WebContent/gui/OSRM.Timers.js | 40 ++++++++++++++++++----------------- WebContent/main.js | 1 + 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/WebContent/gui/OSRM.Timers.js b/WebContent/gui/OSRM.Timers.js index ab65537af..9d20d60f1 100644 --- a/WebContent/gui/OSRM.Timers.js +++ b/WebContent/gui/OSRM.Timers.js @@ -23,26 +23,28 @@ OSRM.GUI.extend( { // notifications notifications: [ - { time: 7000, - header: "[Tooltip] Clicking and Dragging", - body: "You can simply click on the map to set source and target markers. " + - "Then you can continue and drag the markers over the map or create. " + - "

" + - "You can even create additional markers by dragging them off of the main route." + - "Markers can be simply deleted by clicking on them.", - _classes: ["Routing"], - _funcs: ["getRoute_Dragging"] - }, { time: 4000, - header: "[Tooltip] Clicking and Dragging 2", - body: "You can simply click on the map to set source and target markers. " + - "Then you can continue and drag the markers over the map or create. " + + header: "[Tooltip] Localization", + body: "You can use the pulldown menu in the upper left corner to select your favorite language." + "

" + - "You can even create additional markers by dragging them off of the main route." + - "Markers can be simply deleted by clicking on them.", + "If you cannot find your preferred language, you can help us to provide additionals translations!", + _classes: [], + _funcs: [] + }, + { time: 6000, + header: "[Tooltip] Clicking to set markers", + body: "You can simply click on the map to set a source or target marker. " + + "When you click on a marker again, it will be deleted.", + _classes: ["Map"], + _funcs: ["click"] + }, + { time: 8000, + header: "[Tooltip] Dragging markers", + body: "You can drag a marker over the map and get instantanous route updates. " + + "You can even create additional markers by dragging them off of the main route.", _classes: ["Routing"], _funcs: ["getRoute_Dragging"] - } + } ], // initialize notification timers @@ -58,17 +60,17 @@ init: function() { notifications[i].old_functions = []; for(var j=0, jEnd=notifications[i]._classes.length; j