Principal Management Tool
About this app
A simple tool for principals to manage administrative tasks.
Principal Management Tool 🏫 Principal Management Tool 🏫 👨🎓 Students Add student 👩🏫 Teachers Add teacher
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Principal Management Tool</title>
<meta name="description" content="A simple tool for principals to manage administrative tasks.">
<meta name="keywords" content="principal, management, tool, tasks, administrative, students, teachers">
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;700&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here
// Save data to local storage
function saveLocal(name, data) {
localStorage.setItem(name, JSON.stringify(data));
}
// Load data from local storage
function loadLocal(name) {
return JSON.parse(localStorage.getItem(name));
}
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Load students and teachers from local storage
var students = loadLocal('students') || [];
var teachers = loadLocal('teachers') || [];
// Update list views
updateListView('students', students);
updateListView('teachers', teachers);
// Handle add student button click
document.getElementById('add-student').addEventListener('click', function() {
var name = document.getElementById('student-name').value;
students.push(name);
saveLocal('students', students);
updateListView('students', students);
});
// Handle add teacher button click
document.getElementById('add-teacher').addEventListener('click', function() {
var name = document.getElementById('teacher-name').value;
teachers.push(name);
saveLocal('teachers', teachers);
updateListView('teachers', teachers);
});
});
// Update list view
function updateListView(id, list) {
var listView = document.getElementById(id);
listView.innerHTML = '';
list.forEach(function(name) {
var listItem = document.createElement('li');
listItem.textContent = name;
listView.appendChild(listItem);
});
}
} catch (error) {
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
font-family: 'Comfortaa', cursive;
background: #f5f5f5;
}
#main-container {
margin-top: 50px;
}
button {
margin-top: 20px;
}
ul {
margin-top: 30px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<!-- App HTML Goes Here -->
<h1 class="text-center">🏫 Principal Management Tool 🏫</h1>
<div class="row">
<div class="col-md-6">
<h2>👨🎓 Students</h2>
<input id="student-name" type="text" class="form-control" placeholder="Student name">
<button id="add-student" class="btn btn-primary">Add student</button>
<ul id="students"></ul>
</div>
<div class="col-md-6">
<h2>👩🏫 Teachers</h2>
<input id="teacher-name" type="text" class="form-control" placeholder="Teacher name">
<button id="add-teacher" class="btn btn-primary">Add teacher</button>
<ul id="teachers"></ul>
</div>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!