Created
March 11, 2021 12:09
-
-
Save bogoreh/45071f54970849456e5aee7bbb2cd58a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Challenge: Query modernizer</title> | |
| <style> | |
| li .doth { | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Isaac Newton's Queries</h1> | |
| <p>Selected Queries from Newton’s Opticks, 4th ed.</p> | |
| <ul> | |
| <li><em>Query 19:</em> <span class="doth">Doth</span> not the Refraction of Light proceed from the different density of this Aethereal Medium in different places, the Light receeding always from the denser parts of the Medium? And is not the density thereof always greater in free and open Spaces devoid of Air and other grosser Bodies, than within the pores of Water, Glass, Crystal, Gems, and other compact Bodies? For when light passes through Glass or Crystal, and falling very obliquely upon the farther surface thereof is totally reflected, the total Reflexion thereof ought to proceed rather from the density and vigour of the Medium without and beyond the Glass, than from the rarity and weakness thereof.</li> | |
| <li><em>Query 20:</em> <span class="doth">Doth</span> not this Aethereal Medium in passing out of Water, Glass, Crystal and other compact and dense Bodies into empty Spaces, grown denser and denser by degrees, and by that means refract the Rays of Light not in a point, but by bending them gradually in curve Lines? And <span class="doth">doth</span> not the gradual condensation of this Medium extend to some distance from the Bodies, and thereby cause the Inflexions of the Rays of Light, which pass by the edges of dense Bodies, at some distance from the Bodies?</li> | |
| </ul> | |
| <p>Language note: Newton originally used <span class="doth">"doth"</span>, which is the same as "does".</p> | |
| <p><a href="http://homepages.wmich.edu/~mcgrew/nq.htm">See more</a></p> | |
| <script> | |
| // Step 1: Store all doth that are inside lis in dothEls | |
| var dothEls = document.querySelectorAll("li .doth"); | |
| // Step 2: Iterate through them and change doth to does | |
| for (var idx = 0; idx < dothEls.length; idx ++) { | |
| dothEls[idx].innerHTML = "does"; | |
| } | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment