Added some small documentation

This commit is contained in:
Pascal Neis 2011-06-30 11:37:31 +00:00
parent e7a4070339
commit eca141eebc

View File

@ -288,6 +288,9 @@ function decodeRouteGeometry(encoded, precision) {
return array;
}
/*
* createShortLink()-Function to "create" shortlink of a route
*/
function createShortLink(str){
var script = document.createElement('script');
script.type = 'text/javascript';
@ -296,6 +299,9 @@ function createShortLink(str){
document.body.appendChild(script);
}
/*
* showRouteLink()-Function
*/
function showRouteLink(response){
document.getElementById('routelink').innerHTML = '<span class="routeSummarybold"> >> Your ShortLink:</span> <a href="'+response.ShortURL+'">'+response.ShortURL+'</a>';
}