summaryrefslogtreecommitdiff
path: root/car2go-ptv/bookmarklet.html
diff options
context:
space:
mode:
Diffstat (limited to 'car2go-ptv/bookmarklet.html')
-rw-r--r--car2go-ptv/bookmarklet.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/car2go-ptv/bookmarklet.html b/car2go-ptv/bookmarklet.html
new file mode 100644
index 0000000..708e9dd
--- /dev/null
+++ b/car2go-ptv/bookmarklet.html
@@ -0,0 +1,2 @@
+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>