Added some small documentation
This commit is contained in:
parent
e7a4070339
commit
eca141eebc
@ -288,6 +288,9 @@ function decodeRouteGeometry(encoded, precision) {
|
|||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* createShortLink()-Function to "create" shortlink of a route
|
||||||
|
*/
|
||||||
function createShortLink(str){
|
function createShortLink(str){
|
||||||
var script = document.createElement('script');
|
var script = document.createElement('script');
|
||||||
script.type = 'text/javascript';
|
script.type = 'text/javascript';
|
||||||
@ -296,6 +299,9 @@ function createShortLink(str){
|
|||||||
document.body.appendChild(script);
|
document.body.appendChild(script);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* showRouteLink()-Function
|
||||||
|
*/
|
||||||
function showRouteLink(response){
|
function showRouteLink(response){
|
||||||
document.getElementById('routelink').innerHTML = '<span class="routeSummarybold"> >> Your ShortLink:</span> <a href="'+response.ShortURL+'">'+response.ShortURL+'</a>';
|
document.getElementById('routelink').innerHTML = '<span class="routeSummarybold"> >> Your ShortLink:</span> <a href="'+response.ShortURL+'">'+response.ShortURL+'</a>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user