Beiträge von Sammyz

    Hallo,


    Wenn das Foto in dem Verzeichnis https://www.nyman.at abgelegt ist sollte das kein Problem darstellt.
    Bitte überprüfe genau wo das Bild abgelegt wird und teile uns das mit. Unter einer Mailadresse wie Du das schreibts funktioniert natürlich nicht.

    Code
    <div class="dmCustomHtml" data-element-type="html" id="1881088337" style="text-align: center;"> <img src="https://www.Deine Domain mit Verzeichnissangabe LatestImage.jpg" width="90%" style="box-shadow: 6px 6px 6px grey;">
    </div>

    So in etwa könnte es aussehen

    Gruß

    Sammy

    Hi,


    Ist es möglich Orte für Termine eine Farbauswahl einzubauen und den aktuellen Tag farbig darzustellen. Hier mal ein Skript wie ich es gelöst habe als Beispiel.

    Entscheiden Sie sich für Zeta Producer, so erwerben Sie grundsätzlich eine Einzelbenutzerlizenz. Das bedeutet, dass für jeden Benutzer, der mit dem Programm arbeitet, eine eigene Lizenz erworben werden muss.

    Es ist jedoch erlaubt, dass Zeta Producer sowohl auf dem PC als auch auf dem Laptop installiert wird, solange nur eine Person daran arbeitet.

    Mit der erworbenen Lizenz können unbegrenzt viele Websites erstellt werden. Sollten Dritte Änderungen an der Website vornehmen wollen, so müssen diese auch eine eigene Lizenz erwerben.


    Gruß

    Sammy

    Hi hier das Skript aufgeräumt mit Erklärung Text und es kann man leichter erweitern.

    Gruß

    Sammy

    <script>
    let erlaubt = false;

    // Prüft die Bildschirmbreite und setzt "erlaubt"
    function checkScreenWidth() {
    erlaubt = window.innerWidth > 500;
    console.log("Screenbreite:", window.innerWidth, "| erlaubt:", erlaubt);
    }

    // Beim Start und bei jeder Fensteränderung prüfen
    checkScreenWidth();
    window.addEventListener("resize", checkScreenWidth);

    // Funktion zum Verbinden von Thumbnail & großem Bild
    function setupImageToggle(thumbId, imageId) {
    const thumb = document.getElementById(thumbId);
    const image = document.getElementById(imageId);

    if (!thumb || !image) return;

    thumb.addEventListener("click", () => {
    if (erlaubt) image.style.display = "flex";
    });

    image.addEventListener("click", () => {
    image.style.display = "none";
    });
    }

    // Alle Bildpaare hier eintragen
    setupImageToggle("thumb1", "bild1");
    setupImageToggle("thumb2", "bild2");
    // Bei Bedarf weitere aufrufen: setupImageToggle("thumb3", "bild3");

    </script>

    nein das Skript auf der Seite mit html widgets einfügen.

    und das in die CSS einfügen

    <style>

    .thumb_box {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 6px 6px 6px grey, -2px -2px 4px white;

    }

    .bild_box {
    position: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: fixed;
    }
    .transparent-iframe {
    background-color: transparent;
    border: none;
    width: 100%;
    height: 620px;
    }

    </style>

    habe noch was vergessen. Du musst noch ein HTML einfügen am besten unten. Das ist dann das Skript.



    <script>
    let screenie = 100;
    let erlaubt = "nein";
    setInterval(function () {
    screenie = window.innerWidth;
    console.log("screenie: ", screenie);
    if (screenie > 500) {
    erlaubt = "ja"
    }
    else
    {erlaubt = "nein";}
    console.log("erlaubt: ", erlaubt);

    }, 500);

    let dumbo = document.getElementById("thumb1");
    let bild = document.getElementById("bild1");



    dumbo.addEventListener("click", function () {
    if (erlaubt == "ja") bild.style.display = "flex";
    // dumbo.style.display = "none";
    });
    bild.addEventListener("click", function () {
    bild.style.display = "none";
    //dumbo.style.display = "flex";
    });
       
    let dumbo2 = document.getElementById("thumb2");
    let bild2 = document.getElementById("bild2");
      
    dumbo2.addEventListener("click", function () {
    if (erlaubt == "ja") bild2.style.display = "flex";
    // dumbo.style.display = "none";
    });
    bild2.addEventListener("click", function () {
    bild2.style.display = "none";
    //dumbo.style.display = "flex";
    });


      
    </script>

    <style>

    .thumb_box {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 6px 6px 6px grey, -2px -2px 4px white;

    }

    .bild_box {
    position: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: fixed;
    }
    .transparent-iframe {
    background-color: transparent;
    border: none;
    width: 100%;
    height: 620px;
    }

    </style>

    <div class="thumb_box">
    <!-- Thumbnail -->
    <img src="https://playa-cam.es/camera1" style="width: 100%; cursor: pointer;" id="thumb1" />
    </div>

    <div id="bild_box1"align="center">
    <img src="https://playa-cam.es/camera1" class="bild" id="bild1" style="position: fixed; top:50px; left:15vw; width: 70vw; z-index:1000; background-color: #aaffaa;
    box-shadow: 6px 6px 6px grey, -2px -2px 4px white;

    cursor: pointer; display:none;" />
    </div>


    css: .thumb_box {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 6px 6px 6px grey, -2px -2px 4px white;

    }

    .bild_box {
    position: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: fixed;
    }
    .transparent-iframe {
    background-color: transparent;
    border: none;
    width: 100%;
    height: 620px;
    }

    css fehlt noch.


    .thumb_box {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 6px 6px 6px grey, -2px -2px 4px white;

    }

    .bild_box {
    position: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: fixed;
    }
    .transparent-iframe {
    background-color: transparent;
    border: none;
    width: 100%;
    height: 620px;
    }

    Hi,


    Musst de über html einfügen. Zum Beispiel so. Hier das Beispiel, https://mrt-rosenheim.de/webcam.php

    <div class="thumb_box">
    <!-- Thumbnail -->
    <img src="https://www.platzcam.de/MRT1.jpg" style="width: 100%; cursor: pointer;" id="thumb1" />
    </div>

    <div id="bild_box1"align="center">
    <img src="wo die Webcam das Bild ablegt " class="bild" id="bild1" style="position: fixed; top:50px; left:15vw; width: 70vw; z-index:1000; background-color: #aaffaa;
    box-shadow: 6px 6px 6px grey, -2px -2px 4px white;

    cursor: pointer; display:none;" />
    </div>

    Ich hänge mich da auch mal rann. Bei mir ist es so gewesen. Habe auf der Deutschen Seite Bilder mit Slider Funktion eingefügt.
    Dann habe ich die gleichen Bilder in der englischen Version eingefügt über importierte Bilder und auf einmal waren die importierten Bilder gelöscht. Keine Fehlermeldung oder dergleichen.


    Gruß

    Sammy