diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2012-05-29 13:02:52 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2012-05-29 13:02:52 +0200 |
commit | 9fc40c33f26fec7247f23907ac5b7019bda0996c (patch) | |
tree | c902f9217bc3c9572a2aea2de2e757cfdb1e16ac /car2go-ptv/bookmarklet.html | |
parent | a920b92e1c367cc5b6b6afc635259c6dbfc4ec5b (diff) | |
download | scripts-9fc40c33f26fec7247f23907ac5b7019bda0996c.tar.gz scripts-9fc40c33f26fec7247f23907ac5b7019bda0996c.zip |
car2go stuff
Diffstat (limited to 'car2go-ptv/bookmarklet.html')
-rw-r--r-- | car2go-ptv/bookmarklet.html | 2 |
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> |