Aaaaaaà

 <!DOCTYPE html>

<html lang="ne">

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>हाजिर र कार्य रेकर्ड प्रणाली</title>

  <style>

    body {

      font-family: 'Arial', sans-serif;

      background: #f2f2f2;

      margin: 0;

      padding: 0;

    }

    .container {

      max-width: 600px;

      margin: 30px auto;

      background: white;

      padding: 20px;

      border-radius: 10px;

      box-shadow: 0 0 10px rgba(0,0,0,0.1);

    }

    h2 {

      text-align: center;

      color: #333;

    }

    label {

      display: block;

      margin-top: 15px;

      font-weight: bold;

    }

    input, textarea, button {

      width: 100%;

      padding: 10px;

      margin-top: 5px;

      border-radius: 5px;

      border: 1px solid #ccc;

    }

    button {

      background: #007bff;

      color: white;

      margin-top: 20px;

      cursor: pointer;

      border: none;

    }

    button:hover {

      background: #0056b3;

    }

    .record {

      margin-top: 20px;

      background: #e6ffe6;

      padding: 10px;

      border-left: 5px solid green;

    }

  </style>

</head>

<body>

  <div class="container">

    <h2>दैनिक हाजिरी र कार्य रेकर्ड</h2>

    <form id="attendanceForm">

      <label>नाम:</label>

      <input type="text" id="name" required>


      <label>आजको मिति:</label>

      <input type="date" id="date" required>


      <label>Check In समय:</label>

      <input type="time" id="checkIn" required>


      <label>Check Out समय:</label>

      <input type="time" id="checkOut" required>


      <label>आजको कार्य विवरण:</label>

      <textarea id="tasks" rows="4" required></textarea>


      <button type="submit">रेकर्ड सेभ गर्नुहोस्</button>

    </form>


    <div id="records"></div>

  </div>


  <script>

    const form = document.getElementById('attendanceForm');

    const recordsDiv = document.getElementById('records');


    form.addEventListener('submit', function(e) {

      e.preventDefault();


      const name = document.getElementById('name').value;

      const date = document.getElementById('date').value;

      const checkIn = document.getElementById('checkIn').value;

      const checkOut = document.getElementById('checkOut').value;

      const tasks = document.getElementById('tasks').value;


      const recordHTML = `

        <div class="record">

          <strong>${name}</strong> ले <strong>${date}</strong> मा <br>

          Check In: ${checkIn} | Check Out: ${checkOut} <br>

          कार्य: ${tasks}

        </div>

      `;


      recordsDiv.innerHTML += recordHTML;

      form.reset();

    });

  </script>

</body>

</html>


Post a Comment

0 Comments