Calculator Tools Calculator Tools
Create

Principal Management Tool

Oct 2, 2023

About this app

A fun and efficient management tool for principals.

Principal Management Tool 🏫 Principal Management Tool 🏫 Add Task

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 fun and efficient management tool for principals.">
<meta name="keywords" content="education, management, principal, tool, school">

<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. Place your entire script content inside the try block for error handling.
var tasks = [];
function saveLocal() {
localStorage.setItem('tasks', JSON.stringify(tasks));
}
function loadLocal() {
tasks = JSON.parse(localStorage.getItem('tasks')) || [];
}
function addTask() {
var taskInput = document.getElementById('task-input');
tasks.push(taskInput.value);
taskInput.value = '';
saveLocal();
updateTasks();
}
function updateTasks() {
loadLocal();
var tasksList = document.getElementById('tasks-list');
tasksList.innerHTML = '';
tasks.forEach(function(task, index) {
tasksList.innerHTML += '<li>' + task + ' <button onclick="removeTask(' + index + ')">🗑️</button></li>';
});
}
function removeTask(index) {
tasks.splice(index, 1);
saveLocal();
updateTasks();
}
document.addEventListener("DOMContentLoaded", function() {
updateTasks();
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
background: linear-gradient(to right, #fbc2eb, #a6c1ee);
font-family: 'Comic Sans MS', sans-serif;
}
#main-container {
text-align: center;
}
#tasks-list {
list-style-type: none;
padding: 0;
}
#tasks-list li {
margin: 10px 0;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<!-- App HTML Goes Here -->
<h1>🏫 Principal Management Tool 🏫</h1>
<input id="task-input" type="text" placeholder="Enter a task" />
<button onclick="addTask()">Add Task</button>
<ul id="tasks-list"></ul>
</div>
</body>
</html>