Skip to content

Commit

Permalink
[e] (0) For heycam.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@7867 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 5, 2013
1 parent 005daa9 commit 63ff01f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion complete.html
Expand Up @@ -244,11 +244,19 @@
if (!startedInit)
showAlert("Too slow? Try reading the multipage copy of the spec instead:", "http://whatwg.org/html");
}, 6000);

window.addEventListener('keypress', function (event) {
if ((event.which == 114) && (event.metaKey)) {
if (!confirm('Are you sure you want to reload this page?'))
event.preventDefault();
}
}, false);

</script><body onload=init()>

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 4 May 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 5 May 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down
10 changes: 9 additions & 1 deletion index
Expand Up @@ -244,11 +244,19 @@
if (!startedInit)
showAlert("Too slow? Try reading the multipage copy of the spec instead:", "http://whatwg.org/html");
}, 6000);

window.addEventListener('keypress', function (event) {
if ((event.which == 114) && (event.metaKey)) {
if (!confirm('Are you sure you want to reload this page?'))
event.preventDefault();
}
}, false);

</script><body onload=init()>

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 4 May 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 5 May 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down

0 comments on commit 63ff01f

Please sign in to comment.