Started guides

This commit is contained in:
Devine Lu Linvega
2019-07-13 20:19:18 +09:00
parent 55b1e54fad
commit d309a9f032
9 changed files with 127 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
function Ronin () {
const defaultTheme = {
background: '#eee',
background: '#222',
f_high: '#000',
f_med: '#999',
f_low: '#ccc',
@@ -20,8 +20,12 @@ function Ronin () {
this.library = new Library(this)
this.install = function (host = document.body) {
this.commander.install(this.el)
this.surface.install(this.el)
this._wrapper = document.createElement('div')
this._wrapper.id = 'wrapper'
this.commander.install(this._wrapper)
this.surface.install(this._wrapper)
this.el.appendChild(this._wrapper)
host.appendChild(this.el)
this.theme.install()
}
@@ -38,6 +42,10 @@ function Ronin () {
this.theme.reset()
}
this.log = function (msg) {
this.commander.setStatus(msg)
}
this.load = function (content = this.default()) {
}