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
function _csvRowToArray(csv) { | |
const csvRegex = /,(?=(?:(?:[^"]*"){2})*[^"]*$)/ | |
const trimQuotes = /^"|"$/g | |
return csv.split(csvRegex).map(h => h.trim().replace(trimQuotes, '')) | |
} | |
function _csvRowToObject(headers, row) { | |
let currentRow = _csvRowToArray(row) | |
return Object.fromEntries(headers.map((header, i) => [header, currentRow[i]])) | |
} |
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><!-- This is a valid HTML5 document. --> | |
<!-- Screen readers, SEO, extensions and so on. --> | |
<html lang="en"> | |
<!-- Has to be within the first 1024 bytes, hence before the `title` element | |
See: https://www.w3.org/TR/2012/CR-html5-20121217/document-metadata.html#charset --> | |
<meta charset="utf-8"> | |
<meta name="color-scheme" content="light dark"> | |
<!-- Why no `X-UA-Compatible` meta: https://stackoverflow.com/a/6771584 --> | |
<!-- The viewport meta is quite crowded and we are responsible for that. | |
See: https://codepen.io/tigt/post/meta-viewport-for-2015 --> |
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
http GET http://www.otsukare.info/ | grep '<a href="/2' | sed 's,.*<a href="\(.*\)" rel=".*,http://www.otsukare.info\1,' | xargs -n1 http HEAD |
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
test_apps/template/index.html | 16 ++++++++++++++++ | |
test_apps/template/manifest.webapp | 6 +++++- | |
2 files changed, 21 insertions(+), 1 deletion(-) | |
diff --git a/test_apps/template/index.html b/test_apps/template/index.html | |
index 4611ccd..baca876 100644 | |
--- a/test_apps/template/index.html | |
+++ b/test_apps/template/index.html | |
@@ -16,6 +16,22 @@ | |
</style> |
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> | |
<meta charset=utf-8 /> | |
<title>test</title> | |
<style> | |
</style> | |
<div></div> |
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><title>Event delegation</title></head> | |
<body> | |
<ul> | |
<li><a href="#a"><span>a</span></a></li> | |
<li><a href="#b"><span><span>b</span></span></a></li> | |
<li><a href="#c"><span><span><span>c</span></span></span></a></li> | |
</ul> | |
<script> |