Skip to content

codeheck03-ary/proxenix-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

proxenix-projects

<title>Simple Online Education Platform</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; background: #f4f4f4; } header { background: #4CAF50; color: white; padding: 15px; text-align: center; } nav { background: #333; padding: 10px; text-align: center; } nav a { color: white; margin: 0 10px; text-decoration: none; } .container { padding: 20px; } .course { background: white; padding: 15px; margin: 10px 0; border-radius: 5px; } .discussion, .progress, .login-form, .notification { background: #fff; padding: 15px; margin-top: 20px; border-radius: 5px; } input, button { padding: 10px; margin: 5px 0; width: 100%; } button { background-color: #4CAF50; color: white; border: none; } </style>

LearnOnline Platform

Courses Login Progress Discussion

Login

Login
<section id="courses">
   h2>Available Courses</h2>
  <div class="course">
    <h3>Web Development Basics</h3>
    <p>Learn HTML, CSS, and JavaScript.</p>
    <button onclick="enroll('Web Development Basics')">Enroll</button>
  </div>
  <div class="course">
    <h3>Data Science Intro</h3>
    <p>Explore data and build basic models.</p>
    <button onclick="enroll('Data Science Intro')">Enroll</button>
  </div>
</section>

<section id="progress" class="progress">
  <h2>Your Progress</h2>
  <p id="progressText">Not enrolled in any course yet.</p>
</section>

<section id="discussion" class="discussion">
  <h2>Discussion Channel</h2>
  <textarea id="discussionInput" rows="4" placeholder="Type your question..."></textarea>
  <button onclick="postDiscussion()">Post</button>
  <div id="discussionBoard"></div>
</section>

<section class="notification">
  <h2>Notifications</h2>
  <ul id="notificationList">
    <li>Welcome to LearnOnline!</li>
  </ul>
</section>
<script> function login() { const user = document.getElementById('username').value; const pass = document.getElementById('password').value; if (user && pass) { alert('Login successful!'); addNotification(`User ${user} logged in.`); } else { alert('Please enter username and password.'); } } function enroll(courseName) { document.getElementById('progressText').textContent = `You are enrolled in: ${courseName}`; addNotification(`Enrolled in ${courseName}`); } function postDiscussion() { const input = document.getElementById('discussionInput'); const board = document.getElementById('discussionBoard'); if (input.value.trim() !== '') { const post = document.createElement('p'); post.textContent = input.value; board.appendChild(post); input.value = ''; addNotification('New discussion post added'); } } function addNotification(message) { const list = document.getElementById('notificationList'); const item = document.createElement('li'); item.textContent = message; list.appendChild(item); } </script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published