added help page (closes #15)
This commit is contained in:
@@ -162,6 +162,22 @@
|
||||
location.hash='menu';
|
||||
};
|
||||
|
||||
// show help page
|
||||
help=async () => {
|
||||
stopGame();
|
||||
let iframe=document.createElement('iframe');
|
||||
iframe.src='help.html';
|
||||
iframe.style.width='100%';
|
||||
iframe.style.height='100%';
|
||||
await new Popup(
|
||||
"Help",
|
||||
[iframe],
|
||||
{ok: "OK"},
|
||||
true
|
||||
).display();
|
||||
location.hash='menu';
|
||||
};
|
||||
|
||||
// display the win popup
|
||||
handleWin=async snek => {
|
||||
// hide the HUD
|
||||
|
||||
Reference in New Issue
Block a user