Galadriel's Mirror 2 Example

Created: 2017-01-12
Updated: 2023-03-10

I have found it to be very handy to be able to run and display the same JavaScript source without having to resort to copy-paste. Using the same source reduces the chance of error and is far less irritating to maintain.

"I know what it was that you saw, for that is also in my mind." - Galadriel

The script below has been displayed by Galadriel. Any <script> tag with the data-mirror attribute has its contents displayed in a new <pre> tag.

Here’s a tiny stand-alone test page: galadriel2.html

And here’s Galadriel’s Mirror 2 (for downloading): galadriel2.js