Resume: freeze not reproduced yet (hidden + visible); context menu works on a test page, YouTube case waits for the orchestrator's answer; bindings audit list, final smokes, PROGRESS. Co-Authored-By: Claude Opus 5.5 <[email protected]>
14 lines
909 B
HTML
14 lines
909 B
HTML
<!doctype html><meta charset="utf-8"><title>Context menus</title>
|
|
<body style="font:18px sans-serif;padding:24px;margin:0">
|
|
<div id="own" style="width:400px;height:200px;background:#1a5fb4;color:#fff;padding:12px">This box has its own menu (like a video player)</div>
|
|
<p id="plain" style="margin-top:40px;width:400px;height:100px;background:#e5e5e5;padding:12px">Plain text: the browser's menu</p>
|
|
<div id="menu" style="display:none;position:fixed;background:#222;color:#fff;padding:8px 16px">Site menu</div>
|
|
<script>
|
|
window.siteMenus = 0;
|
|
document.getElementById('own').addEventListener('contextmenu', e => {
|
|
e.preventDefault(); window.siteMenus++;
|
|
const m = document.getElementById('menu'); m.style.left = e.clientX + 'px'; m.style.top = e.clientY + 'px'; m.style.display = 'block';
|
|
});
|
|
document.addEventListener('click', () => document.getElementById('menu').style.display = 'none');
|
|
</script>
|
|
</body>
|