summaryrefslogtreecommitdiff
path: root/car2go-ptv/bookmarklet.html
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2012-05-29 13:02:52 +0200
committerYves Fischer <yvesf-git@xapek.org>2012-05-29 13:02:52 +0200
commit9fc40c33f26fec7247f23907ac5b7019bda0996c (patch)
treec902f9217bc3c9572a2aea2de2e757cfdb1e16ac /car2go-ptv/bookmarklet.html
parenta920b92e1c367cc5b6b6afc635259c6dbfc4ec5b (diff)
downloadscripts-9fc40c33f26fec7247f23907ac5b7019bda0996c.tar.gz
scripts-9fc40c33f26fec7247f23907ac5b7019bda0996c.zip
car2go stuff
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>