+ 切换 jQuery 依赖库地址
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<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="./statics/modules/jquery.min.js"></script>
|
||||
<script>
|
||||
let page = 10
|
||||
let url = `https://api.github.com/repos/hbk01/hbk01.github.io/commits?per_page=${page}`
|
||||
|
||||
2
statics/modules/jquery.min.js
vendored
Normal file
2
statics/modules/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -8,7 +8,7 @@
|
||||
<title>L014-1 相关物质</title>
|
||||
<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="../statics/modules/jquery.min.js"></script>
|
||||
<script type="module">
|
||||
import { Decimal } from "../statics/modules/decimal.mjs"
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
<title>L414-5KR 相关物质</title>
|
||||
<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="../statics/modules/jquery.min.js"></script>
|
||||
<script type="module">
|
||||
import { Decimal } from "../statics/modules/decimal.mjs"
|
||||
import { Decimal } from "../statics/modules/decimal.mjs"
|
||||
|
||||
// debug 开关
|
||||
const DEBUG = false
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
</style>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/13.0.1/markdown-it.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="../statics/modules/jquery.min.js"></script>
|
||||
<script>
|
||||
const md = window.markdownit({
|
||||
breaks: true
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="../statics/modules/jquery.min.js"></script>
|
||||
<script src="./common-standards.info.js"></script>
|
||||
<script type="module">
|
||||
$(() => {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="../statics/modules/jquery.min.js"></script>
|
||||
<script src="./equipment.info.js"></script>
|
||||
<script>
|
||||
$(document).ready(() => {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<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 src="../statics/modules/jquery.min.js"></script>
|
||||
<script type="module">
|
||||
import { Decimal } from "../statics/modules/decimal.mjs"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="../statics/modules/jquery.min.js"></script>
|
||||
<script type="module">
|
||||
import { Decimal } from "../statics/modules/decimal.mjs"
|
||||
import { IO } from "../statics/modules/tools.js"
|
||||
|
||||
101
views/mobile-phase.html
Normal file
101
views/mobile-phase.html
Normal file
@@ -0,0 +1,101 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cmn-Hans">
|
||||
|
||||
<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="../statics/github.css">
|
||||
<link rel="stylesheet" href="../statics/theme.css"> -->
|
||||
<script src="../statics/modules/jquery.min.js"></script>
|
||||
<title>流动相用量</title>
|
||||
<script type="module">
|
||||
import { Decimal } from "../statics/modules/decimal.mjs"
|
||||
|
||||
let decimal = Decimal.set({
|
||||
rounding: Decimal.ROUND_HALF_EVEN,
|
||||
precision: 12
|
||||
})
|
||||
|
||||
let debug = true
|
||||
let tip = `
|
||||
`
|
||||
|
||||
let data = [
|
||||
{
|
||||
"time": 0,
|
||||
"a": 60,
|
||||
"b": 40,
|
||||
},
|
||||
{
|
||||
"time": 10,
|
||||
"a": 20,
|
||||
"b": 80,
|
||||
},
|
||||
{
|
||||
"time": 20,
|
||||
"stop": true,
|
||||
}
|
||||
]
|
||||
|
||||
mobilePhase(data, 1, 3)
|
||||
|
||||
/**
|
||||
* 计算流动相用量
|
||||
* @params data 流动相梯度程序
|
||||
* @params speed 流速,单位 mL/min
|
||||
* @params inject_times 进样次数
|
||||
*/
|
||||
function mobilePhase(data, speed, inject_times) {
|
||||
let sum_a = new Decimal(0)
|
||||
let sum_b = new Decimal(0)
|
||||
for (let index = 0; index < data.length; index++) {
|
||||
const element = data[index]
|
||||
const next_element = data[index + 1]
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
input {
|
||||
/* border: none; */
|
||||
height: 32px;
|
||||
width: fit-content;
|
||||
line-height: 32px;
|
||||
border: none;
|
||||
outline: none;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
label {
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
background-color: aliceblue;
|
||||
}
|
||||
|
||||
#btn {
|
||||
border: 1px solid;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.sep {
|
||||
display: initial;
|
||||
background-color: black;
|
||||
height: 28px;
|
||||
width: 333px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>流动相用量</h3>
|
||||
<div class="msg"></div>
|
||||
|
||||
<div id="btn">
|
||||
<label for="name">Name</label>
|
||||
<input id="name" type="text" autocomplete="off">
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -20,7 +20,7 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="../statics/modules/jquery.min.js"></script>
|
||||
<script type="module">
|
||||
import { Decimal } from "../statics/modules/decimal.mjs"
|
||||
import { IO } from "../statics/modules/tools.js"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<title>标水</title>
|
||||
<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="../statics/modules/jquery.min.js"></script>
|
||||
<script type="module">
|
||||
import { Decimal } from "../statics/modules/decimal.mjs"
|
||||
import { Formula } from "../statics/modules/tools.js"
|
||||
|
||||
Reference in New Issue
Block a user