From f41ebee7461e86f177f0b1f7c70370ec49c2e4cb Mon Sep 17 00:00:00 2001 From: GunaPalanivel Date: Sun, 29 Sep 2024 23:10:15 +0530 Subject: [PATCH 1/2] Refactor CSS and JavaScript files - Refactored the CSS file for the unified comparison table to improve readability and consistency. - Updated the JavaScript file for the comparison table to use modern jQuery and jQuery UI versions. - Removed unnecessary comments and whitespace from the HTML files. --- index.html | 136 +-- js/comparison_table.js | 199 +++-- styles/simple.css | 1137 ++++++++++++++++++++------ unified/index.html | 33 +- unified/unified_comparison_table.css | 26 +- unified/unified_comparison_table.js | 260 ++++-- values.js | 104 +-- 7 files changed, 1359 insertions(+), 536 deletions(-) diff --git a/index.html b/index.html index a5271f9..6dc76c8 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,23 @@ - - + + - - JS Comparison Table - - - + + + JavaScript Comparison Table + + + + + + + + + - - + -
- -
-

== (negated: !=)

-

- When using two equals signs for JavaScript equality testing, some funky conversions take place. -

-
-
-

=== (negated: !==)

-

- When using three equals signs for JavaScript equality testing, everything is as is. Nothing gets converted before being evaluated. -

-
-
-

A standard IF statement. If(value) {/*- green -*/} else { /*- white -*/ }

-

Note: This row does not match up with any of the rows in the other table.

-
-
-

Moral of the story:

-

- Always use 3 equals unless you have a good reason to use 2. -

-
-
+