Release 8.34

This commit is contained in:
wanlop run 2024-04-04 22:33:13 +07:00
parent 381d2d7d81
commit 4aa8a6dbeb
53 changed files with 30879 additions and 22712 deletions

71
webs/css/minimal.css Normal file
View file

@ -0,0 +1,71 @@
/* Hacked together based on:
* https://jgthms.com/web-design-in-4-minutes/
*/
:root {
--color-hi: #f56a6a;
}
* {
box-sizing: border-box;
}
body {
color: #555;
margin: 0 auto;
max-width: 50em;
font-family: "Helvetica", "Arial", sans-serif;
line-height: 1.5;
padding: 2em 1em;
}
h1 {
font-size: 2.5em
}
h2 {
font-size: 2em;
}
h3 {
font-size: 1.5em
}
h2, h3 {
margin-top: 1.5em;
}
h1, h2, strong {
color: #333;
}
code, pre {
background: #eee;
}
code {
padding: 2px 4px;
vertical-align: text-bottom;
}
pre {
border-left: 2px solid #bbb;
padding: 1em;
}
a {
color: var(--color-hi);
}
blockquote, q {
border-left: solid 4px #bbb;
font-style: italic;
margin: 0 0 2em 0;
padding: 0.5em 0 0.5em 2em;
}
blockquote::before, blockquote::after, q::before, q::after {
content: '';
content: none;
}

16
webs/css/minimal2.css Normal file
View file

@ -0,0 +1,16 @@
body {font-family:Ubuntu,Helvetica,Verdana,Arial,sans-serif;font-size:11pt;line-height:1.5;}
h1 {font-size:4em;margin:0.2em;}
section, aside {float:left; margin: 0 10px;}
aside {width:300px;}
h2 {margin:0;padding:0 1em;background:#000;font-size:2em;color:#fff;}
.block {float:left;width:280px;padding:10px;}
h3 {margin-bottom:0;}
a {color:#000;}
.art {margin:10px 0 0 0;background:#000;color:#fff;}
.art h2 {padding:0;}
.art a {color:#fff;}
.item {border-bottom:dotted 1px #000;}
p {margin-bottom:0;}
.more {margin:0;font-size:0.8em;}
.right {float:right;}

View file

@ -30,28 +30,30 @@
const sp1 = str1.split("|");
all_out += "<H2>" + sp1[0] + "</H2>"
const sp2 = sp1[1].split(",");
if( sp1.length > 0){
all_out += "<H2>" + sp1[0] + "</H2>"
const sp2 = sp1[1].split(",");
all_out += "<table>";
all_out += "<tr>";
for (let i = 0; i < sp2.length; i++) {
const sp3 = sp2[i].split("=");
if( sp3.length == 2){
all_out += "<th>" + sp3[0] + "</th>"
all_out += "<table>";
all_out += "<tr>";
for (let i = 0; i < sp2.length; i++) {
const sp3 = sp2[i].split("=");
if( sp3.length == 2){
all_out += "<th>" + sp3[0] + "</th>"
}
}
}
all_out += "</tr>";
all_out += "<tr>";
for (let i = 0; i < sp2.length; i++) {
const sp3 = sp2[i].split("=");
if( sp3.length == 2){
all_out += "<td>" + sp3[1] + "</td>"
all_out += "</tr>";
all_out += "<tr>";
for (let i = 0; i < sp2.length; i++) {
const sp3 = sp2[i].split("=");
if( sp3.length == 2){
all_out += "<td>" + sp3[1] + "</td>"
}
}
all_out += "</tr>";
all_out += "</table>";
}
all_out += "</tr>";
all_out += "</table>";
return all_out;
}
@ -61,7 +63,9 @@
//console.log("Test readFile " + str_out)
all_out += show_table_one_row("order-position")
all_out += show_table_one_row("stock")
document.getElementById("begin").innerHTML = all_out;
}