Changeset 134 in t29-www


Ignore:
Timestamp:
Jan 3, 2010, 8:41:46 PM (14 years ago)
Author:
incubator
Message:

Lage-Karte des Museums direkt im Impressum (in de und en) mittels Google Maps API eingebunden. Dafür ein neues Script erstellt, in dem auch die Texte und Startpositionen für beide Sprachen festgelegt sind.

In der deutschen head.inc.shtm-Datei wurde ein Hinweiskommentar gegen evventuelle Fehledits geschrieben.

-- sven @ netbook

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • de/impressum.shtm

    r131 r134  
    1212     <title>Technikum29 - <!--#echo var="title" --></title>
    1313
    14     <script type="text/javascript">
    15         //<!--
    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>';
    19                 var restore = window.onload;
    20                 window.onload = function() {
    21                         if(restore) restore();
    22                        
    23                         if(GBrowserIsCompatible()) {
    24                                 var map = new GMap2(document.getElementById("map"));
    25                                 map.setUIToDefault();
    26                                
    27                                 var pos = new GLatLng(50.145129,8.445667);
    28                                
    29                                 map.addControl(new GOverviewMapControl(new GSize(200,150)));
    30                                 map.setCenter(pos, 14);
    31                                 map.setMapType(G_HYBRID_MAP);
    32                                 map.enableContinuousZoom();
    33                                 var marker = new GMarker(pos);
    34                                 map.addOverlay(marker);
    35                                 GEvent.addListener(marker, "click", function() {
    36                                         marker.openInfoWindowHtml(CONTENT);
    37                                 });
    38                                 marker.openInfoWindowHtml(CONTENT);
    39                         }
    40                 }
    41                 } // if on localhost
    42         //-->
    43         </script>
    44        
     14    <script type="text/javascript" src="/shared/js/gmaps-impressum.js"></script>
    4515    <!--#include virtual="/de/inc/head.inc.shtm" -->
    4616    <meta name="keywords" lang="de" content="Technikum29, Impressum, Kontakt, E-Mail" />
     
    6232
    6333     <p>Wir sind Mitglied in der <a class="arrow" href="http://www.gfgf.org" title="www.gfgf.org">Gesellschaft der Freunde der Geschichte des Funkwesens e.V.</a> und im <a class="arrow" href="http://www.fitg.de" title="www.fitg.de">Förderkreis für Industrie- und Technikgeschichte e.V.</a> (Frankfurt).</p>
    64          
    6534
    66         <noscript>
    67             <p>Zur <a href="http://maps.google.de/maps?f=q&hl=de&q=Flachsland+29,+Kelkheim&layer=&sll=50.092393,10.195313&sspn=38.370164,57.392578&ie=UTF8&z=16&om=1&iwloc=addr" class="go">Wegbeschreibung bei Google Maps</a>
    68         </noscript>
    69 
    70     <script type="text/javascript">
    71         //<!--
    72                 if(location.hostname == 'localhost') {
    73                 document.write('
     35        <h3>Lage / Anfahrt</h3>
    7436        <div id="map" style="border: 1px solid #979797; background-color: #e5e3df; height: 320px;">
    7537        <div style="padding: 1em; color: gray">Karte wird geladen ...</div>
    76         </div>
     38                <noscript>
     39                        <p>Zur <a href="http://maps.google.de/maps?f=q&hl=de&q=Flachsland+29,+Kelkheim&layer=&sll=50.092393,10.195313&sspn=38.370164,57.392578&ie=UTF8&z=16&om=1&iwloc=addr" class="go">Wegbeschreibung bei Google Maps</a>
     40                </noscript>
     41    </div>
    7742
    78         ');
    79     </script>
    80 
    81        
    82        
    83     </p><br><br>
    84        
    8543        <h3>Hinweise für die Nutzung von Bildern aus der Website des  technikum29</h3>
    8644
  • de/inc/head.inc.shtm

    r130 r134  
    1 <link rel="alternate stylesheet" type="text/css" href="/shared/css/screen.css" media="screen,projection" title="technikum29 old" />
     1<!--
     2                Dies ist der dynamisch generierte Quelltext einer deutschsprachigen Seite
     3                auf technikum29.de. Aenderungen an dieser Datei werden vorraussichtlich
     4                keinen Effekt haben. Bitte die Original-Dateien (SSI, Endung .shtm oder
     5                .shtml) bearbeiten.
     6               
     7                Fuer weitere Informationen siehe Entwicklungsportal:
     8                http://dev.technikum29.de
     9                $Id$
     10    -->
     11
     12    <link rel="alternate stylesheet" type="text/css" href="/shared/css/screen.css" media="screen,projection" title="technikum29 old" />
    213    <link rel="stylesheet" type="text/css" href="/shared/css/fresh.css" media="screen,projection" title="technikum29 fresh" />
    314    <link rel="stylesheet" type="text/css" href="/shared/css/common.css" />
     
    1425    <link rel="copyright" href="/de/impressum.shtm" title="Impressum" />
    1526    <link rel="alternate" href="/en/<!--#echo var="url_en" -->" hreflang="en" title="English Version of this page" />
    16        
    17         <script type="text/javascript" src="/shared/js/auto-bildbreite.js"></script>
     27
     28    <script type="text/javascript" src="/shared/js/auto-bildbreite.js"></script>
    1829
    1930    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
  • en/contact.shtm

    r129 r134  
    1212     <title>Technikum29 - <!--#echo var="title" --></title>
    1313
    14     <link rel="stylesheet" type="text/css" href="/etc/contact/kontakt.css" />
     14        <script type="text/javascript" src="/shared/js/gmaps-impressum.js"></script>
    1515    <!--#include virtual="/en/inc/head.inc.shtm" -->
    1616    <meta name="keywords" lang="de" content="technikum29, Impressum, Kontakt, E-Mail" />
     
    3737    </address>
    3838
    39     <br/>
     39        <h3>Location</h3>
     40        <div id="map" style="border: 1px solid #979797; background-color: #e5e3df; height: 320px;">
     41        <div style="padding: 1em; color: gray">Please stand by while maps is loading ...</div>
     42                <noscript>
     43                        <p>Sorry, your browser doesn't understand javascript. See the <a href="http://maps.google.com/maps?f=q&source=s_q&hl=de&geocode=&q=Am+Flachsland+29,+65779+Kelkheim,+Deutschland&sll=50.275299,8.745117&sspn=7.598462,15.930176&ie=UTF8&hq=&hnear=Am+Flachsland+29,+65779+Kelkheim+(Taunus),+Main-Taunus-Kreis,+Hessen,+Deutschland&ll=50.373496,6.855469&spn=15.17797,31.860352&z=5" class="go">Our location at Google Maps</a>
     44                </noscript>
     45    </div>
    4046
    4147    <h3>Image use policy and information about reusing technikum29 website contents</h3>
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