Skip to content

The OSINT investigator's workbench. One case, one folder, every tool. Local-first: your media and your investigations never leave your machine.

JavaScript
2.8 KB
Raw Blame
<!doctype html>
<html>
<head>
  <meta charset="utf-8" />
  <link rel="stylesheet" href="ui.css" />
</head>
<body class="popup">
  <header>
    <img src="icons/icon32.png" alt="" width="18" height="18" />
    <strong>Azimut Capture</strong>
    <span id="site" class="badge" data-guide="ext.site"></span>
  </header>

  <!-- one of these three states shows at a time -->
  <section id="state-nomap" hidden>
    <p>This is not a supported map site.</p>
    <p class="muted">
      Screen capture is maps only (Google Maps/Earth, Bing, Yandex, OSM, Apple
      Maps, Zoom Earth, Copernicus). You can still file this page as a bookmark:
      a saved link, nothing downloaded.
    </p>
    <div class="row">
      <label>Case</label>
      <select id="bm-case"></select>
    </div>
    <div class="row">
      <label>Title</label>
      <input id="bm-title" type="text" placeholder="optional" />
    </div>
    <div class="actions">
      <button id="save-bookmark" class="primary">Save this page as a bookmark</button>
    </div>
  </section>

  <section id="state-azimut" hidden>
    <p>Permission granted for this tab.</p>
    <p class="muted">
      Return to Azimut and use <strong>Capture</strong>.
    </p>
  </section>

  <section id="state-map" hidden>
    <div class="row" data-guide="ext.case">
      <label>Case</label>
      <select id="case"></select>
    </div>
    <div class="row coords" data-guide="ext.position">
      <label>Lat / Lon</label>
      <input id="lat" type="text" inputmode="decimal" placeholder="—" />
      <input id="lon" type="text" inputmode="decimal" placeholder="—" />
    </div>
    <div class="row coords" data-guide="ext.bearing">
      <label>Zoom / Bearing</label>
      <input id="zoom" type="text" inputmode="decimal" placeholder="—" />
      <input id="bearing" type="text" inputmode="decimal" placeholder="—" />
    </div>
    <div class="row">
      <label>Title</label>
      <input id="title" type="text" placeholder="optional" />
    </div>
    <p id="coords-note" class="muted" hidden>
      No coordinates found. Enter them now or add them later in Azimut.
    </p>
    <label class="check" data-guide="ext.marks">
      <input id="marks" type="checkbox" />
      <span>Scale bar &amp; north arrow</span>
    </label>
    <p id="marks-note" class="muted indent" hidden>
      The arrow needs a bearing. Type one above to get it.
    </p>
    <div class="actions stacked">
      <button id="capture-area" class="primary" data-guide="ext.capture">Select area to capture…</button>
      <button id="save-place" data-guide="ext.place">Save this place</button>
      <button id="map-tools" data-guide="ext.tools">Draw tools over this map</button>
    </div>
  </section>

  <p id="status" class="status" hidden></p>
  <footer>
    <a id="open-options" href="#">Extension options</a>
  </footer>

  <script type="module" src="popup.js"></script>
</body>
</html>