Last active
July 3, 2021 08:34
-
-
Save lewdev/53513207264899170cb93cdb592c1f29 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 contenteditable><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Template</title> | |
| <style>*{font-size: 1rem;font-family:Verdana;line-height:1.5;}body{margin:.5rem;}</style> | |
| <body><script>//mongoexport --collection=events --db=reporting --out=events.json | |
| window.onload = function() { | |
| fetch('data.json').then(r => r.json()).then(rows => { | |
| const arr = []; | |
| rows.filter(r => true).map(row => { | |
| arr.push(row.str); | |
| }); | |
| document.body.innerHTML = `["${arr.join('","')}"]`; | |
| }); | |
| };</script> | |
| </body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment