+ L414-5KR 相关物质修改提示信息

+ 目录结构调整
This commit is contained in:
2023-01-14 22:48:02 +08:00
parent e1e206d066
commit b0521ece6b
19 changed files with 77 additions and 4992 deletions

4934
decimal.js

File diff suppressed because it is too large Load Diff

View File

@@ -4,8 +4,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="./github.css">
<link rel="stylesheet" href="./theme.css">
<link rel="stylesheet" href="./statics/github.css">
<link rel="stylesheet" href="./statics/theme.css">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
let page = 10
@@ -14,31 +14,31 @@
let functions = [
{
"name": "标水",
"location": "./titer.html"
"location": "./views/titer.html"
},
{
"name": "干燥失重",
"location": "./lod.html"
"location": "./views/lod.html"
},
{
"name": "炽灼残渣",
"location": "./roi.html"
"location": "./views/roi.html"
},
{
"name": "进样时间",
"location": "./injection-sequence.html"
"location": "./views/injection-sequence.html"
},
{
"name": "设备信息",
"location": "./equipment.html"
"location": "./views/equipment.html"
},
{
"name": "L414-5KR 相关物质",
"location": "./L414-5KR-impurities.html"
"location": "./views/L414-5KR-impurities.html"
},
{
"name": "L014-1 相关物质",
"location": "./L014-1-impurities.html"
"location": "./views/L014-1-impurities.html"
}
]

View File

@@ -10,7 +10,7 @@
font-family: 'Open Sans';
font-style: normal;
font-weight: normal;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url('./github/open-sans-v29-latin-ext-regular.woff2') format('woff2');
src: local('Open Sans Regular'), local('OpenSans-Regular'), url('./fonts/open-sans-v29-latin-ext-regular.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-italic - latin-ext */
@@ -18,7 +18,7 @@
font-family: 'Open Sans';
font-style: italic;
font-weight: normal;
src: local('Open Sans Italic'), local('OpenSans-Italic'), url('./github/open-sans-v29-latin-ext-italic.woff2') format('woff2');
src: local('Open Sans Italic'), local('OpenSans-Italic'), url('./fonts/open-sans-v29-latin-ext-italic.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-700 - latin-ext */
@@ -26,7 +26,7 @@
font-family: 'Open Sans';
font-style: normal;
font-weight: bold;
src: local('Open Sans Bold'), local('OpenSans-Bold'), url('./github/open-sans-v29-latin-ext-700.woff2') format('woff2');
src: local('Open Sans Bold'), local('OpenSans-Bold'), url('./fonts/open-sans-v29-latin-ext-700.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-700italic - latin-ext */
@@ -34,7 +34,7 @@
font-family: 'Open Sans';
font-style: italic;
font-weight: bold;
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url('./github/open-sans-v29-latin-ext-700italic.woff2') format('woff2');
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url('./fonts/open-sans-v29-latin-ext-700italic.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

View File

@@ -6,11 +6,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>L014-1 相关物质</title>
<link rel="stylesheet" href="./github.css">
<link rel="stylesheet" href="./theme.css">
<link rel="stylesheet" href="../statics/github.css">
<link rel="stylesheet" href="../statics/theme.css">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="module">
import { Decimal } from "./modules/decimal.mjs"
import { Decimal } from "../statics/modules/decimal.mjs"
let decimal = Decimal.set({
rounding: Decimal.ROUND_HALF_EVEN,

View File

@@ -6,27 +6,47 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>L414-5KR 相关物质</title>
<link rel="stylesheet" href="./github.css">
<link rel="stylesheet" href="./theme.css">
<script src="./decimal.js"></script>
<link rel="stylesheet" href="../statics/github.css">
<link rel="stylesheet" href="../statics/theme.css">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
let debug = false
<script type="module">
import { Decimal } from "../statics/modules/decimal.mjs"
// debug 开关
const DEBUG = false
// 校正因子
let F_L414_3 = new Decimal(0.80)
let F_L414_5_IM = new Decimal(1.48)
const F_L414_3 = 0.80
const F_L414_5_IM = 1.48
// 计算精度
let PRECISION = 3
const PRECISION = 3
// 操规允许的最大值
let MAX_L414_3 = 0.3
let MAX_L414_5_IM = 1.0
let MAX_TOTAL_IMPURITIES = 2.0
let MIN_PURITY = 98.0
const MAX_L414_3 = 0.3
const MAX_L414_5_IM = 1.0
const MAX_TOTAL_IMPURITIES = 2.0
const MIN_PURITY = 98.0
let tips_params = `
<b>相关参数:</b><br>
&nbsp;&nbsp; L414-3 的校正因子: ${F_L414_3.toFixed(2)}<br>
&nbsp;&nbsp; L414-5-IM 的校正因子: ${F_L414_5_IM}<br>
`
let tips_standard = `
<b>质量标准:</b><br>
&nbsp;&nbsp; L414-3 &le; ${MAX_L414_3}% <br>
&nbsp;&nbsp; L414-401 &le; 0.2% <br>
&nbsp;&nbsp; L414-5-IM &le; ${MAX_L414_5_IM.toFixed(1)}% <br>
&nbsp;&nbsp; 最大单杂 &le; 0.50% <br>
&nbsp;&nbsp; 杂质总量 &le; ${MAX_TOTAL_IMPURITIES}% <br>
&nbsp;&nbsp; 纯度 &ge; ${MIN_PURITY}% <br>
`
// 默认的消息提示
let tips = `计算 L414-3、L414-5-IM、杂质总量、纯度`
let tips = `
${tips_params}
<br>
${tips_standard}
`
let decimal = Decimal.set({
rounding: Decimal.ROUND_HALF_EVEN,
@@ -43,7 +63,7 @@
let two_414_5_im = $("#two-414-5-im")
let two_414_5 = $("#two-414-5")
if (debug) {
if (DEBUG) {
one_414_3.val(1762)
one_414_5_im.val(2614)
one_414_5.val(24001626)
@@ -117,15 +137,13 @@
$("#table").show()
generateTable(data)
let msg = `
操规允许: <br>
L414-3 &le; ${MAX_L414_3}% <br>
L414-5-IM &le; ${MAX_L414_5_IM.toPrecision(2)}% <br>
总杂 &le; ${MAX_TOTAL_IMPURITIES.toPrecision(2)}% <br>
纯度 &ge; ${MIN_PURITY}% <br>
`
$("#msgbox").html(msg)
$("#msgbox").html(`
<br>
<b>注意:</b><br>
&nbsp;&nbsp; 结果表格中,标注 / 的仅用于占行,具体结果需查看色谱图峰表。<br>
<br>
${tips}
`)
})
})
@@ -232,7 +250,7 @@
<td id="average"></td>
</tr>
<tr id="L414-4">
<th scope="row">L414-4</th>
<th scope="row">L414-401</th>
<td id="one">/</td>
<td id="two">/</td>
<td id="average">/</td>

View File

@@ -6,8 +6,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>设备信息</title>
<link rel="stylesheet" href="./github.css">
<link rel="stylesheet" href="./theme.css">
<link rel="stylesheet" href="../statics/github.css">
<link rel="stylesheet" href="../statics/theme.css">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="./equipment.info.js"></script>
<script>

View File

@@ -6,12 +6,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>进样时间</title>
<link rel="stylesheet" href="./github.css">
<link rel="stylesheet" href="./theme.css">
<script src="./modules/dayjs.min.js"></script>
<link rel="stylesheet" href="../statics/github.css">
<link rel="stylesheet" href="../statics/theme.css">
<script src="../statics/modules/dayjs.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="module">
import { Decimal } from "./modules/decimal.mjs"
import { Decimal } from "../statics/modules/decimal.mjs"
const decimal = Decimal.set({
rounding: Decimal.ROUND_HALF_EVEN,

View File

@@ -6,12 +6,13 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>干燥失重</title>
<link rel="stylesheet" href="./github.css">
<link rel="stylesheet" href="./theme.css">
<link rel="stylesheet" href="../statics/github.css">
<link rel="stylesheet" href="../statics/theme.css">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="module">
import { Decimal } from './modules/decimal.mjs'
import { IO } from './modules/tools.js'
import { Decimal } from "../statics/modules/decimal.mjs"
import { IO } from "../statics/modules/tools.js"
let io = new IO('lod')
let debug = false
let tip = `

View File

@@ -6,12 +6,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>炽灼残渣</title>
<link rel="stylesheet" href="./github.css">
<link rel="stylesheet" href="./theme.css">
<script src="./decimal.js"></script>
<link rel="stylesheet" href="../statics/github.css">
<link rel="stylesheet" href="../statics/theme.css">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="module">
import { IO } from './modules/tools.js'
import { Decimal } from "../statics/modules/decimal.mjs"
import { IO } from "../statics/modules/tools.js"
let io = new IO('roi')
let decimal = Decimal.set({

View File

@@ -6,12 +6,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>标水</title>
<link rel="stylesheet" href="./github.css">
<link rel="stylesheet" href="./theme.css">
<link rel="stylesheet" href="../statics/github.css">
<link rel="stylesheet" href="../statics/theme.css">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="module">
import { Decimal } from "./modules/decimal.mjs"
import { Formula } from "./modules/tools.js"
import { Decimal } from "../statics/modules/decimal.mjs"
import { Formula } from "../statics/modules/tools.js"
let debug = false
let tip = `<br>