This commit is contained in:
german 2026-04-14 15:25:02 +04:00
parent 7fe9c546c0
commit adf366c1d1
4 changed files with 7 additions and 3 deletions

View File

@ -179,6 +179,10 @@ export default class Find {
return document.getElementById(name);
}
rootId() {
return this.root.id;
}
main(el) {
this.root = el;
this._map.root = el;

View File

@ -33,7 +33,7 @@
</head>
<body>
<div id="root"></div>
<div id="root"></div>
<script src="nomodule-find.min.js"></script>
<script src="index.js"></script>
</body>

View File

@ -66,7 +66,7 @@ class Quiz extends Find.createApp() {
setMeta() {
this.meta([
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(
`<style>
.fit-image {

File diff suppressed because one or more lines are too long