Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| prism_stacking [2025/03/01 03:30] – Scott Larson | prism_stacking [2025/06/07 02:49] (current) – [Table] Scott Larson | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Value of Two Prisms | + | ====== Value of Two Stacked |
| + | **The prisms are pointing in the same direction ** | ||
| ===== Calculator ===== | ===== Calculator ===== | ||
| - | + | [[https://eyefixer.org/value-of-two-stacked-prisms/|Click Here]] | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | #header { | + | |
| - | display: none; | + | |
| - | } | + | |
| - | body { | + | |
| - | font-family: | + | |
| - | margin: 20px; | + | |
| - | padding: 20px; | + | |
| - | } | + | |
| - | h2 { | + | |
| - | color: #333; | + | |
| - | } | + | |
| - | label { | + | |
| - | font-weight: | + | |
| - | } | + | |
| - | input, button { | + | |
| - | margin-top: 5px; | + | |
| - | padding: 8px; | + | |
| - | font-size: 16px; | + | |
| - | } | + | |
| - | p { | + | |
| - | font-size: 18px; | + | |
| - | font-weight: | + | |
| - | color: blue; | + | |
| - | margin-top: 10px; | + | |
| - | } | + | |
| - | </ | + | |
| - | < | + | |
| - | const prismTable = { | + | |
| - | 10: {10: 21, 20: 33, 30: 46, 40: 60, 50: 77}, | + | |
| - | 20: {10: 33, 20: 47, 30: 66, 40: 89, 50: 122}, | + | |
| - | 30: {10: 46, 20: 66, 30: 94, 40: 141, 50: 256}, | + | |
| - | 40: {10: 60, 20: 89, 30: 141,40: 339}, | + | |
| - | 50: {10: 77, 20: 122, 30: 256}, | + | |
| - | }; | + | |
| - | + | ||
| - | function lookupValue() { | + | |
| - | let prism1 = document.querySelector(' | + | |
| - | let prism2 = document.querySelector(' | + | |
| - | + | ||
| - | prism1 = parseInt(prism1); | + | |
| - | prism2 = parseInt(prism2); | + | |
| - | + | ||
| - | if (prismTable[prism2] && prismTable[prism2][prism1] !== undefined) { | + | |
| - | document.getElementById(" | + | |
| - | } else { | + | |
| - | document.getElementById(" | + | |
| - | } | + | |
| - | } | + | |
| - | </script> | + | |
| - | </ | + | |
| - | < | + | |
| - | <h2 id=" | + | |
| - | <label for=" | + | |
| - | < | + | |
| - | <input type=" | + | |
| - | <input type=" | + | |
| - | <input type=" | + | |
| - | <input type=" | + | |
| - | <input type=" | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | <input type=" | + | |
| - | <input type=" | + | |
| - | <input type=" | + | |
| - | <input type=" | + | |
| - | <input type=" | + | |
| - | < | + | |
| - | <button onclick=" | + | |
| - | < | + | |
| - | < | + | |
| - | <p id=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | <button type=" | + | |
| ==== Table ==== | ==== Table ==== | ||
| - | |||
| | | **1st Prism** | | | **1st Prism** | ||
| Line 93: | Line 13: | ||
| | **50Δ** | | **50Δ** | ||
| - | Adapted From: {{:: | + | Adapted From: [[https://1drv.ms/ |
| {{tag> | {{tag> | ||