parent
f1b9c6ba9d
commit
6e5286ef10
9 changed files with 35 additions and 35 deletions
@ -1,18 +0,0 @@ |
||||
<!doctype html> |
||||
<html> |
||||
<head> |
||||
<meta charset=utf-8 /> |
||||
<title>VimVixen command-line</title> |
||||
<script src='command-line.js'></script> |
||||
</head> |
||||
<body class='vimvixen-command-line'> |
||||
<div> |
||||
<p class='vimvixen-command-line-title'></p> |
||||
<div class='vimvixen-command-line-line'> |
||||
<i class='vimvixen-command-line-line-prompt'></i><input |
||||
id='vimvixen-command-line-line-input' |
||||
class='vimvixen-command-line-line-input'></input> |
||||
</div> |
||||
</div> |
||||
</body> |
||||
</html> |
@ -1,13 +1,13 @@ |
||||
import './command-line-frame.scss'; |
||||
import './console-frame.scss'; |
||||
|
||||
export default class CommandLineFrame { |
||||
export default class ConsoleFrame { |
||||
constructor(win, initial = '') { |
||||
let url = browser.runtime.getURL('build/command-line.html') + |
||||
let url = browser.runtime.getURL('build/console.html') + |
||||
'#' + encodeURIComponent(initial); |
||||
|
||||
let element = window.document.createElement('iframe'); |
||||
element.src = url; |
||||
element.className = 'vimvixen-command-line-frame'; |
||||
element.className = 'vimvixen-console-frame'; |
||||
win.document.body.append(element); |
||||
|
||||
this.element = element; |
@ -1,4 +1,4 @@ |
||||
.vimvixen-command-line-frame { |
||||
.vimvixen-console-frame { |
||||
margin: 0; |
||||
padding: 0; |
||||
bottom: 0; |
@ -0,0 +1,18 @@ |
||||
<!doctype html> |
||||
<html> |
||||
<head> |
||||
<meta charset=utf-8 /> |
||||
<title>VimVixen console</title> |
||||
<script src='console.js'></script> |
||||
</head> |
||||
<body class='vimvixen-console'> |
||||
<div> |
||||
<p class='vimvixen-console-title'></p> |
||||
<div class='vimvixen-console-command'> |
||||
<i class='vimvixen-console-command-prompt'></i><input |
||||
id='vimvixen-console-command-input' |
||||
class='vimvixen-console-command-input'></input> |
||||
</div> |
||||
</div> |
||||
</body> |
||||
</html> |
Reference in new issue