diff options
author | louie <louie@shprung.com> | 2022-04-17 10:46:30 -0700 |
---|---|---|
committer | louie <louie@shprung.com> | 2022-04-17 10:46:30 -0700 |
commit | 28a0142718dcad621dfecdb99fe6f2965edf5f0d (patch) | |
tree | a141c5b101ff9853ed15bc9a958181390d2099c7 | |
parent | 5709215241fc99eada2efcc770bfb33e7ee72e53 (diff) |
Created custom directory, moved background out of main file (to custom)
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | assignment_list.js | 4 | ||||
-rw-r--r-- | assignment_list.php | 1 |
3 files changed, 2 insertions, 4 deletions
@@ -1,5 +1,6 @@ * !backend/backend.php +!custom !assignment_list* !setup.php diff --git a/assignment_list.js b/assignment_list.js index 6955328..1c153fb 100644 --- a/assignment_list.js +++ b/assignment_list.js @@ -1,7 +1,3 @@ -//set background image -const bg_image = ["rubber_duck_PNG33.png", "dice.png"]; -document.getElementById("bg").style.backgroundImage = "url(" + bg_image[Math.floor(Math.random() * bg_image.length)] + ")"; - //Function to get date function get_day(d){ if(!d) d = new Date(); diff --git a/assignment_list.php b/assignment_list.php index e6e817b..1d4dfc3 100644 --- a/assignment_list.php +++ b/assignment_list.php @@ -126,6 +126,7 @@ print "TEST: num_hw = $ENGL2A->num_hw"; <title>Daily Homework Schedule</title> <link rel="stylesheet" href="assignment_list.css"> <script defer src="assignment_list.js"></script> + <script defer src="custom/custom.js"></script> </head> <body> |