From b551f6269e028f7b3a33cdff6263083af220de2a Mon Sep 17 00:00:00 2001 From: KXNGZ-W Date: Mon, 19 Dec 2022 17:24:33 +0800 Subject: [PATCH] Bug 32 CSS slowing things down Solution taken was to remove font-awesome from the header and replace everything and use bootstrap with performs better than font-awesome as said by https://downtimemonkey.com/blog/how-we-boosted-page-load-speed.php font awesome is slow --- Course.php | 6 +++--- Courses.php | 30 ++++++------------------------ Header.php | 29 +++++++++++++++-------------- Submissions.php | 2 +- css/main.css | 21 ++++++++++++++++++--- index.php | 4 ++-- 6 files changed, 45 insertions(+), 47 deletions(-) diff --git a/Course.php b/Course.php index 2abc34f..6020adf 100644 --- a/Course.php +++ b/Course.php @@ -280,7 +280,7 @@ Lab_Report_ID not in (select Lab_Report_ID from lab_report_submissions where (St $id = $row['Lab_Report_ID']; if( $c_date < $deadline) { - $submittedx=" Re-Submit "; + $submittedx=" Re-Submit "; } $full_link = "$att1"; @@ -298,7 +298,7 @@ Lab_Report_ID not in (select Lab_Report_ID from lab_report_submissions where (St echo "
$title
$ins -
Posted : $posted Deadline : $deadline ($marks Marks)     $submittedx  Submitted +
Posted : $posted Deadline : $deadline ($marks Marks)     $submittedx  Submitted
Submitted files: "; @@ -426,7 +426,7 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen } if($status=='Remarking') { - $remarking=" Remarking Request sent
Remarking Reason:$remarking_reason
"; + $remarking=" Remarking Request sent
Remarking Reason:$remarking_reason
"; } diff --git a/Courses.php b/Courses.php index 23d5496..9178514 100644 --- a/Courses.php +++ b/Courses.php @@ -1,36 +1,18 @@ - - - - - - -
- - - - - - - +?> + + @@ -37,8 +36,10 @@ if (mysqli_connect_errno()) { -