Quiz
This commit is contained in:
parent
7fe9c546c0
commit
adf366c1d1
@ -179,6 +179,10 @@ export default class Find {
|
|||||||
return document.getElementById(name);
|
return document.getElementById(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rootId() {
|
||||||
|
return this.root.id;
|
||||||
|
}
|
||||||
|
|
||||||
main(el) {
|
main(el) {
|
||||||
this.root = el;
|
this.root = el;
|
||||||
this._map.root = el;
|
this._map.root = el;
|
||||||
|
|||||||
@ -66,7 +66,7 @@ class Quiz extends Find.createApp() {
|
|||||||
setMeta() {
|
setMeta() {
|
||||||
this.meta([
|
this.meta([
|
||||||
Find.content('<meta name="viewport" content="width=device-width, initial-scale=1">'),
|
Find.content('<meta name="viewport" content="width=device-width, initial-scale=1">'),
|
||||||
Find.content('<style>body { margin: 20px; } </style>'),
|
Find.content(`<style>#${this.rootId()} { margin: 20px; } </style>`),
|
||||||
Find.content(
|
Find.content(
|
||||||
`<style>
|
`<style>
|
||||||
.fit-image {
|
.fit-image {
|
||||||
|
|||||||
2
demos/Quiz/nomodule-find.min.js
vendored
2
demos/Quiz/nomodule-find.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user