{ Dev Farm }

Web & Windows Development

Lazy Loading and a small improvement for you

Home Forum Wp Gpx Maps Support Lazy Loading and a small improvement for you

Stai visualizzando 1 post (di 1 totali)
  • Autore
    Post
  • #24889 Rispondi
    heusi
    Ospite

    Hallo,

    would it be possible to add lazy loading (e.g. http://osvaldas.info/lazy-loading-google-maps ).

    And I’ve a small improvement for myself – instead / additonal of the download link I added a qr code.
    If you like this, you could add this idea:

    1. option – direct download:

    $gpxurl = $dummy.$gpxurl;
    $qrurl = "https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=";
    $qrurl .= rawurlencode ( $gpxurl );
    $output.="<a href='$gpxurl' target='_new' download='route.gpx'><div style='text-align: center;'><img src='$qrurl'></div></a>";

    2. option (which I prefer) – qr code to open the post where the download link is:

    $gpxurl = $dummy.$gpxurl;
    $qrurl = "https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=";
    $qrurl .=get_permalink();
    $output.="<a href='$gpxurl' target='_new' download='route.gpx'><div style='text-align: center;'>Download GPX<br><img src='$qrurl'</div></a>";
    

    Thank you very much!

Stai visualizzando 1 post (di 1 totali)
Rispondi a: Lazy Loading and a small improvement for you

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.