raised js version to 9.3
fixed textblocks dispay error fixed bulletpoints on empty lines
This commit is contained in:
parent
3d2ed9c538
commit
0aec5b7625
@ -16,7 +16,7 @@
|
||||
<link rel="stylesheet" href="css/font-awesome/css/all.min.css" />
|
||||
<link rel="stylesheet" href="css/styles.css" />
|
||||
|
||||
<script type="module" src="js/9.2/main.js"></script>
|
||||
<script type="module" src="js/9.3/main.js"></script>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
@ -212,6 +212,7 @@ function parseFormOnSubmit(returnJSON = false, parseOnly = false) {
|
||||
let listNumberFlag = false;
|
||||
let listNumberFlagNum = 1;
|
||||
for (let i = 0; i < dataArray.length; i++) {
|
||||
if (dataArray[i] == "") continue;
|
||||
switch (dataArray[i]) {
|
||||
case "!l":
|
||||
listFlag = true;
|
||||
@ -248,6 +249,12 @@ function parseFormOnSubmit(returnJSON = false, parseOnly = false) {
|
||||
if (boldFlag) {
|
||||
dataArray[i] = "<b>" + dataArray[i] + "</b>";
|
||||
boldFlag = false;
|
||||
continue;
|
||||
}
|
||||
if (listNumberFlag) {
|
||||
dataArray[i] = " " + listNumberFlagNum + ". " + dataArray[i];
|
||||
listNumberFlagNum++;
|
||||
continue;
|
||||
}
|
||||
if (listSubFlag) {
|
||||
dataArray[i] = " ○ " + dataArray[i];
|
||||
@ -255,10 +262,7 @@ function parseFormOnSubmit(returnJSON = false, parseOnly = false) {
|
||||
}
|
||||
if (listFlag) {
|
||||
dataArray[i] = " • " + dataArray[i];
|
||||
}
|
||||
if (listNumberFlag) {
|
||||
dataArray[i] = " " + listNumberFlagNum + ". " + dataArray[i];
|
||||
listNumberFlagNum++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -121,6 +121,8 @@ function initTextBlocks() {
|
||||
const textBlocksHolder = document.getElementById("textBlocks");
|
||||
const divReg = document.getElementById("navTb");
|
||||
for (let x in res) {
|
||||
if (res[x][1].length < 1) continue;
|
||||
|
||||
let aReg = document.createElement("a");
|
||||
aReg.setAttribute("href", "#");
|
||||
aReg.classList.add("w3-bar-item", "w3-hide-small", "w3-padding-small");
|
||||
Loading…
Reference in New Issue
Block a user