Skip to content

armgit / cra

Public Imported from GitHub
0

The open-source Arc replacement for macOS. Spaces, pinned tabs, split view, Little Windows and Arc's shortcuts on Chromium, with your Arc sidebar imported in one go.

944 B
Raw Blame
<!doctype html>
<meta charset="utf-8">
<title>Fixture page</title>
<style>body { font: 15px -apple-system, sans-serif; margin: 40px; } .row { height: 24px; border-bottom: 1px solid #ddd; }</style>
<h1>Fixture page</h1>
<p>A local page for scripts/scenario.sh: no network, a little layout, an input to type into.</p>
<input placeholder="Type here">
<div id="rows"></div>
<script>
  const query = new URLSearchParams(location.search);
  const n = query.get('n') || '0';
  document.title = 'Fixture ' + n;
  // ?beforeunload=1: asks "Leave site?" like a shop with something in its cart (once the page had a gesture).
  if (query.get('beforeunload') === '1') addEventListener('beforeunload', e => { e.preventDefault(); e.returnValue = ''; });
  const rows = document.getElementById('rows');
  for (let i = 0; i < 200; i++) { const d = document.createElement('div'); d.className = 'row'; d.textContent = 'Row ' + i; rows.appendChild(d); }
</script>