From e210c199ba0d0861f35f4db57ca4ee1a614316ae Mon Sep 17 00:00:00 2001
From: dpilafian
Date: Tue, 9 Jul 2024 18:31:04 -0700
Subject: [PATCH] Add TOC to products page
---
src/templates/table-of-products-toc.html | 14 +
src/templates/table-of-products.html | 641 +++++++++++----------
src/website/css/layout.less | 71 ++-
src/website/do-not-learn-metric/index.html | 4 +-
src/website/index.html | 2 +-
src/website/products/index.html | 19 +-
6 files changed, 396 insertions(+), 355 deletions(-)
create mode 100644 src/templates/table-of-products-toc.html
diff --git a/src/templates/table-of-products-toc.html b/src/templates/table-of-products-toc.html
new file mode 100644
index 0000000..4be3605
--- /dev/null
+++ b/src/templates/table-of-products-toc.html
@@ -0,0 +1,14 @@
+Tape Measures
+Meter Sticks
+Rulers
+Adhesive Rulers
+Calipers
+Squares & Blocks
+Architect Scales
+Measuring Spoons & Cups
+Scales
+Thermometers
+Kettles
+Tool Sets
+Office Supplies
+Education & Games
diff --git a/src/templates/table-of-products.html b/src/templates/table-of-products.html
index c773611..8ff2e84 100644
--- a/src/templates/table-of-products.html
+++ b/src/templates/table-of-products.html
@@ -1,333 +1,336 @@
-
-
- Item | Note | Image |
-
-
+
-
+
+
+ Tape Measures |
+
+
+ 🏆 Takamine Professional Tape Measure, 5.5m |
+ High Contrast |
+  |
+
+
+ 🏆 PICAGER Self-Lock Metric-Only Tape Measure, 5m |
+ High Contrast |
+  |
+
+
+ Milwaukee Autolock Tape Measure, 5m |
+ Professional |
+  |
+
+
+ Milwaukee Pro Compact Metric Tape Measure, 8m |
+ Professional |
+  |
+
+
+ STANLEY FATMAX Classic Tape with Blade Armor, 8m |
+ Sturdy |
+  |
+
+
+ STANLEY FATMAX Autolock Tape, 5m |
+ Sturdy |
+  |
+
+
+ Komelon PG85 Metric Gripper Tape, 8m |
+ Good value |
+  |
+
+
+ OX Trade Series Metric Tape Nylon Coated, 3m |
+ Compact size |
+  |
+
+
+ Stanley Tylon Tape Measure, Black/Yellow, 3m / 5m / 8m |
+ Compact size |
+  |
+
+
+ 🏆 Komelon Keymaster Pocket Mini Tape Measure, 2m |
+ Pocket size |
+  |
+
+
+ PENCO Pocket Measure Red, 2m |
+ Pocket size |
+  |
+
+
+ Utoolmart 2m Measuring Tape |
+ Pocket size |
+  |
+
-
- Tape Measures |
-
-
- 🏆 Takamine Professional Tape Measure, 5.5m |
- High Contrast |
-  |
-
-
- 🏆 PICAGER Self-Lock Metric-Only Tape Measure, 5m |
- High Contrast |
-  |
-
-
- Milwaukee Autolock Tape Measure, 5m |
- Professional |
-  |
-
-
- Milwaukee Pro Compact Metric Tape Measure, 8m |
- Professional |
-  |
-
-
- STANLEY FATMAX Classic Tape with Blade Armor, 8m |
- Sturdy |
-  |
-
-
- STANLEY FATMAX Autolock Tape, 5m |
- Sturdy |
-  |
-
-
- Komelon PG85 Metric Gripper Tape, 8m |
- Good value |
-  |
-
-
- OX Trade Series Metric Tape Nylon Coated, 3m |
- Compact size |
-  |
-
-
- Stanley Tylon Tape Measure, Black/Yellow, 3m / 5m / 8m |
- Compact size |
-  |
-
-
- 🏆 Komelon Keymaster Pocket Mini Tape Measure, 2m |
- Pocket size |
-  |
-
-
- PENCO Pocket Measure Red, 2m |
- Pocket size |
-  |
-
-
- Utoolmart 2m Measuring Tape |
- Pocket size |
-  |
-
+
+
+ Meter Sticks |
+
+
+ Shinwa 1,000 mm Rigid "Zero Glare" Metric Machinist Rule, 1m |
+ Stainless steel |
+  |
+
+
+ Double Sided Meter Stick, Hardwood, Protective Metal Ends, 1m |
+ Wood |
+  |
+
-
- Meter Sticks |
-
-
- Shinwa 1,000 mm Rigid "Zero Glare" Metric Machinist Rule, 1m |
- Stainless steel |
-  |
-
-
- Double Sided Meter Stick, Hardwood, Protective Metal Ends, 1m |
- Wood |
-  |
-
+
+
+ Rulers |
+
+
+ 🏆 Shinwa Sokutei Pickup Scale (Ruler), 10cm / 15cm / 30cm / 60cm |
+ Stainless steel |
+  |
+
+
+ Midori Aluminium Ruler Black, 15cm |
+ Small, aluminium |
+  |
+
+
+ Midori Metric CL Ruler Clear, 15cm |
+ Small, plastic |
+  |
+
+
+ Wiha MaxiFlex Folding Ruler, Outside Reading, 2m |
+ Fiberglass folding ruler |
+  |
+
-
- Rulers |
-
-
- 🏆 Shinwa Sokutei Pickup Scale (Ruler), 10cm / 15cm / 30cm / 60cm |
- Stainless steel |
-  |
-
-
- Midori Aluminium Ruler Black, 15cm |
- Small, aluminium |
-  |
-
-
- Midori Metric CL Ruler Clear, 15cm |
- Small, plastic |
-  |
-
-
- Wiha MaxiFlex Folding Ruler, Outside Reading, 2m |
- Fiberglass folding ruler |
-  |
-
+
+
+ Adhesive Rulers |
+
+
+ uxcell Adhesive Backed Tape Measure, 10cm |
+ PVC sticker |
+  |
+
+
+ Steel Metric Self Adhesive String Ruler, 1m |
+ Metal sticker |
+  |
+
-
- Adhesive Rulers |
-
-
- uxcell Adhesive Backed Tape Measure, 10cm |
- PVC sticker |
-  |
-
-
- Steel Metric Self Adhesive String Ruler, 1m |
- Metal sticker |
-  |
-
+
+
+ Calipers |
+
+
+ Utoolmart Vernier Caliper 80mm Measuring Tool, Outside Inside |
+ Copper |
+  |
+
+
+ Tyenaza Vernier Caliper, 0mm-150mm Range, 0.02mm Accuracy |
+ Stainless Steel |
+  |
+
+
+ Mitutoyo Digital Caliper, 0-150mm Range |
+ Solar powered |
+  |
+
-
- Calipers |
-
-
- Utoolmart Vernier Caliper 80mm Measuring Tool, Outside Inside |
- Copper |
-  |
-
-
- Tyenaza Vernier Caliper, 0mm-150mm Range, 0.02mm Accuracy |
- Stainless Steel |
-  |
-
-
- Mitutoyo Digital Caliper, 0-150mm Range |
- Solar powered |
-  |
-
+
+
+ Squares & Blocks |
+
+
+ 🏆 Swanson NA202 Metric Speed Square Layout Tool, 25 cm |
+ Aluminum |
+  |
+
+
+ 45/90 Degree Right Angle Line Gauge Carpenter Ruler and Center Finder, 9 cm |
+ Aluminum Alloy |
+  |
+
+
+ 45/90 Degree Centering Gauge Measuring Tool, Carpenter Ruler, 200×150 mm |
+ Stainless Steel |
+  |
+
+
+ Carpenter Square with 3D Multi-Angle Layout Measuring Ruler, Pin Pivot Design, 120×80 mm |
+ Aluminum Alloy |
+  |
+
+
+ Square for Woodworking Miter Scriber T Ruler 45/90 Degree Angle Protractor Gauge, 16 cm |
+ Aluminum Alloy |
+  |
+
+
+ 90 Degree L Shaped Dual Angle Side Square Layout Tool, 150×300 mm |
+ Stainless Steel |
+  |
+
+
+ Shinwa Sokutei 12101 Curb Scale, Right Angle Ruler, Stainless Steel, 10×5 cm |
+ Small |
+  |
+
+
+ Height Gauge Set, 15-Piece Precision Metric Setup Blocks for Router and Table Saw, 25×50×75 mm |
+ Aluminum |
+  |
+
-
- Squares & Blocks |
-
-
- 🏆 Swanson NA202 Metric Speed Square Layout Tool, 25 cm |
- Aluminum |
-  |
-
-
- 45/90 Degree Right Angle Line Gauge Carpenter Ruler and Center Finder, 9 cm |
- Aluminum Alloy |
-  |
-
-
- 45/90 Degree Centering Gauge Measuring Tool, Carpenter Ruler, 200×150 mm |
- Stainless Steel |
-  |
-
-
- Carpenter Square with 3D Multi-Angle Layout Measuring Ruler, Pin Pivot Design, 120×80 mm |
- Aluminum Alloy |
-  |
-
-
- Square for Woodworking Miter Scriber T Ruler 45/90 Degree Angle Protractor Gauge, 16 cm |
- Aluminum Alloy |
-  |
-
-
- 90 Degree L Shaped Dual Angle Side Square Layout Tool, 150×300 mm |
- Stainless Steel |
-  |
-
-
- Shinwa Sokutei 12101 Curb Scale, Right Angle Ruler, Stainless Steel, 10×5 cm |
- Small |
-  |
-
-
- Height Gauge Set, 15-Piece Precision Metric Setup Blocks for Router and Table Saw, 25×50×75 mm |
- Aluminum |
-  |
-
+
+
+ Architect Scales |
+
+
+ Alumicolor Metric Architect Hollow Scale, 30cm, 20/25/50/75/100/125 |
+ Aluminum |
+  |
+
+
+ Alumicolor Aluminum Engineer Metric Pocket Scale, 15cm, 1/2/5/10/20/50 |
+ Pocket size |
+  |
+
-
- Architect Scales |
-
-
- Alumicolor Metric Architect Hollow Scale, 30cm, 20/25/50/75/100/125 |
- Aluminum |
-  |
-
-
- Alumicolor Aluminum Engineer Metric Pocket Scale, 15cm, 1/2/5/10/20/50 |
- Pocket size |
-  |
-
+
+
+ Measuring Spoons & Cups |
+
+
+ Bezall 5 in 1 Colorful Plastic Measuring Spoons Set, Kitchen Cooking Baking Tools |
+ Plastic |
+  |
+
+
+ 🏆 CHEFMADE Hello Kitty Glass Measuring Cup, Pour Spout, 350 ml |
+ Glass |
+  |
+
+
+ Appletofu Funnel Pitcher, Easy Pour Plastic Measuring Cup with Long Spout, Microwave Safe, 1,000 ml |
+ Plastic |
+  |
+
+
+ Multi-Function Food Grade Measuring Cup with Handle and Durable Bamboo Lid, 350 ml / 500 ml / 1,000 ml |
+ Glass |
+  |
+
+
+ OBALY Jigger, Cocktail Metering Cups, 25/50 ml × 15/30 ml |
+ Stainless Steel |
+  |
+
+
+ Barfly Japanese Style Jigger, 25 ml × 50 ml |
+ Stainless Steel |
+  |
+
-
- Measuring Spoons & Cups |
-
-
- Bezall 5 in 1 Colorful Plastic Measuring Spoons Set, Kitchen Cooking Baking Tools |
- Plastic |
-  |
-
-
- 🏆 CHEFMADE Hello Kitty Glass Measuring Cup, Pour Spout, 350 ml |
- Glass |
-  |
-
-
- Appletofu Funnel Pitcher, Easy Pour Plastic Measuring Cup with Long Spout, Microwave Safe, 1,000 ml |
- Plastic |
-  |
-
-
- Multi-Function Food Grade Measuring Cup with Handle and Durable Bamboo Lid, 350 ml / 500 ml / 1,000 ml |
- Glass |
-  |
-
-
- OBALY Jigger, Cocktail Metering Cups, 25/50 ml × 15/30 ml |
- Stainless Steel |
-  |
-
-
- Barfly Japanese Style Jigger, 25 ml × 50 ml |
- Stainless Steel |
-  |
-
+
+
+ Scales |
+
+
+ 🏆 Tanita KF-200 Kitchen Scale, 2 kg |
+ Digital |
+  |
+
+
+ Tanita 1445 Kitchen Scale, 1 kg (5 g increments) |
+ Analog |
+  |
+
-
- Scales |
-
-
- 🏆 Tanita KF-200 Kitchen Scale, 2 kg |
- Digital |
-  |
-
-
- Tanita 1445 Kitchen Scale, 1 kg (5 g increments) |
- Analog |
-  |
-
+
+
+ Thermometers |
+
+
+ Indoor/Outdoor Mini Temperature Humidity Meter |
+ Analog |
+  |
+
+
+ Reotemp K82P-7 Large Dial Easy Read Pocket Thermometer, -10 to 110 °C, Waterproof |
+ Pocket |
+  |
+
+
+ Robinair Dial Thermometer, -40 to 70 °C |
+ Pocket |
+  |
+
-
- Thermometers |
-
-
- Indoor/Outdoor Mini Temperature Humidity Meter |
- Analog |
-  |
-
-
- Reotemp K82P-7 Large Dial Easy Read Pocket Thermometer, -10 to 110 °C, Waterproof |
- Pocket |
-  |
-
-
- Robinair Dial Thermometer, -40 to 70 °C |
- Pocket |
-  |
-
+
+
+ Kettles |
+
+
+ Aigostar Electric Kettle Temperature Control 1.7L, LED Indicator Light Change |
+ Auto shut-off |
+  |
+
+
+ NESSGRAIM Retro Electric Kettle, 1.7L Stainless Steel Tea Kettle with Large Temperature Gauge |
+ Analog |
+  |
+
+
+ Retro Electric Hot Water Kettle, 1,350w Quick Boil, Auto Shut-Off |
+ Analog |
+  |
+
-
- Kettles |
-
-
- Aigostar Electric Kettle Temperature Control 1.7L, LED Indicator Light Change |
- Auto shut-off |
-  |
-
+
+
+ Tool Sets |
+
+
+ Makita Metric Bit and Hand Tool Set |
+ Carrying case |
+  |
+
-
- NESSGRAIM Retro Electric Kettle, 1.7L Stainless Steel Tea Kettle with Large Temperature Gauge |
- Analog |
-  |
-
+
+
+ Office Supplies |
+
+
+ A4 Size Premium Printer Paper by Double A, 100 Sheets |
+ White |
+  |
+
-
- Retro Electric Hot Water Kettle, 1,350w Quick Boil, Auto Shut-Off |
- Analog |
-  |
-
-
-
- Tool Sets |
-
-
- Makita Metric Bit and Hand Tool Set |
- Carrying case |
-  |
-
-
-
- Office Supplies |
-
-
- A4 Size Premium Printer Paper by Double A, 100 Sheets |
- White |
-  |
-
-
-
- Education & Games |
-
-
- Learning Resources 1g Centimeter Cubes, Assorted Colors, Set of 500 |
- Plastic |
-  |
-
-
-
-
+
+
+ Education & Games |
+
+
+ Learning Resources 1g Centimeter Cubes, Assorted Colors, Set of 500 |
+ Plastic |
+  |
+
diff --git a/src/website/css/layout.less b/src/website/css/layout.less
index 66c0655..d09a13d 100644
--- a/src/website/css/layout.less
+++ b/src/website/css/layout.less
@@ -2,6 +2,45 @@
// Style: Layout
.SectionStyle() {
+ toc {
+ ol {
+ li {
+ margin-bottom: 2px;
+ }
+ }
+ }
+ >h2 {
+ >i.font-icon {
+ font-size: 1em;
+ padding-right: 0.4em;
+ }
+ >img {
+ height: 1.1em;
+ padding-right: 0.5em;
+ margin-bottom: -0.2em;
+ }
+ }
+ >p, >div {
+ text-align: left;
+ li {
+ font-size: 1em;
+ text-indent: 0px;
+ padding-left: 0em;
+ margin-bottom: 15px;
+ }
+ }
+ a {
+ white-space: normal;
+ }
+ >figure {
+ display: block;
+ }
+ >p + h3 {
+ margin-top: 50px;
+ }
+ >p:has(i[data-icon=circle-down]) {
+ text-align: center;
+ }
table {
thead tr th {
font-size: 1rem;
@@ -72,38 +111,6 @@ body {
main {
>section {
.SectionStyle();
- >h2 {
- >i.font-icon {
- font-size: 1em;
- padding-right: 0.4em;
- }
- >img {
- height: 1.1em;
- padding-right: 0.5em;
- margin-bottom: -0.2em;
- }
- }
- >p, >div {
- text-align: left;
- li {
- font-size: 1em;
- text-indent: 0px;
- padding-left: 0em;
- margin-bottom: 15px;
- }
- }
- a {
- white-space: normal;
- }
- >figure {
- display: block;
- }
- >p + h3 {
- margin-top: 50px;
- }
- >p:has(i[data-icon=circle-down]) {
- text-align: center;
- }
}
>section:last-child >figure:last-child {
font-size: 1.6em;
diff --git a/src/website/do-not-learn-metric/index.html b/src/website/do-not-learn-metric/index.html
index 3e72b90..90af459 100644
--- a/src/website/do-not-learn-metric/index.html
+++ b/src/website/do-not-learn-metric/index.html
@@ -51,7 +51,9 @@ Steps
-
Settings —
- Set your mobile device to metric.
+ Set your
+ mobile device
+ to metric.
Set your refrigerator, home thermostat, and car temperature to Celsius.
Set the scales in your kitchen and bathroom to display grams and kilograms.
diff --git a/src/website/index.html b/src/website/index.html
index a208318..89ef661 100644
--- a/src/website/index.html
+++ b/src/website/index.html
@@ -36,7 +36,7 @@ Go metric to boost your efficiency
- think-metric.org/products
+ https://think-metric.org/products
diff --git a/src/website/products/index.html b/src/website/products/index.html
index 54c406e..c56b6a8 100644
--- a/src/website/products/index.html
+++ b/src/website/products/index.html
@@ -21,10 +21,18 @@ Go metric to boost your efficiency
-
+
+ Table of Contents
+
+
+ {% render 'src/templates/table-of-products-toc.html' %}
+
+
Products listed below are (or at were at one time) available in the U.S. with
"Free Shipping by Amazon".
+ The links are NOT affiliate links — there are no commissions
+ earned.
@@ -34,7 +42,14 @@ Buy Metric-Only
🏆: Favorite product
- {% render 'src/templates/table-of-products.html' %}
+
+
+ Item | Note | Image |
+
+
+ {% render 'src/templates/table-of-products.html' %}
+
+
The above links are NOT affiliate links — there are no commissions