Changeset 187 in t29-www


Ignore:
Timestamp:
Sep 3, 2010, 5:09:34 AM (9 years ago)
Author:
sven
Message:

Erste Vollversion des Mitmachsystems zur Verbesserung der englischen Homepage, zwecks Testing auf incubator.technikum29.de. Das System laeuft unter /en/dev/translation.

  • shared/css/fresh.css: Navigationsboxen-System eingefuehrt zur systematischen Verwendung von zusaetzlichen Boxen in der Navigationsleiste
  • shared/js/tools.js: Img-License-System ausschaltbar gemacht
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • en/inc/head.inc.shtm

    r176 r187  
    2121    <script type="text/javascript" src="/shared/js/tools.js"></script>
    2222    <script type="text/javascript" src="/shared/js/common.js"></script>
     23        <!-- translation system -->
     24        <script type="text/javascript" src="/en/dev/translation/editor.js"></script>
     25        <link rel="stylesheet" type="text/css" href="/en/dev/translation/editor.css" />
     26        <!-- translation end -->
    2327
    2428    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
  • en/inc/menu.inc.shtm

    r168 r187  
    7676    </ul>
    7777  </div><!-- id=menu -->
     78  <div class="box" id="sidebar-tr"> <span class="arrow tr-enabled"></span><!--design-->
     79        <div class="tr-disabled">
     80                <h3>Found a mistake?</h3>
     81                <p>This site was voluntarily trans&shy;lated by project collab&shy;orators.
     82                   We'ld love to get your help!</p>
     83                <a class="button white medium" href="/en/dev/translation/traditional.php?page=<!--#echo var="DOCUMENT_URI" -->"
     84                        title="Edit sentences directly inline!">Improve this page</a>
     85        </div>
     86        <div class="tr-enabled">
     87                <h3>Improve this page</h3>
     88                <p>Now simply click on any paragraph to correct it. Thank you!</p>
     89                <span class="button gray" href="#back_to_normal_mode">Finished!</span>
     90        </div>
     91  </div>
    7892  <!--#endif -->
    7993</div><!-- id=sidebar -->
  • shared/css/fresh.css

    r172 r187  
    502502}
    503503
    504 /* Hostinfos in der Sidebar */
    505 
    506 #sidebar-hostinfo {
     504/* Infoboxen in der Sidebar, unter dem Menue
     505 * Eingefuehrt mit den Hostinfos, Erweitert mit dem Uebersetzungssystem
     506 * September 2010
     507 */
     508#sidebar .box {
    507509        background: url("../img/fresh.design/catl2-bg.menu.png");
    508         border: 1px solid red;
    509510        font-weight:normal;
    510511        margin-top:15px;
    511         padding: 10px 3px 10px 20px;
    512 }
    513 
    514 .de #wrapper #sidebar-hostinfo .en, .en #wrapper #sidebar-hostinfo .de {
    515         display: none; /* simple internationalisation */
    516 }
     512        padding: 10px 20px 10px 20px;   
     513}
     514
     515.de #wrapper #sidebar .box .en, .en #wrapper #sidebar .box .de {
     516        display: none; /* simple internationalisation for sidebar boxes */
     517}
     518
     519/* Hostinfo-System: */
     520#sidebar-hostinfo { border: 1px solid red; }
     521
     522/* Translation-System */
     523#sidebar-translation-info {
     524        color: #555;
     525}
     526#sidebar-translation-info h3 {
     527        font-size: 100%; font-weight: bold;
     528        margin: 0;
     529}
     530#sidebar-translation-info  p {
     531        font-size: 90%;
     532        margin: 5px 0;
     533}
     534#sidebar-translation-info a  {
     535        text-decoration: none;
     536        font-weight: bold;
     537}
     538
    517539
    518540/***********************************************************************************\
  • shared/css/screen.css

    r172 r187  
    294294}
    295295
    296 #sidebar-footnote , #sidebar-hostinfo {
     296#sidebar-footnote , #menu .box {
    297297    /* Fußnoten, die eigentlich nur das freshdesign betreffen sollten */
     298        /* Und ueberhaupt sollen solche neuen Elemente nicht in nostalgischen Designs */
     299        /* verwendet werden */
    298300    display: none;
    299301}
  • shared/js/tools.js

    r181 r187  
    5353 **/
    5454t29.img_license_settings = {
     55        // enable or disable system (e.g. used as API in Translation subsystem)
     56        enabled : true,
     57
    5558        // content for the license tags (depending on language)
    5659        text : {
     
    7982        };
    8083        $("img").not(t29.img_license_settings.exclude).hover(function(){
    81                 if(this.width < t29.img_license_settings.treshold_size[0]
    82                        || this.height < t29.img_license_settings.treshold_size[1])
     84                if(!t29.img_license_settings.enabled
     85                      || this.width < t29.img_license_settings.treshold_size[0]
     86                      || this.height < t29.img_license_settings.treshold_size[1])
    8387                        return;
    8488                t29.img_license_settings.img = $(this);
     
    137141        if(location.hostname != "www.technikum29.de") {
    138142                $.get("/hostinfo.shtm", function(data) {
    139                         $("#sidebar").append("<div id='sidebar-hostinfo'/>");
     143                        $("#sidebar").append("<div class='box' id='sidebar-hostinfo'/>");
    140144                        $("#sidebar-hostinfo").html(data);
    141145                });
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