summaryrefslogtreecommitdiff
path: root/car2go-ptv
diff options
context:
space:
mode:
Diffstat (limited to 'car2go-ptv')
-rw-r--r--car2go-ptv/bookmarklet.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/car2go-ptv/bookmarklet.html b/car2go-ptv/bookmarklet.html
index 708e9dd..b3b0d28 100644
--- a/car2go-ptv/bookmarklet.html
+++ b/car2go-ptv/bookmarklet.html
@@ -1,2 +1,7 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
+<body>
Add this Link to your bookmarks:
-<a href="javascript:(function(){var%20btnFilter=document.createElement(%22button%22);btnFilter.innerHTML=%22Nur%20%3C%2025%25%20anzeigen%22;btnFilter.onclick=function(){ptvMap.clearVectorLayer();var%20d=[];for(var%20c%20in%20ptvMap.data.vehicles){var%20a=ptvMap.data.vehicles[c];if(typeof(a.tooltip)===%22undefined%22){continue}var%20b=a.tooltip.data[3].value.match(/\d+/)[0];if(parseInt(b)%3C25){d.push(a)}}ptvMap.addVehicles(d)};document.getElementById(%22content%22).appendChild(btnFilter);var%20btnUnfilter=document.createElement(%22button%22);btnUnfilter.innerHTML=%22Alle%20Anzeigen%22;btnUnfilter.onclick=function(){ptvMap.clearVectorLayer();ptvMap.addVehicles(ptvMap.data.vehicles)};document.getElementById(%22content%22).appendChild(btnUnfilter);})();">Car2Go Tankfüllungsfilter</a>
+<a href="javascript:(function(){var%20btnFilter=document.createElement(%22button%22);btnFilter.innerHTML=%22Nur%20%3C%2025%25%20anzeigen%22;btnFilter.onclick=function(){ptvMap.clearVectorLayer();var%20d=[];for(var%20c%20in%20ptvMap.data.vehicles){var%20a=ptvMap.data.vehicles[c];if(typeof(a.tooltip)===%22undefined%22){continue}var%20b=a.tooltip.data[3].value.match(/\d+/)[0];if(parseInt(b)%3C25){d.push(a)}}ptvMap.addVehicles(d)};document.getElementById(%22content%22).appendChild(btnFilter);var%20btnUnfilter=document.createElement(%22button%22);btnUnfilter.innerHTML=%22Alle%20Anzeigen%22;btnUnfilter.onclick=function(){ptvMap.clearVectorLayer();ptvMap.addVehicles(ptvMap.data.vehicles)};document.getElementById(%22content%22).appendChild(btnUnfilter);})();">Car2Go Tankinhaltfilter</a>
+</body>
+</html>