View on GitHub

Poetry

Poetry collection, study notes, and tools.

诗词影集

舟山堂+纱糸轩:诗词、歌词・相册|Photo Album of Poetry Collection.
Designated Web URL: http://dockerian.github.io/poetry/album/
Features and Reference

Poetry Album © 2026 Features ⇑·⇓



Reference  ⇑·⇓

EXIF library

Open files or folder

Note: Using window.showOpenFilePicker on click may conflict with keydown event.

  btnFoldr.addEventListener('click', async (event) => {
    if (window.showOpenFilePicker) {
      const openfiles = [];
      try {
        const handles = await window.showOpenFilePicker({
          excludeAcceptAllOption: false,
          multiple: true
        });
        for (const handle of handles) {
          const file = await handle.getFile();
          openfiles.push(file);
        }
      } catch (err) {
        if (err.name !== 'AbortError') {
          console.error(err);
        }
      }
      event.preventDefault();
      console.debug("On window.showOpenFilePicker:", openfiles);
      // await loadFiles(null, openfiles);
    } else {
      // onKeydownButton(event, btnFoldr, hidFoldr);
    }
  });

Maps URL

Maps API

Reverse Geocoding

Nominatim API provide an address from a coordinate given as latitude and longitude. See API manual.

  const api = 'https://nominatim.openstreetmap.org/reverse';
  const params = 'addressdetails=1&namedetails=1&zoom=16&format=json';
  const url = `${api}?lat=${lat}&lon=${lon}&${params}`;
  const res = await fetch(url, {
    headers: { // API requires these headers
      'Access-Control-Allow-Origin' : '*',
      'User-Agent': 'App/1.0 (user@gmail.com)'
    }});
  const data = await res.json();

RegExp

The shiji.html and lyrics.html pages have #mulu section, as a TOC (Table of Contents), to include all normalized poems or lyrics info. This Poetry Photo app may use regular expression to build a simple Javascript dictionary.


» Back to Album|Contents|Home