Add github link to help text
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user