Add github link to help text

This commit is contained in:
Ian Gulliver
2019-07-12 04:55:02 +00:00
parent 954be1ede8
commit 2d5b3c7ff3
2 changed files with 19 additions and 0 deletions

View File

@@ -67,6 +67,13 @@ class EditorHelp extends EditorEntryBase {
this.addLine();
this.addKey('m');
this.addText('Next theme ');
this.addLine();
this.addLine();
this.addLink(
'GitHub',
'https://github.com/firestuff/architype/blob/master/README.md');
}
addLine() {
@@ -90,6 +97,13 @@ class EditorHelp extends EditorEntryBase {
}
}
addLink(text, href) {
let a = document.createElement('a');
a.href = href;
a.innerText = text;
this.line_.appendChild(a);
}
afterDomAdd() {
this.elem_.focus();
}