summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlshprung <lshprung@yahoo.com>2022-04-11 18:57:18 -0700
committerlshprung <lshprung@yahoo.com>2022-04-11 18:57:18 -0700
commit8ba81bd2606b83bc04e34854afb0f6ce810322b6 (patch)
tree5ac4cefb70074edaa48e086bc0b34c7ccd31c930
parent7ec4b054da422b5cee4e6d76b6fb7d7e90cf29a5 (diff)
Changed name of project
-rw-r--r--.gitignore6
-rw-r--r--assignment_list.css (renamed from hw_schedule2.css)0
-rw-r--r--assignment_list.js (renamed from hw_schedule2.js)18
-rw-r--r--assignment_list.php (renamed from hw_schedule2.php)4
-rw-r--r--backend/backend.php (renamed from backend/hw_schedule2_backend.php)0
5 files changed, 17 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..dccca06
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*
+!backend
+!backend/*
+!assignment_list*
+
+!.gitignore
diff --git a/hw_schedule2.css b/assignment_list.css
index d6c388d..d6c388d 100644
--- a/hw_schedule2.css
+++ b/assignment_list.css
diff --git a/hw_schedule2.js b/assignment_list.js
index 5bc7a96..6955328 100644
--- a/hw_schedule2.js
+++ b/assignment_list.js
@@ -193,7 +193,7 @@ function load_data(mode){
return;
}
- let url = "backend/hw_schedule2_backend.php";
+ let url = "backend/backend.php";
let data = "type=" + type;
console.log(data);
@@ -245,7 +245,7 @@ function submit_add_class(id){
}
//TODO create array instead
- let url = "backend/hw_schedule2_backend.php";
+ let url = "backend/backend.php";
let data = "type=save_class" +
"&add_class_desc=" + encodeURIComponent(name) +
@@ -315,7 +315,7 @@ function submit_add_assignment(id, ass_id){
return;
}
- let url = "backend/hw_schedule2_backend.php";
+ let url = "backend/backend.php";
//TODO create array instead
let data = "type=save_assignment" +
@@ -352,7 +352,7 @@ function draw_edit_class(id){
draw_add_class(id);
//load values
- let url = "backend/hw_schedule2_backend.php";
+ let url = "backend/backend.php";
let data = "type=load_classes" +
"&id=" + encodeURIComponent(id);
@@ -381,7 +381,7 @@ function delete_class(id){
if(!prompt) return;
//note that classes are not deleted, just set to hidden
- let url = "backend/hw_schedule2_backend.php";
+ let url = "backend/backend.php";
let data = "type=delete_class" +
"&id=" + encodeURIComponent(id);
@@ -409,7 +409,7 @@ function draw_edit_assignment(id, ass_id){
//load values
const box = document.querySelector("#edit_assignment_box_" + ass_id);
- let url = "backend/hw_schedule2_backend.php";
+ let url = "backend/backend.php";
let data = "type=load_assignments" +
"&id=" + encodeURIComponent(ass_id);
@@ -436,7 +436,7 @@ function draw_edit_assignment(id, ass_id){
/* clone an assignment */
function clone_assignment(id){
- let url = "backend/hw_schedule2_backend.php";
+ let url = "backend/backend.php";
let data = "type=clone_assignment" +
"&id=" + encodeURIComponent(id);
@@ -461,7 +461,7 @@ function clone_assignment(id){
function toggle_done(id){
const box = document.querySelector("#edit_assignment_box_" + id);
- let url = "backend/hw_schedule2_backend.php";
+ let url = "backend/backend.php";
let data = "type=toggle_done" +
"&id=" + encodeURIComponent(id);
@@ -488,7 +488,7 @@ function delete_assignment(id){
if(!prompt) return;
//note that classes are not deleted, just set to hidden
- let url = "backend/hw_schedule2_backend.php";
+ let url = "backend/backend.php";
let data = "type=delete_assignment" +
"&id=" + encodeURIComponent(id);
diff --git a/hw_schedule2.php b/assignment_list.php
index e333cf1..e6e817b 100644
--- a/hw_schedule2.php
+++ b/assignment_list.php
@@ -124,8 +124,8 @@ print "TEST: num_hw = $ENGL2A->num_hw";
<html>
<head>
<title>Daily Homework Schedule</title>
- <link rel="stylesheet" href="hw_schedule2.css">
- <script defer src="hw_schedule2.js"></script>
+ <link rel="stylesheet" href="assignment_list.css">
+ <script defer src="assignment_list.js"></script>
</head>
<body>
diff --git a/backend/hw_schedule2_backend.php b/backend/backend.php
index 55d3588..55d3588 100644
--- a/backend/hw_schedule2_backend.php
+++ b/backend/backend.php