Changeset 131 in t29-www


Ignore:
Timestamp:
Jan 3, 2010, 5:41:54 AM (14 years ago)
Author:
sven
Message:

Fuer die Google Maps-Karte braucht man wohl nen API-Schluessel, sonst
geht das nur auf localhost. Also per JavaScript auf localhost gebunden.

-- sven @ workstation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • de/impressum.shtm

    r130 r131  
    1212     <title>Technikum29 - <!--#echo var="title" --></title>
    1313
    14     <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAOB_SbGFqyjIhbxfTLL5G7BSbm8ut-SLOX_ryap21RzOrwkDY8hQQh2Z-aOGiMjXLzswj5TLsbcCGxA" type="text/javascript"></script>
    1514    <script type="text/javascript">
    1615        //<!--
    17             var CONTENT='<div><b>technikum29</b><br/>Am Flachsland 29<br/>65779 Kelkheim/Taunus</div>';
     16                if(location.hostname == 'localhost') {
     17                document.write('<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAOB_SbGFqyjIhbxfTLL5G7BSbm8ut-SLOX_ryap21RzOrwkDY8hQQh2Z-aOGiMjXLzswj5TLsbcCGxA" type="text/javascript"></sc' + 'ript>');
     18                var CONTENT='<div><b>technikum29</b><br/>Am Flachsland 29<br/>65779 Kelkheim/Taunus</div>';
    1819                var restore = window.onload;
    1920                window.onload = function() {
     
    3839                        }
    3940                }
     41                } // if on localhost
    4042        //-->
    4143        </script>
     
    6668        </noscript>
    6769
     70    <script type="text/javascript">
     71        //<!--
     72                if(location.hostname == 'localhost') {
     73                document.write('
    6874        <div id="map" style="border: 1px solid #979797; background-color: #e5e3df; height: 320px;">
    6975        <div style="padding: 1em; color: gray">Karte wird geladen ...</div>
    70     </div>
     76        </div>
     77
     78        ');
     79    </script>
    7180
    7281       
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License