@hyperbook/markdown 0.86.2 → 0.86.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -608,7 +608,7 @@ var multievent = {
|
|
|
608
608
|
/\{v\{(.*?)\}\}/gms,
|
|
609
609
|
"<table align='center' class='MulEvHaManTab' style='border-collapse:collapse;' border='0' cellspacing='0' cellpadding='6'><tr><td valign='middle' align='center' style='min-width:10em;font-family:sans-serif;' class='MulEvHaManTd'><span class='MulEvHaManAusg'>$1</span></td></tr><tr><td align='center' ><span class='MulEvHaManFehl' style='text-decoration:line-through;color:#e00;font-size:smaller;font-family:sans-serif;'> </span><br /></td></tr><tr><td align='center'><input maxlength='2' onkeydown='this.value=\"\"' onkeyup='multievent.MulEvHaMan(this.id);multievent.Auswertung(\"" +
|
|
610
610
|
clNr +
|
|
611
|
-
"\")' class='MulEvHaManInp' data-MulEvHaMan='$1' data-Nummer='0' data-BuchstSind='' data-Fehler='1' data-BegriffeSind='' style='text-align:center;font-size:1em;width:
|
|
611
|
+
"\")' class='MulEvHaManInp' data-MulEvHaMan='$1' data-Nummer='0' data-BuchstSind='' data-Fehler='1' data-BegriffeSind='' style='text-align:center;font-size:1em;width:2.4em;font-family:sans-serif;padding:2px;border:1px solid #999;border-radius:3px;background-color:#eee;'/></td></tr></table>",
|
|
612
612
|
);
|
|
613
613
|
IN = IN.replace(
|
|
614
614
|
/\{w\{(.*?)\}\}/gms,
|
|
@@ -926,26 +926,18 @@ var multievent = {
|
|
|
926
926
|
}
|
|
927
927
|
var IB = 0;
|
|
928
928
|
for (var k = 0; k < iW.length; k++) {
|
|
929
|
-
var s = Inp[j].style;
|
|
930
929
|
if (IB < iW[k].length) {
|
|
931
930
|
IB = iW[k].length;
|
|
932
931
|
}
|
|
933
|
-
if (IB <= 1) {
|
|
934
|
-
s.width = "1.2em";
|
|
935
|
-
}
|
|
936
|
-
if (IB == 2) {
|
|
937
|
-
s.width = "2.4em";
|
|
938
|
-
}
|
|
939
|
-
if (IB == 3) {
|
|
940
|
-
s.width = "3.6em";
|
|
941
|
-
}
|
|
942
|
-
if (IB == 4) {
|
|
943
|
-
s.width = "4.8em";
|
|
944
|
-
}
|
|
945
|
-
if (IB > 4) {
|
|
946
|
-
s.width = IB * 1.2 + "em";
|
|
947
|
-
}
|
|
948
932
|
}
|
|
933
|
+
if (InpStil == "zahl") {
|
|
934
|
+
// Numbers can be entered in other notations (3,5 vs 3.50),
|
|
935
|
+
// so leave some room beyond the length of the solution.
|
|
936
|
+
IB++;
|
|
937
|
+
}
|
|
938
|
+
// At least three characters wide, otherwise short answers get
|
|
939
|
+
// fields that are too small to tap and type into (e.g. on iPads).
|
|
940
|
+
Inp[j].style.width = Math.max(IB, 3) * 1.2 + "em";
|
|
949
941
|
}
|
|
950
942
|
}
|
|
951
943
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperbook/markdown",
|
|
3
|
-
"version": "0.86.
|
|
3
|
+
"version": "0.86.3",
|
|
4
4
|
"author": "Mike Barkmin",
|
|
5
5
|
"homepage": "https://github.com/openpatch/hyperbook#readme",
|
|
6
6
|
"license": "MIT",
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
"vfile": "^6.0.3",
|
|
141
141
|
"vitest": "^4.1.10",
|
|
142
142
|
"wavesurfer.js": "^7.12.11",
|
|
143
|
-
"@hyperbook/
|
|
143
|
+
"@hyperbook/types": "0.28.0",
|
|
144
144
|
"@hyperbook/web-component-excalidraw": "0.4.0",
|
|
145
|
-
"@hyperbook/
|
|
145
|
+
"@hyperbook/fs": "0.30.0"
|
|
146
146
|
},
|
|
147
147
|
"scripts": {
|
|
148
148
|
"version": "pnpm build",
|