{ 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

Questo argomento contiene 0 risposte, ha 1 partecipante, ed è stato aggiornato da  heusi 3 anni, 3 mesi fa.

Stai vedendo 1 articolo (di 1 totali)
  • Autore
    Articoli
  • #24889 Risposta

    heusi

    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 vedendo 1 articolo (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:




:bye:  :good:  :negative:  :scratch:  :wacko:  :yahoo:  B-) 
more...
 

Non è possibile lasciare nuovi commenti.