Giter Site home page Giter Site logo

devopsd's People

Contributors

dossiya2424 avatar

Watchers

 avatar

devopsd's Issues

N

<title>Contrôle du réfrigérateur</title> <style> body { font-family: Arial, sans-serif; margin: 20px; }
    h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    p {
        margin-bottom: 10px;
    }

    button {
        margin-right: 10px;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
    }

    #temperature {
        font-weight: bold;
    }

    #doorStatus {
        font-style: italic;
    }
</style>

Contrôle du réfrigérateur

<p>Température actuelle : <span id="temperature"></span>°C</p>

<p>
    <button onclick="setTemperature(5)">5°C</button>
    <button onclick="setTemperature(10)">10°C</button>
    <button onclick="setTemperature(15)">15°C</button>
</p>

<p>
    Porte du réfrigérateur : 
    <span id="doorStatus">Fermée</span>
</p>

<script>
    // Fonction pour mettre à jour la température
    function updateTemperature(temperature) {
        document.getElementById("temperature").innerHTML = temperature;
    }

    // Fonction pour changer la température
    function setTemperature(temperature) {
        // Envoyer une requête au module de communication pour changer la température
        // ...

        // Mettre à jour l'affichage de la température
        updateTemperature(temperature);
    }

    // Fonction pour mettre à jour l'état de la porte
    function updateDoorStatus(doorStatus) {
        document.getElementById("doorStatus").innerHTML = doorStatus;
    }

    // Mettre à jour l'affichage de la température initiale
    updateTemperature(20);

    // Mettre à jour l'état de la porte initiale
    updateDoorStatus("Fermée");

    // Ecouter les événements de la porte
    // ...

    // Envoyer les données de surveillance au serveur
    // ...
</script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.